Ansible role to install and configure filebeat.
Building and improving this Ansible role have been sponsored by my current and previous employers like Cloudpunks GmbH and Proact Deutschland GmbH.
- Requirements
- Default Variables
- filebeat_console_enabled
- filebeat_default_inputs
- filebeat_default_modules
- filebeat_default_processors
- filebeat_group_inputs
- filebeat_group_modules
- filebeat_group_processors
- filebeat_host_inputs
- filebeat_host_modules
- filebeat_host_processors
- filebeat_keyring
- filebeat_logging_level
- filebeat_logging_selectors
- filebeat_logging_to_files
- filebeat_logstash_enabled
- filebeat_logstash_hosts
- filebeat_major_version
- filebeat_name
- filebeat_service_enabled
- filebeat_tags
- Discovered Tags
- Dependencies
- License
- Author
- Minimum Ansible version:
2.10
filebeat_console_enabled: false
List of default inputs, gets directly transformed to yaml
filebeat_default_inputs:
- type: log
enabled: true
paths:
- /var/log/kern.log
fields:
kern: true
- type: log
enabled: true
paths:
- /var/log/dpkg.log
fields:
dpkg: true
filebeat_default_inputs:
- type: log
enabled: True
paths:
- /var/log/*.log
List of default modules, gets directly transformed to yaml
filebeat_default_modules:
- module: system
syslog:
enabled: false
auth:
enabled: true
List of default processors, gets directly transformed to yaml
filebeat_default_processors:
- add_host_metadata:
- add_cloud_metadata:
- add_docker_metadata:
List of group inputs, merged with filebeat_default_inputs
filebeat_group_inputs: []
List of group modules, merged with filebeat_default_modules
filebeat_group_modules: []
List of group processors, merged with filebeat_default_processors
filebeat_group_processors: []
List of host inputs, merged with filebeat_default_inputs
filebeat_host_inputs: []
List of host modules, merged with filebeat_default_modules
filebeat_host_modules: []
List of host processors, merged with filebeat_default_processors
filebeat_host_processors: []
Path for the repository keyring
filebeat_keyring: /usr/share/keyrings/elastic-archive-keyring.gpg
Define logging level
filebeat_logging_level: warning
Define logging selectors, like beat, publish, service
filebeat_logging_selectors: []
Log to files, keep journal clean
filebeat_logging_to_files: true
filebeat_logstash_enabled: true
filebeat_logstash_hosts: []
Major version to install, used for the APT repository
filebeat_major_version: 7
Name of the shipper within the output
filebeat_name: '{{ ansible_hostname }}'
Enable the console output
List of tags to assign for the shipper
filebeat_tags: []
filebeat
- None
Apache-2.0