Ansible role to install and configure the Graylog sidecar.
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
- graylog_sidecar_api_token
- graylog_sidecar_cache_path
- graylog_sidecar_config_directory
- graylog_sidecar_list_log_files
- graylog_sidecar_log_path
- graylog_sidecar_log_rotate_keep_files
- graylog_sidecar_log_rotate_max_file_size
- graylog_sidecar_node_id
- graylog_sidecar_node_name
- graylog_sidecar_package
- graylog_sidecar_send_status
- graylog_sidecar_server_url
- graylog_sidecar_tls_skip_verify
- graylog_sidecar_update_interval
- graylog_sidecar_whitelist
- Discovered Tags
- Dependencies
- License
- Author
- Minimum Ansible version:
2.10
Token for Graylog authentication
graylog_sidecar_api_token:
Cache path
graylog_sidecar_cache_path: /var/cache/graylog-sidecar
Path to config directory
graylog_sidecar_config_directory: /var/lib/graylog-sidecar/generated
List log files
graylog_sidecar_list_log_files: []
Log path
graylog_sidecar_log_path: /var/log/graylog-sidecar
Max files to keep for log rotation
graylog_sidecar_log_rotate_keep_files: 10
Max file size for log rotation
graylog_sidecar_log_rotate_max_file_size: 10MiB
Value of part for the node ID
graylog_sidecar_node_id: file:/etc/machine-id
Node name sent to Graylog
graylog_sidecar_node_name: '{{ inventory_hostname }}'
Download URL for sidecar package
graylog_sidecar_package:
https://github.com/Graylog2/collector-sidecar/releases/download/1.0.0/graylog-sidecar_1.0.0-1_amd64.deb
Send status
graylog_sidecar_send_status: true
URL to Graylog server
graylog_sidecar_server_url: http://127.0.0.1:9000
Skip TLS verify
graylog_sidecar_tls_skip_verify: false
Update interval
graylog_sidecar_update_interval: 10
List of allowed binaries
graylog_sidecar_whitelist:
- /usr/bin/filebeat
- /usr/bin/packetbeat
- /usr/bin/metricbeat
- /usr/bin/heartbeat
- /usr/bin/auditbeat
- /usr/bin/journalbeat
- /usr/share/filebeat/bin/filebeat
- /usr/share/packetbeat/bin/packetbeat
- /usr/share/metricbeat/bin/metricbeat
- /usr/share/heartbeat/bin/heartbeat
- /usr/share/auditbeat/bin/auditbeat
- /usr/share/journalbeat/bin/journalbeat
graylog-sidecar
- None
Apache-2.0