-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[iptables,journald] Re-enable system tests for journald inputs (#5984)
system tests for the journald input have been disabled to a segfault. This uses a workaround to avoid that segfault so we can continue testing. While performing that testing I discovered that neither iptables nor journald were aligned with the current ECS definition of the log.syslog.* fields. ECS added numerous log.syslog fields that should be used by journald/iptables instead of syslog.*. And because journald is an input package this needs to be done without an Ingest Pipeline so that users with custom pipelines can benefit. Bump stack version for the iptables integration to get journald input fixes. Closes #2602 Relates elastic/elastic-package#1236
- Loading branch information
1 parent
3a4bec1
commit e55da04
Showing
23 changed files
with
708 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
packages/iptables/data_stream/log/_dev/test/system/test-journald-config.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
service: iptables-log-journald | ||
skip: | ||
reason: "A bug on the host journald causes our journald input to panic" | ||
link: https://github.com/elastic/integrations/issues/2602 | ||
input: journald | ||
data_stream: | ||
vars: | ||
paths: | ||
- "{{SERVICE_LOGS_DIR}}/iptables.journal" | ||
- "/run/service_logs/iptables.journal" |
6 changes: 0 additions & 6 deletions
6
packages/iptables/data_stream/log/_dev/test/system/test-logfile-config.yml
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
packages/iptables/data_stream/log/_dev/test/system/test-udp-config.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM debian:stable-slim | ||
|
||
RUN apt-get update \ | ||
&& apt install -y systemd-journal-remote \ | ||
&& rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
version: '2.3' | ||
services: | ||
journald: | ||
image: alpine | ||
build: . | ||
volumes: | ||
- ./sample_logs:/sample_logs:ro | ||
- ${SERVICE_LOGS_DIR}:/var/log | ||
command: /bin/sh -c "cp /sample_logs/* /var/log/" | ||
# Use journalctl -o export > test.journal.export | ||
# to write logs to journald export format. Then this creates a new binary journal | ||
# file from those logs to use in testing. | ||
command: /bin/sh -c "/lib/systemd/systemd-journal-remote -o /var/log/test.journal /sample_logs/*.export" |
Binary file not shown.
Oops, something went wrong.