Skip to content

ashokc/ansible-logstash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-logstash

Ansible Galaxy

Ansible role for Logstash. Tested platforms at this time are:

  • Ubuntu 16.04

** Developed and Tested with Ansible version 2.4.1.0 **

Dependency

None.

This role has been used and tested with the elastic.elasticsearch role as the provisioner for elasticsearch, ashokc.filebeat for Filebeat, and ashokc.kibana for Kibana as part of an ELK stack in the blog article ELK Stack with Vagrant and Ansible

Usage

  • Create your Ansible playbook with your own tasks
  • Include the role ashokc.logstash and override the role defaults

e.g.

- hosts: logstash-nodes
  become: true
  roles:
    - { role: ashokc.logstash }

The following variables in defaults/main.yml can be overridden:

es_major_version: 5.x
elk_version : 5.6.1
es_apt_key : https://artifacts.elastic.co/GPG-KEY-elasticsearch
es_apt_url : deb https://artifacts.elastic.co/packages/{{ es_major_version }}/apt stable main
update_java: False
logstash_user: logstashUser
logstash_group: logstashGroup
logstash_enabled_on_boot : yes
logstash_version : "{{ elk_version }}"
filebeat_2_logstash_port: 5044
logstash_install_plugins:
  - logstash-input-beats
logstash_es_urls:
  - http://localhost:9200

Releases

No releases published

Packages

No packages published