vorou / ansible-filebeat

An Ansible role for Elastic's Filebeat log shipper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible Filebeat role

Ansible Galaxy

Installs Elastic's Filebeat for forwarding logs.

Role Variables

  • filebeat_config - YAML representation of your filebeat config. This is templated directly into the configuration file as YAML. See the example configuration for an exhaustive list of configuration options. Defaults to:
filebeat_config:
  filebeat:
    prospectors:
      - paths:
          - /var/log/messages
          - /var/log/*.log
        input_type: log
  output:
    file:
      path: /tmp/filebeat
      filename: filebeat
  logging:
    to_syslog: true
    level: error

Common Configurations

Connecting to Elasticsearch:

filebeat_config:
  filebeat:
    prospectors:
      - paths:
          - /var/log/messages
          - /var/log/*.log
        input_type: log
  output:
    elasticsearch:
      hosts:
        - "http://localhost:9200"
      username: "bob"
      password: "12345"
  logging:
    to_syslog: true
    level: error

License

BSD

Author Information

David Wittman

About

An Ansible role for Elastic's Filebeat log shipper


Languages

Language:Python 93.7%Language:Ruby 4.8%Language:Shell 1.5%