jpnewman.elk-filebeat
jpnewman.elk-filebeat
This Ansible role installs elastic Filebeat
Requirements
Ansible 2.x
Role Variables
| Variable | Description | Default |
|---|---|---|
libpcap_package |
'libpcap0.8' | |
filebeat_version |
5.3.0 | |
filebeat_version_check |
5.3.0 | |
filebeat_platform |
amd64 | |
filebeat_apt_package_name |
"filebeat-{{ filebeat_version }}-{{ filebeat_platform }}.deb" |
|
filebeat_download_url |
"https://artifacts.elastic.co/downloads/beats/filebeat/{{ filebeat_apt_package_name }}" |
|
filebeat_elasticsearch_output |
false | |
filebeat_elasticsearch_host |
'localhost:9200' | |
filebeat_logstash_output |
true | |
filebeat_logstash_host |
'localhost:5044' | |
filebeat_logstash_proxy |
||
filebeat_logstash_proxy_use_local_resolver |
||
ssl_cert_local_directory |
files/certs | |
ssl_cert_directory |
/etc/pki/tls/certs | |
ssl_cert |
logstash-forwarder.crt | |
certificate_authorities |
'["/etc/pki/tls/certs/logstash-forwarder.crt"]' | |
apt_cache_valid_time |
600 | |
geoip_database_extracted_filename |
GeoLite2-City.mmdb | |
geoip_database_url_filename |
"{{ geoip_database_extracted_filename }}.gz" |
|
geoip_database_url |
"http://geolite.maxmind.com/download/geoip/database/{{ geoip_database_url_filename }}" |
|
geoip_database_paths |
/usr/share/GeoIP/{{ geoip_database_extracted_filename }}/usr/local/var/GeoIP/{{ geoip_database_extracted_filename }} |
|
prospectors |
Contains a list of 'prospector' classes |
| 'prospector' class variables | Description |
|---|---|
| id | Id of prospector |
| paths | Contains a list of 'path' classes |
| type | prospector type |
| 'path' class variables | Description |
|---|---|
| log_paths | Contains a list of log file paths |
e.g.
prospectors:
- id: syslog
paths:
- log_paths:
- /var/log/syslog
- /var/log/auth.log
document_type: syslog
type: syslog
- id: varlog
paths:
- log_paths:
- /var/log/*.log
exclude_files:
- "^syslog$"
- "^auth.log$"
- "^filebeat.log.*$"
- "^topbeat.log.*$"
document_type: log
Dependencies
none
Example Playbook
- hosts: servers
roles:
- { role: jpnewman.elk-filebeat, tags: ["filebeat"] }
Testing
For more information on testing the template review readme ./tests/templates/README.md
License
MIT / BSD
Author Information
John Paul Newman
Install
ansible-galaxy install jpnewman.elk-filebeatLicense
mit
Downloads
155
Owner
Software Engineer with DevOps working on both Windows and *nix.
