Skip to content

Commit 58e7191

Browse files
Document Journald on docker (#13597)
--------- Co-authored-by: Colleen McGinnis <[email protected]>
1 parent 21ae013 commit 58e7191

File tree

11 files changed

+98
-3
lines changed

11 files changed

+98
-3
lines changed

packages/iptables/_dev/build/docs/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,22 @@ traffic (allow/deny).
99
The module is by default configured to run with the `udp` input on port `9001`.
1010
However, it can also be configured to read from a file path or journald.
1111

12+
To read Journald logs from within a container, you need to use a
13+
Docker image variant that contains `journalctl` binary. The variant
14+
supporting Journald is `elastic-agent-complete`.
15+
16+
Journal files can have breaking changes making it
17+
impossible to read files generated by a newer versions of
18+
Journald. Ensure the journal files you are reading were generated by
19+
a version equal to or older than the `journalctl` shipped with the Docker
20+
image.
21+
22+
To check the version of `journalctl` shipped with an Elastic Agent
23+
Docker image, run the following command:
24+
```
25+
docker run --rm -it --entrypoint journalctl docker.elastic.co/elastic-agent/elastic-agent-complete:<VERSION> --version
26+
```
27+
1228
## Logs
1329

1430
### Iptables log

packages/iptables/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "1.21.1"
3+
changes:
4+
- description: Update documentation to mention the requirements for reading Journald logs.
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/13597
27
- version: "1.21.0"
38
changes:
49
- description: Allow @custom pipeline access to event.original without setting preserve_original_event.

packages/iptables/docs/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,22 @@ traffic (allow/deny).
99
The module is by default configured to run with the `udp` input on port `9001`.
1010
However, it can also be configured to read from a file path or journald.
1111

12+
To read Journald logs from within a container, you need to use a
13+
Docker image variant that contains `journalctl` binary. The variant
14+
supporting Journald is `elastic-agent-complete`.
15+
16+
Journal files can have breaking changes making it
17+
impossible to read files generated by a newer versions of
18+
Journald. Ensure the journal files you are reading were generated by
19+
a version equal to or older than the `journalctl` shipped with the Docker
20+
image.
21+
22+
To check the version of `journalctl` shipped with an Elastic Agent
23+
Docker image, run the following command:
24+
```
25+
docker run --rm -it --entrypoint journalctl docker.elastic.co/elastic-agent/elastic-agent-complete:<VERSION> --version
26+
```
27+
1228
## Logs
1329

1430
### Iptables log

packages/iptables/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: iptables
22
title: Iptables
3-
version: "1.21.0"
3+
version: "1.21.1"
44
description: Collect logs from Iptables with Elastic Agent.
55
type: integration
66
icons:

packages/journald/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "1.2.1"
3+
changes:
4+
- description: Update documentation to mention the requirements for reading Journald logs.
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/13597
27
- version: "1.2.0"
38
changes:
49
- description: Add support for defining Conditions

packages/journald/docs/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@ The journald input reads the log data and the metadata associated with it.
55

66
The journald input is available on Linux systems with `systemd` installed.
77

8+
To read Journald logs from within a container, you need to use a
9+
Docker image variant that contains `journalctl` binary. The variant
10+
supporting Journald is `elastic-agent-complete`.
11+
12+
Journal files can have breaking changes making it
13+
impossible to read files generated by a newer versions of
14+
Journald. Ensure the journal files you are reading were generated by
15+
a version equal to or older than the `journalctl` shipped with the Docker
16+
image.
17+
18+
To check the version of `journalctl` shipped with an Elastic-Agent
19+
Docker image, run the following command:
20+
```
21+
docker run --rm -it --entrypoint journalctl docker.elastic.co/elastic-agent/elastic-agent-complete:<VERSION> --version
22+
```
23+
824
An example event looks as follows:
925

1026
```json

packages/journald/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: 3.3.0
22
name: journald
33
title: "Custom Journald logs"
4-
version: 1.2.0
4+
version: 1.2.1
55
description: Collect logs from journald with Elastic Agent.
66
type: input
77
categories:

packages/system/_dev/build/docs/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,22 @@ Each data stream collects different kinds of metric data, which may require dedi
3838
to be fetched and which may vary across operating systems.
3939
Details on the permissions needed for each data stream are available in the [Metrics reference](#metrics-reference).
4040

41+
To read Journald logs from within a container, you need to use a
42+
Docker image variant that contains `journalctl` binary. The variant
43+
supporting Journald is `elastic-agent-complete`.
44+
45+
Journal files can have breaking changes making it
46+
impossible to read files generated by a newer versions of
47+
Journald. Ensure the journal files you are reading were generated by
48+
a version equal to or older than the `journalctl` shipped with the Docker
49+
image.
50+
51+
To check the version of `journalctl` shipped with an Elastic-Agent
52+
Docker image, run the following command:
53+
```
54+
docker run --rm -it --entrypoint journalctl docker.elastic.co/elastic-agent/elastic-agent-complete:<VERSION> --version
55+
```
56+
4157
## Setup
4258

4359
For step-by-step instructions on how to set up an integration, see the

packages/system/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "2.3.2"
3+
changes:
4+
- description: Update documentation to mention the requirements for reading Journald logs.
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/13597
27
- version: "2.3.1"
38
changes:
49
- description: Change default to use journald input for SLES 15 SP6.

packages/system/docs/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,22 @@ Each data stream collects different kinds of metric data, which may require dedi
3838
to be fetched and which may vary across operating systems.
3939
Details on the permissions needed for each data stream are available in the [Metrics reference](#metrics-reference).
4040

41+
To read Journald logs from within a container, you need to use a
42+
Docker image variant that contains `journalctl` binary. The variant
43+
supporting Journald is `elastic-agent-complete`.
44+
45+
Journal files can have breaking changes making it
46+
impossible to read files generated by a newer versions of
47+
Journald. Ensure the journal files you are reading were generated by
48+
a version equal to or older than the `journalctl` shipped with the Docker
49+
image.
50+
51+
To check the version of `journalctl` shipped with an Elastic-Agent
52+
Docker image, run the following command:
53+
```
54+
docker run --rm -it --entrypoint journalctl docker.elastic.co/elastic-agent/elastic-agent-complete:<VERSION> --version
55+
```
56+
4157
## Setup
4258

4359
For step-by-step instructions on how to set up an integration, see the

0 commit comments

Comments
 (0)