Hello Everyone,
I started using Grafana with Loki lately to build dashboards. I’m currently running OpenVPN on my OPNSense. I am trying to build a dashboard for that on Grafana. I was able to do the following:
-
Format the logs and send it to Loki using promtail:
so the logs being sent to Loki are in the following format
-
This how the logs looks like in Grafana
So basically every 10s, promtail sends the log entries to Loki, I am trying to create a query to show
a list of the connected users over the time. I was able to create this table
But the issue is that the values are not unique, I want the table to have a unique list of all connected users. I tried to use other transformations like group by and reduce and i end up with this.
The other information is removed from the table.
How can I get the table to have list unique connected users with all the columns I want?