Giter VIP home page Giter VIP logo

ansible-logstash's Introduction

logstash

This role installs, configures, and adds a supervisor service for logstash using tar packages

Requirements

This role installs, configures, and adds a supervisor service for logstash using tar packages

Role Variables

variable description default mandatory
logstash_state present or absent present
logstash_s3_bucket S3 bucket where tar file is located yes
logstash_s3_base base path to retrieve tar file from, not including filename yes
logstash_link create a link from the install dir to ./logstash true
logstash_remove_old remove old versions of logstash before installing true
logstash_setup_supervisor setup supervisor to manage the logstash process true
logstash_autostart start automatically on boot true
logstash_heap_size size of the heap to start logstash with 500m
logstash_java_opts java options to pass in at runtime -Djava.io.tmpdir={{ logstash_install_path }}/logstash
logstash_conf_dir path to configuration directory (.d type split configs are accepted by logstash) /etc/logstash/conf.d
logstash_opts extra options to start logstash with no
logstash_log_dir path to log file logstash will write to /var/log/logstash
logstash_java_home override the java home logstash will use no
logstash_configurations hash: { name: { source: , dest: } } none no
logrotate_dir directory for logrotate.d configs '/etc/logrotate.d no
logstash_plugins list of hashes containing names of plugins to install. ex - name: magical_plugin none no

Dependencies

No dependencies.

Example Playbook

An example playbook is included in the test directory, but here is a rundown on typical usage.

- hosts: all
  roles:
     - { role: logstash,
         logstash_version: 1.5.0.rc1.1,
         logstash_install_path: /opt,
         logstash_s3_bucket: sps-build-deploy,
         logstash_s3_base: /non-sps/elasticsearch/logstash/,
         logstash_java_home: /opt/java/java8,
         logstash_plugins:
                    [ { name: logstash-input-s3 } ],
         logstash_configs:
           { test:
             { source: /tmp/test.config,
               dest: testerfile.conf
             }
           }
       }

License

Apache 2.0

Author Information

Author: Ryan O'Keeffe ([email protected])

ansible-logstash's People

Contributors

danielredoak avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

spscommerce

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.