Merge "Added IPTables module support to Filebeat config"

This commit is contained in:
Zuul 2020-03-09 10:08:37 +00:00 committed by Gerrit Code Review
commit 0d3c20580f
2 changed files with 16 additions and 0 deletions

View File

@ -300,3 +300,9 @@ processors: {}
# Logging level
# Available log levels are error, warning, info, debug
filebeat_log_level: "{{ elastic_beat_log_level | default('info') }}"
# Enable IPtables logging module
filebeat_iptables_enabled: false
# The following allows one to specify log files in non-standard locations,
# defaulting to log collection in syslog
filebeat_iptables_log_paths: ["var/log/syslog"]

View File

@ -209,6 +209,16 @@ filebeat.modules:
# can be added under this section.
#input:
#------------------------------ IP Tables Module ------------------------------
{% if (filebeat_iptables_enabled | bool) %}
- module: iptables
# Syslog
log:
enabled: "true"
var.input: "file"
var.paths: {{ filebeat_iptables_log_paths | to_json }}
{% endif %}
#-------------------------------- Kafka Module --------------------------------
#- module: kafka
# All logs