forked from elastic/integrations
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add system test for iptables syslog input (elastic#587)
Add system test for the syslog input (udp) in the iptables log data stream. Pipeline tests and a system test for the logfile input already existed. Fixes - Handle missing iptables.raw_date when beats syslog input is used. - Add missing fields used by the beats syslog input.
- Loading branch information
1 parent
3b232d7
commit bc74642
Showing
11 changed files
with
32 additions
and
126 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
version: '2.3' | ||
services: | ||
iptables: | ||
tty: true | ||
build: . | ||
iptables-logfile: | ||
image: alpine | ||
volumes: | ||
- ./sample_logs:/sample_logs:ro | ||
- ${SERVICE_LOGS_DIR}:/var/log | ||
command: -c "cp /iptables.log /var/log" | ||
command: /bin/sh -c "cp /sample_logs/* /var/log/" | ||
iptables-log-syslog: | ||
image: akroh/stream:v0.0.1 | ||
volumes: | ||
- ./sample_logs:/sample_logs:ro | ||
command: log --start-signal=SIGHUP --delay=5s --addr elastic-agent:9514 -p=udp /sample_logs/iptables.log |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../_dev/test/system/test-default-config.yml → .../_dev/test/system/test-logfile-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,5 +1,5 @@ | ||
service: iptables-logfile | ||
input: logfile | ||
vars: ~ | ||
data_stream: | ||
vars: | ||
paths: | ||
|
7 changes: 7 additions & 0 deletions
7
packages/iptables/data_stream/log/_dev/test/system/test-syslog-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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
service: iptables-log-syslog | ||
service_notify_signal: SIGHUP | ||
input: syslog | ||
data_stream: | ||
vars: | ||
syslog_host: 0.0.0.0 | ||
syslog_port: 9514 |
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