Skip to content

Ansible role to install and configure filebeat

License

Notifications You must be signed in to change notification settings

rolehippie/filebeat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

filebeat

Source Code General Workflow Readme Workflow Galaxy Workflow License: Apache-2.0 Ansible Role

Ansible role to install and configure filebeat.

Sponsor

Building and improving this Ansible role have been sponsored by my current and previous employers like Cloudpunks GmbH and Proact Deutschland GmbH.

Table of content


Requirements

  • Minimum Ansible version: 2.10

Default Variables

filebeat_console_enabled

Default value

filebeat_console_enabled: false

filebeat_default_inputs

List of default inputs, gets directly transformed to yaml

Default value

filebeat_default_inputs:
  - type: log
    enabled: true
    paths:
      - /var/log/kern.log
    fields:
      kern: true
  - type: log
    enabled: true
    paths:
      - /var/log/dpkg.log
    fields:
      dpkg: true

Example usage

filebeat_default_inputs:
  - type: log
    enabled: True
    paths:
      - /var/log/*.log

filebeat_default_modules

List of default modules, gets directly transformed to yaml

Default value

filebeat_default_modules:
  - module: system
    syslog:
      enabled: false
    auth:
      enabled: true

filebeat_default_processors

List of default processors, gets directly transformed to yaml

Default value

filebeat_default_processors:
  - add_host_metadata:
  - add_cloud_metadata:
  - add_docker_metadata:

filebeat_group_inputs

List of group inputs, merged with filebeat_default_inputs

Default value

filebeat_group_inputs: []

filebeat_group_modules

List of group modules, merged with filebeat_default_modules

Default value

filebeat_group_modules: []

filebeat_group_processors

List of group processors, merged with filebeat_default_processors

Default value

filebeat_group_processors: []

filebeat_host_inputs

List of host inputs, merged with filebeat_default_inputs

Default value

filebeat_host_inputs: []

filebeat_host_modules

List of host modules, merged with filebeat_default_modules

Default value

filebeat_host_modules: []

filebeat_host_processors

List of host processors, merged with filebeat_default_processors

Default value

filebeat_host_processors: []

filebeat_keyring

Path for the repository keyring

Default value

filebeat_keyring: /usr/share/keyrings/elastic-archive-keyring.gpg

filebeat_logging_level

Define logging level

Default value

filebeat_logging_level: warning

filebeat_logging_selectors

Define logging selectors, like beat, publish, service

Default value

filebeat_logging_selectors: []

filebeat_logging_to_files

Log to files, keep journal clean

Default value

filebeat_logging_to_files: true

filebeat_logstash_enabled

Default value

filebeat_logstash_enabled: true

filebeat_logstash_hosts

Default value

filebeat_logstash_hosts: []

filebeat_major_version

Major version to install, used for the APT repository

Default value

filebeat_major_version: 7

filebeat_name

Name of the shipper within the output

Default value

filebeat_name: '{{ ansible_hostname }}'

filebeat_service_enabled

Enable the console output

filebeat_tags

List of tags to assign for the shipper

Default value

filebeat_tags: []

Discovered Tags

filebeat

Dependencies

  • None

License

Apache-2.0

Author

Thomas Boerger