I recently started playing around with Loki, got it set up and accepting logs and now I’m looking at setting up a Grafana dashboard to display the logs. However I’ve run into a minor issue with how I’d like to set up the panel.
I’ve created a panel to show the current logs from a specific environment and source using the labels applied to the logs, but currently the list of logs shows the entire log content, including labels and detected fields, as one line, like so:
log="[05-Feb-2021 19:37:05 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/blah.php on line 229" source=“phplog”
What I’d like is for it to just display the timestamp and then the content of the “log” field. Is it possible to do this or am I stuck with the default display format?
For the record, I’m working with Grafana v7.4.0.