The logs level colors are not consistent between time series panel and logs panel

Hi everyone,
I’m using Grafana Loki version 2.9.4.
I have the issue that the logs level colors are not consistent between the time series panel and the logs panel.

As you can see, in my case:

  • The color of log level debug in graph is green, but in the log panel is blue.
  • The color of error is yellow in graph, but in the logs panel is red.
    The color of log level “info” and “warning” still aren’t consistent.
    The graph query is :
    sum by(severity,level) (count_over_time({source=“${source}”,zone=“$zone”, vm_name=“$vm_name”} | json | logfmt | drop error , error_details [$__range]))
    The logs panel query is:
    {zone=~“$zone”, vm_name=~“$vm_name”, source=~“$source”} |~ $filter |json | logfmt | drop error , error_details

Do you guys know how can I sync the color between panels?

You can configure colour for each timeseries in the time series panel - just click on the colour in the legend and set the same colour as you have in the log panel:

I knew this way would add overrides. But I have to do it manually, and when I create a new dashboard. I have to repeat this step. Is there any way to configure it one time?

No. But be smart - don’t create panel from the scratch, but copy it from the dashboard, where you already configured it. Then you just update query.

Many thanks @jangaraj,
Is there any way to configure the color from the query?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.