lnav icon indicating copy to clipboard operation
lnav copied to clipboard

Detect Docker Service Log Format

Open xeruf opened this issue 1 year ago • 1 comments

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

xeruf avatar Mar 27 '23 21:03 xeruf

Workaround:

sudo docker service logs SERVICE | sed 's/[^|]*| //' | lnav

xeruf avatar Mar 27 '23 21:03 xeruf

The "demux" functionality being added for v0.12.3 can deal with the docker prefix.

tstack avatar May 27 '24 14:05 tstack