Skip to content

Commit

Permalink
Add a note about group membership (#1636)
Browse files Browse the repository at this point in the history
  • Loading branch information
clayton-cornell authored Sep 10, 2024
1 parent 6ec5fd6 commit e97bc15
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/sources/reference/components/loki/loki.source.journal.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ title: loki.source.journal

Multiple `loki.source.journal` components can be specified by giving them different labels.

{{< admonition type="note" >}}
Make sure that the `grafana-alloy` user is a member of the following groups:

* adm
* systemd-journal
{{< /admonition >}}

## Usage

```alloy
Expand All @@ -36,7 +43,9 @@ Name | Type | Description
`relabel_rules` | `RelabelRules` | Relabeling rules to apply on log entries. | `{}` | no
`labels` | `map(string)` | The labels to apply to every log coming out of the journal. | `{}` | no

> **NOTE**: A `job` label is added with the full name of the component `loki.source.journal.LABEL`.
{{< admonition type="note" >}}
A `job` label is added with the full name of the component `loki.source.journal.LABEL`.
{{< /admonition >}}

When the `format_as_json` argument is true, log messages are passed through as
JSON with all of the original fields from the journal entry. Otherwise, the log
Expand Down

0 comments on commit e97bc15

Please sign in to comment.