Kibana: [Logs UI] Add rule based colors to log message

Created on 10 Jan 2019  路  12Comments  路  Source: elastic/kibana

In order to support the visual pattern recognition performed by human vision, it would be helpful to colorize the log message according to rules.

Rules could be...

  • built-in for known message types (e.g. log level for syslog messages)
  • adaptable via the UI by the user
  • based on literal value matching of a specific field value
  • based on regex matching of a specific field value
  • based on thresholds of a specific field value

The colors could...

  • apply to the whole line
  • just to segments of the line (e.g. the segment that encodes the source of the line)
  • apply to a marker at a well-defined position in the line (e.g. a signs column at the beginning as found in many editors and IDEs)
  • be continuous based on numeric field values
  • categories based on known field values
Logs UI logs-metrics-ui Inbox enhancement

All 12 comments

Pinging @elastic/infrastructure-ui

++. For unknown messages, I'd have a simple base rule to color all field:value occurrences. Values can get a color depending on determined type.

Alternatively you could place the color on a smaller marker at the beginning of the line (like a colored side border or shape) or only on the timestamp.

Good idea, I have added symbol markers to the description.

That would be a great feature, it seems it was first suggested in 2013 or earlier.

@katrin-freihofner and I discussed this further and in first iteration, we decided to scope it down to simpler, pre-defined rules for known keywords. We will start highlighting log.level indicators { ERROR, WARN, DEBUG } with predefined colors to make it easy for users to spot these messages without needing to use highlight text box. So here is the proposed UX:

  1. Only highlight log lines that we know are errors, warns or debug messages (log.level is one indicator)
  2. Only highlight the word that represents the type of message - that is only highlight error, warn, debug words.
  3. If users are already highlighting any one of {error, warn, debug}, then the highlight color overrides the colors for these keywords.

@katrin-freihofner feel free to chime in if I misrepresented or missed something.

@mukeshelastic It'd be nice to make the field and the list of matched keywords for each level configurable at the very least in the beginning. Different logging systems may have different wording for the same level of errors, e.g. [INF, info, information] or [Critical, Fatal, FTL, CTC, CRT]

Agree with the use case @kanadaj. If we are accounting for errors, warn statements in logs then ideally we should cover keywords that are typically used for errors and warns in different logging systems. And instead of hard-coding that in our UI, we could provide flexibility to users to specify the keywords and associated colors. We will ideate on UX to enable this further.

As I don't see this on our short-term roadmap I'm going to close this issue.

@katrin-freihofner are we closing out all issues not on the short-term roadmap? Where do we want to keep track the enhancement requests and ideas instead?

Let's reopen so we can still keep track but remove the design label!?

That sounds reasonable, thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ctindel picture ctindel  路  81Comments

passkey1510 picture passkey1510  路  96Comments

JulienPalard picture JulienPalard  路  95Comments

stacey-gammon picture stacey-gammon  路  74Comments

bquartier picture bquartier  路  79Comments