Loki Cheat Sheet
+ +See your logs
+Start by selecting a log stream from the Log labels selector
+Alternatively, you can write a stream selector into query field
+ {job="default/prometheus"} +Alternatively, you can write a stream selector into query field
+ {job="systemd-journal"} +Combine Stream selectors
+Returns all log lines from streams that both labels.Ω
+Filtering for search terms
++ {app="cassandra"!= "exact match"}
+ {app="cassandra"!= "do not match"} +
LogQL supports exact and regular expression filters
+Count over time
+This query counts all the per-second rate of all non-timeout errors within the last ten seconds for the MySQL job.
+Rate
+Returns all log lines from streams that both labels.Ω
+Aggregate,count,and group
+Returns all log lines from streams that both labels.Ω
+