filebeat
Filebeat
Setup a filebeat instance.
Requirements
An apt based linux system
Role Variables
Variable | Default / Mandatory | Description |
---|---|---|
filebeat_config |
{ output.elasticsearch: { hosts: ["localhost:9200"] }, filebeat.config.modules: { path: ${path.config}/modules.d/*.yml , reload.enabled: false } } |
Since the filebeat settings file is a yaml file we write the whole object to the settings file. For more Information please see the filebeat settings file documentation |
filebeat_modules |
{} |
Dict of config files to write to modules.d/. More information below. |
filebeat_modules
Each entry in the filebeat_modules
consists out of the following entries.
The key of each entry is used to determine the name of the config file and the content of the entry is written to the config file.
Example Playbook
- hosts: all
become: true
vars:
filebeat_config:
filebeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: false
output.logstash:
hosts: ["localhost:5044"]
filebeat_modules:
nginx:
access:
enabled: true
error:
enabled: true
License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Author Information
Install
ansible-galaxy install stuvusIT/filebeat
License
cc-by-sa-4.0
Downloads
19
Owner
stuvus IT Team - Studierendenvertretung Universität Stuttgart