Created
July 28, 2020 17:10
-
-
Save cyberbutler/95c389cd1c5cc45da4888e4b8ec7e9a2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Generic FileBeat Processor | |
filebeat.inputs: | |
- type: log | |
enabled: true | |
paths: | |
- /var/log/bash.log | |
fields: | |
infralogtype: bash # Tagging style borrowed from RedELK | |
fields_under_root: true | |
filebeat.config.modules: | |
# Glob pattern for configuration loading | |
path: ${path.config}/modules.d/*.yml | |
# Set to true to enable config reloading | |
reload.enabled: false | |
# Period on which files under path should be checked for changes | |
#reload.period: 10s | |
setup.template.settings: | |
index.number_of_shards: 3 | |
name: ${HOSTNAME} | |
output.logstash: | |
hosts: ["logstash:5000"] | |
logging: | |
level: info | |
to_files: true | |
to_syslog: false | |
files: | |
path: /var/log/filebeat | |
name: bash-beat.log | |
keepfiles: 2 | |
processors: | |
- add_host_metadata: ~ | |
- add_docker_metadata: ~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment