lnav
lnav copied to clipboard
Detect Docker Service Log Format
Is your feature request related to a problem? Please describe.
When piping input from docker service log
, it gets a prefix like this:
contest_gameserver.0.y7trhjwm1b5g@flut | 21:22:59.958 INFO sc.server.network.ClientManager - Removing client Client@7eac027a from client manager
Despite time and loglevel being available, lnav does not detect it.
Describe the solution you'd like Auto-trim common patterns and detect the infos
Describe alternatives you've considered Try to trim the prefix from the output
Workaround:
sudo docker service logs SERVICE | sed 's/[^|]*| //' | lnav
The "demux" functionality being added for v0.12.3 can deal with the docker prefix.