Substring in Grafana Loki

  • What Grafana version and what operating system are you using? - Grafana v10.4.1 (d3ce857c0e) Windows

  • What are you trying to achieve?
    I have built a dashboard with Server name and other information. I would like to extract few characters from the server name and group by that.

  • How are you trying to achieve it?
    I need some help in achieving this.

  • What happened?

  • What did you expect to happen?

  • 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?