How to display Loki log message and extra fields separately

On this screenshot I see that log level and message are displayed bold with white text and other metadata (collected from log message) displayed on separate line with grey color.

  • How are you trying to achieve it?
    I have searched docs and haven’t found how it’s possible to achieve that. To be honest I’m searching for something like “short message” in ELK to make developers see metadata only when they are actually needs it.

  • What happened?
    Nothing

  • What did you expect to happen?
    Could you please point me to the doc how to achieve that please?

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • Did you follow any online instructions? If so, what is the URL?

P.S. I’ve opened this topic in Grafana folder cause display log lines performed by Grafana

1 Like

I’ve found that it’s possible to achieve same result as on image using complex template for line_format with ASCI Escape sequences to modify font.

I’ve documented details in mu StackOverflow question - grafana - Loki display log message and extra fields separately - Stack Overflow