trentm / go-ecslog

`ecslog` CLI to pretty-print and filter log files in ecs-logging format
Apache License 2.0
7 stars 2 forks source link

background color segmentation on a particular field #29

Open trentm opened 2 years ago

trentm commented 2 years ago

Say you have a log file with some context from component="foo" and some from component="bar", etc. An option to say --segment=component that would pick a background color for the "foo" log records and another for the "bar" log records might be helpful. This could be the default when rendering logs from multiple input files, or when (eventually) handling logs output from multiple containers with docker-compose ... output.

trentm commented 2 years ago

Another example might be separate lambda instances in aws logs tail --follow /aws/lambda/${fnname} output.

...
2021-11-22T23:49:37.474000+00:00 2021/11/22/[$LATEST]0a924d337cb44629a161d8885d0a0f3e 2021/11/22 23:49:37 Received SHUTDOWN event
2021-11-22T23:49:37.474000+00:00 2021/11/22/[$LATEST]0a924d337cb44629a161d8885d0a0f3e 2021/11/22 23:49:37 Exiting
...