Skip to content

Commit

Permalink
Document feature in #11398
Browse files Browse the repository at this point in the history
  • Loading branch information
ian28223 authored Jan 16, 2023
1 parent 59ae7eb commit e6d71d4
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions journald/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,12 @@ If your journal is located elsewhere, add a `path` parameter with the correspond

##### Filter journal units

It's possible to filter in and out specific units by using these parameters:
It's possible to filter in and out specific system-level units by using these parameters:

- `include_units`: Includes all units specified.
- `exclude_units`: Excludes all units specified.
- `include_units`: Includes all system-level units specified.
- `exclude_units`: Excludes all system-level units specified.

Note:

Example:

Expand All @@ -99,6 +101,12 @@ logs:
- sshd.service
```

As of Datadog Agent version `7.37.0`+, user-level unit filtering can done by using these parameters:

- `include_user_units`: Includes all user-level units specified.
- `exclude_user_units`: Excludes all user-level units specified.
- **Note**: A wildcard `*` can also be used in in either `exclude_units` or `exclude_user_units` if only a particular Journald log log is desired.

##### Tailing the same journal multiple times

If you want to report units with different source or service tags, these must appear in separate journald configs.
Expand Down

0 comments on commit e6d71d4

Please sign in to comment.