You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Leaves, spines, exits |`journal`| Collects logs from the systemd journal; auto-discovers both volatile (`/run/log/journal`) and persistent (`/var/log/journal`) storage |`job=systemd-journal`, `unit`, `level`|
37
+
| Management servers |`journal-file`| Collects logs from the persistent systemd journal at a configurable path; supports migrating cursor position from promtail |`job=systemd-journal`, `unit`, `level`|
38
+
| Hosts without journald |`syslog`| Tails `/var/log/syslog`|`job=syslog`|
39
+
| Hosts running Docker |`docker`| Collects logs from all Docker containers via the Docker socket |`job=docker`, `container`|
40
+
41
+
All log entries carry the `host` and `partition` labels regardless of snippet, which makes it easy to filter logs in Grafana Explore by host or partition.
42
+
43
+
### Querying Logs in Grafana
44
+
45
+
Logs can be explored in Grafana using the **Explore** view with the Loki data source. Useful label filters:
46
+
47
+
-`{partition="<partition-id>"}` — all logs from a partition
48
+
-`{host="<hostname>"}` — all logs from a specific host
49
+
-`{job="docker", container="<name>"}` — logs from a specific Docker container
50
+
-`{job="systemd-journal", unit="<unit>.service"}` — logs from a specific systemd unit
51
+
-`{job="systemd-journal", level="error"}` — error-level journal entries across all units
0 commit comments