Coder Social home page Coder Social logo

sansible / logstash Goto Github PK

View Code? Open in Web Editor NEW
2.0 9.0 5.0 46 KB

Install and configures Logstash via Ansible, see https://github.com/sansible/sansible for more information

License: MIT License

Makefile 55.33% Python 44.67%
ansible ansible-role ansible-roles logstash

logstash's Introduction

Logstash

Master: Build Status
Develop: Build Status

This roles installs Logstash for the ELK stack.

For more information on Logstash please visit elastic logstash.

Installation and Dependencies

This role will install sansible.users_and_groups for managing logstash user and sansible.java for installing java.

To install run ansible-galaxy install sansible.logstash or add this to your roles.yml

- name: sansible.logstash
  version: v2.1.x

and run ansible-galaxy install -p ./roles -r roles.yml

Tags

This role uses two tags: build and configure

  • build - Installs Logstash and all it's dependencies.
  • configure - Configure and ensures that the Logstash service is running.

Examples

To install:

- name: Elk Logstash
  hosts: "{{ hosts }}"

  roles:
    - role: sansible.logstash

To install 5.* version:

- name: Elk Logstash
  hosts: "{{ hosts }}"

  roles:
    - role: sansible.logstash
      sansible_logstash_family: 5.x
      sansible_logstash_version: 1:5.4.*

To install 6.* version:

- name: Elk Logstash
  hosts: "{{ hosts }}"

  roles:
    - role: sansible.logstash
      sansible_logstash_family: 6.x
      sansible_logstash_version: 1:6.6.*

With your own config files:

- name: Elk Logstash
  hosts: "{{ hosts }}"

  roles:
    - role: sansible.logstash
      sansible_logstash_default_config: no

  tasks:
    - name: Configure logstash
      become: yes
      template:
        src: "{{ item }}.j2"
        dest: "/etc/logstash/conf.d/{{ item }}"
      with_items:
        - templates/01-inputs.conf
        - templates/10-filters.conf
        - templates/90-outputs.conf
      notify:
        - restart logstash

logstash's People

Contributors

dennisconrad avatar js-kingkong-bot avatar lobsterdore avatar memmerson avatar msahota14 avatar quater avatar rsgoodall avatar wojtek-oledzki avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

logstash's Issues

Ansible 2.2 compatibility

This role needs to be updated in order to work correctly with Ansible 2.2
Ansible 2.2 does not support bare variables.

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.