azavea.logstash

ansible-logstash

An Ansible role for installing Logstash.

Role Variables

  • logstash_version - Logstash version
  • logstash_disable_logstash_web - Flag to disable logstash-web (default: True)

Example Playbook

It is important to note that this role does not include any templates for Logstash configuration. Because Logstash supports conf.d style configuration, users of the role are encouraged to write separate Ansible tasks and templates to configure Logstash for their needs.

There is an example template in the examples directory that reads /var/log/syslog and pretty prints a dump of that to stdout. Because Logstash is running as a daemon, stdout ends up being /var/log/upstart/logstash.log.

Running the following command should allow you to confirm that the Logstash file input and stdout output are working:

$ sudo cat /var/log/upstart/logstash.log
About

An Ansible role for installing Logstash.

Install
ansible-galaxy install azavea.logstash
GitHub repository
License
apache-2.0
Downloads
2.2k
Owner
Geospatial software engineering for good