This role ...
To install run ansible-galaxy install sansible.filebeat
or add this to your
roles.yml
.
- name: sansible.filebeat
version: v1.0.0-latest
and run ansible-galaxy install -p ./roles -r roles.yml
This role uses tags: build and configure
build
- Installs Filebeatconfigure
- Configures Filebeat
Simply include role in your playbook with configuration
- name: Install and Configure filebeat
hosts: somehost
roles:
- role: sansible.filebeat
sansible_filebeat_configuration:
filebeat.inputs:
- type: log
enabled: true
json.keys_under_root: true
output.elasticsearch:
hosts:
- localhost:9200
index: "test-%{+yyyy.MM.dd}"
setup.template:
name: test
pattern: test-*
enabled: false