Ansible role to install and configure a Logstash log processor.
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
- logstash_exporter_args
- logstash_exporter_download
- logstash_exporter_enabled
- logstash_exporter_host
- logstash_exporter_port
- logstash_exporter_version
- logstash_extra_pipelines
- logstash_general_pipelines
- logstash_group
- logstash_http_enabled
- logstash_http_host
- logstash_http_port
- logstash_initial_heap_space
- logstash_install_plugins
- logstash_java_home
- logstash_keyring
- logstash_major_version
- logstash_maximum_heap_space
- logstash_node_name
- logstash_openjdk_version
- logstash_pipeline_ordered
- logstash_server_version
- logstash_user
- Discovered Tags
- Dependencies
- License
- Author
- Minimum Ansible version:
2.10
List of arguments joined for the executable
logstash_exporter_args: []
URL to the archive of the release to install
logstash_exporter_download:
https://gitlab.com/alxrem/prometheus-logstash-exporter/uploads/e0e93259ae977cc73674b95e5f5b4cfa/prometheus-logstash-exporter-{{
logstash_exporter_version }}-linux-amd64
Enable the logstash exporter
logstash_exporter_enabled: true
Host of logstash to connect to
logstash_exporter_host: localhost
Port of logstash to connect to
logstash_exporter_port: 9600
Version of the release to install
logstash_exporter_version: 0.7.0
List of extra pipeline definitions
logstash_extra_pipelines: []
List of general pipeline definitions
logstash_general_pipelines:
- pipeline.id: main
path.config: /etc/logstash/conf.d/*.conf
Name of the group owning Elasticsearch
logstash_group: logstash
Enable the integrated HTTP API
logstash_http_enabled: true
Host binding for the HTTP API
logstash_http_host: 127.0.0.1
Port range for the HTTP API
logstash_http_port: 9600-9700
Represents the initial size of total heap space
logstash_initial_heap_space: 1g
List of plugins to install
logstash_install_plugins: []
logstash_java_home: /usr/lib/jvm/java-11-openjdk-amd64
Path for the repository keyring
logstash_keyring: /usr/share/keyrings/elastic-archive-keyring.gpg
Major version built via server version variable
logstash_major_version: "{{ logstash_server_version.split('.')[0] }}"
Represents the maximum size of total heap space
logstash_maximum_heap_space: 1g
Name of the node
logstash_node_name: '{{ ansible_hostname }}'
Version of OpenJDK to install as part of Logstash
logstash_openjdk_version: 11
Set the pipeline event ordering
logstash_pipeline_ordered: auto
Version of Logstash that gets installed
logstash_server_version: '8.5'
Path to the java home environment
logstash_user: logstash
logstash
logstash-exporter
- None
Apache-2.0