Open weltenwort opened 5 years ago
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:
@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!
I would also like to see this feature in Kibana as we were using LogTrail plugin as long as Kibana supported legacy plugins w hich had this feature. We would be using this in a logging usecase so we would be highlighting the lines based on their log level. As long as I am able to configure the loglevels in the highlighting as @kanadaj mentioned(both amount of levels and names as log4j2 supports custom loglevels) I would be happy to give it a try as soon as there is a draft. Also, I would like this feature to be integrated with #96172 so the highlighting is restored when loading a view.
It would be great!
if it can help there is a super hacky script for ephemeral needs to color rows backgrounds in "discover" based on column value
Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs)
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...
The colors could...