Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 748 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 748 Bytes

ansible-logstash

This repository contains an ansible playbook (logstash.yml) that installs Logstash to a server (together with Elasticsearch, Kibana and Nginx). It also contains a role that installs Filebeat to app servers in order to forward the logs to logstash (roles/filebeat).

Usage

Running the playbook:

ansible-playbook -i logstash -u vagrant logstash.yml

Example of how to add the filebeat role to your app server's playbooks:

- hosts: app-vagrant
  remote_user: vagrant
  become: yes
  vars:
    logs_path: "/home/vagrant/fakeapp/log/*.log"
  vars_files:
     - variables/logstash/vagrant
  roles:
     - filebeat

Versions

  • filebeat 1.2.1
  • java 1.7.0
  • kibana 4.5.0
  • logstash 2.3.1
  • nginx 1.4.6