filebeat
nephelaiio.filebeat
An ansible role to install and configure filebeat
Role Variables
Please refer to the defaults file for an up to date list of input parameters.
Dependencies
Please review the dependency configuration for more details
Example Playbook
- name: Deploy filebeat
hosts: servers
vars:
filebeat_package_state: latest
filebeat_conf_manage: true
filebeat_conf:
fields:
environment: development
inputs:
- type: log
paths:
- /var/log/system.log
- /var/log/wifi.log
- type: log
paths:
- "/var/log/nginx/*.log"
fields:
application: nginx
output:
elasticsearch:
enabled: true
hosts:
- http://localhost:9200
setup:
dashboards:
enabled: true
beat: filebeat
always_kibana: true
template:
enabled: true
kibana:
host: http://localhost:80
roles:
- role: nephelaiio.filebeat
Testing
Please make sure your environment has docker installed in order to run role validation tests. Additional python dependencies are listed in the requirements file
Role is tested against the following distributions (docker images):
- Ubuntu Jammy
- Ubuntu Focal
- Debian Bookworm
- Debian Bullseye
- Rocky Linux 9
You can test the role directly from sources using command molecule test
License
This project is licensed under the terms of the MIT License
Install
ansible-galaxy install nephelaiio/ansible-role-filebeat
License
mit
Downloads
46662
Owner