logstash
ansible-role-logstash
This role installs and configures Logstash.
Requirements
Ansible 2.15 or newer.
Supported Platforms
- Debian - 11 (Bullseye)
- Debian - 12 (Bookworm)
- Ubuntu - 22.04 (Jammy Jellyfish)
- Ubuntu - 24.04 (Noble Numbat)
Role Variables
Variable | Required | Default | Choices | Comments |
---|---|---|---|---|
logstash_dependencies | true | list | See defaults/main.yml . |
|
logstash_package_state | true | present |
string | Use latest to upgrade logstash. |
logstash_user | true | logstash |
string | |
logstash_group | true | logstash |
string | |
logstash_secondary_groups | true | [] |
list | |
logstash_path_data | true | /var/lib/logstash |
string | |
logstash_path_config | true | /etc/logstash/conf.d |
string | |
logstash_path_logs | true | /var/log/logstash |
string | |
logstash_log_level | true | info |
string | |
logstash_conf_fileglob | true | files/*.conf |
string | |
logstash_plugins | true | [] |
list | |
logstash_jvm_heap_size | true | 1g |
string | |
logstash_extra_config | true | {} |
dict |
Dependencies
Java 8+ or equivalent. For testing this roles uses default-jre-headless
package.
Example Playbook
- hosts: all
roles:
- role: ansible-role-logstash
Testing
molecule test
License
MIT
Author Information
Install
ansible-galaxy install boutetnico/ansible-role-logstash
License
mit
Downloads
22
Owner
System Engineer