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:
Summary
Before outputting Elasticsearch logs to the terminal,
@kbn/es
parses them to add text color codes based on the message level (seeparse_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 originalWARN
level was replaced withinfo
, which, while not critical, is a bit confusing:/cc @SiddharthMantri