elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.71k stars 8.13k forks source link

Elasticsearch logs outputted by `@kbn/es` have a misleading log level. #189808

Open azasypkin opened 1 month ago

azasypkin commented 1 month ago

Summary

Before outputting Elasticsearch logs to the terminal, @kbn/es parses them to add text color codes based on the message level (see parse_es_logs.ts), and it works great. The only issue is that during parsing, we lose the original message level, causing some Elasticsearch logs to end up with the wrong level. For example, in the screenshot below, the original WARN level was replaced with info, which, while not critical, is a bit confusing:

image

/cc @SiddharthMantri

elasticmachine commented 1 month ago

Pinging @elastic/kibana-operations (Team:Operations)