Loki not set up properly for alerts and explore

  • What Grafana version and what operating system are you using?
    I’m using Windows 11 and grafana cloud
  • What are you trying to achieve?
    I’m trying to search an app for logs connected to a keyword and set up alerts
  • How are you trying to achieve it?
    I’m using th |= or !~ operators to connect an app search to a string to filter it down
    I’m going to the alerts tab and getting an error message related to loki
  • What happened?
    Errors loading logs in exploer:
    Query error

parse error at line 1, col 3: syntax error: unexpected IDENTIFIER, expecting = or =~ or !~ or !=

Failed to load log volume for this query

parse error at line 1, col 35: syntax error: unexpected IDENTIFIER, expecting = or =~ or !~ or !=
In alerts:
Failed to load the data source configuration for Loki: Unable to fetch alert rules. Is the Loki data source properly configured?

  • What did you expect to happen?
    that there would not be error messages and I could just use grafana

  • 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.
    see above

  • Did you follow any online instructions? If so, what is the URL?
    I followed the instructions hidden by the question mark at the top right of the explore window