Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color Log Based on Field Value (Red Log when Severity: Error) #3398

Open
MennaKassem opened this issue May 2, 2024 · 2 comments
Open

Color Log Based on Field Value (Red Log when Severity: Error) #3398

MennaKassem opened this issue May 2, 2024 · 2 comments

Comments

@MennaKassem
Copy link

MennaKassem commented May 2, 2024

Which OpenObserve functionalities are relevant/related to the feature request?

log search

Description

We need to be able to color the logs based on field value. we have field called severity which has values like info,warn and error and we need the log color be red when the severity field value is error . to be easy for detection.

Proposed solution

  • add ability to change the log color based on specific field values

Alternatives considered

@gaby
Copy link
Contributor

gaby commented May 2, 2024

The tables are made with Quasar, so something like this should work?

https://quasar.dev/vue-components/table#body-slots

The quasar dependency needs to be updated, O2 is using a version from 2022, https://github.com/openobserve/openobserve/blob/main/web/package.json Current quasar release is v2.15.4

Related to #3157

@kanashimia
Copy link

Very much needed, I also suggest colouring by default based on SeverityNumber for OpenTelemetry.

But it can be done in multiple ways, you don't entirely need to colour the whole entry for this, for example one could either allow adding something like a label that has a colour based on the severity value (grafana like), or one could also add a specific severity field with colour. One could also support multiple ways at the same time.

Examples for the UI:
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants