Code Monkey home page Code Monkey logo

ansible-role-graylog-collector's Introduction

Ansible Role: Graylog Collector Sidecar

Build Status

Installs and configures Graylog Sidecar Collector on RedHat/CentOS Linux servers.

Installation options:

  • latest version (pulled from official github repository)
  • specific version (pulled from official github repository)
  • local rpm (copied from files directory to remote server)

Requirements

None.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

sidecar_server_url: http://127.0.0.1:9000/api/
sidecar_update_interval: 10
sidecar_tls_skip_verify: false
sidecar_send_status: true
sidecar_list_log_files: /var/log
sidecar_node_id: graylog-collector-sidecar
sidecar_collector_id: file:/etc/graylog/collector-sidecar/collector-id
sidecar_cache_path: /var/cache/graylog/collector-sidecar
sidecar_log_path: /var/log/graylog/collector-sidecar
sidecar_log_rotation_time: 86400
sidecar_log_max_age: 604800

sidecar_tags: ['linux', 'apache']

sidecar_backends:
         - {name: nxlog, enabled: false, binary_path: /usr/bin/nxlog, configuration_path: /etc/graylog/collector-sidecar/generated/nxlog.conf}
         - {name: filebeat, enabled: true, binary_path: /usr/bin/filebeat, configuration_path: /etc/graylog/collector-sidecar/generated/filebeat.yml}

If you like to install a specific version instead of the latest version, set sidecar_version: X.Y.Z.

 sidecar_version: 0.1.5

If you like to install a local rpm, place it in the files directory and set sidecar_local_package: 'collector-sidecar-X.Y.Z-1.x86_64.rpm' .

 sidecar_local_package: collector-sidecar-0.1.5-1.x86_64.rpm

Dependencies

None.

Example Playbook

---
- hosts: all
  roles:
    - role: mklettner.graylog_collector
      sidecar_server_url: https://example.com:9000/api/
      sidecar_update_interval: 20
      sidecar_node_id: "{{ ansible_hostname }}"
      sidecar_backends:
                 - {name: filebeat, enabled: true, binary_path: /usr/bin/filebeat, configuration_path: /etc/graylog/collector-sidecar/generated/filebeat.yml}

License

MIT / BSD

Author Information

This role was created in 2018 by Matthias Klettner.

ansible-role-graylog-collector's People

Contributors

andrewpix avatar mklettner avatar ranger-x avatar

Watchers

 avatar

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.