Skip to content

move-sysadmin/filebeat-formula

 
 

Repository files navigation

filebeat formula

Install and configure filebeat.

See the full Salt Formulas installation and usage instructions.

Available states

  • filebeat.install
  • filebeat.config
  • filebeat.service

filebeat.install

Installs the filebeat package.

filebeat.config

configures filebeat, and installs rc levels for startup on reboot.

Usage

See pillar.example for example configuration.

Please be aware not all config items will work with all versions of Filebeat:

  • close_older >= 1.1.0
  • multiline, include_lines, exclude_lines >= 1.2.0

Overriding defaults

This formula puts some system specific configuration in map.jinja. the may be overridden in your pillar data like so:

filebeat:
  lookup:
    config_source: salt://mycustom/filebeat/filebeat.jinja

filebeat.service

Starts the filebeat service.

Due to filebeat requiring tty to start, this state uses a SSH loopback to achieve this. (use_vt / sudoers !requiretty did not resolve this on 2015.8.x...)

Testing

Testing is done with Test Kitchen for machine setup and testinfra for integration tests.

Requirements

  • Python

  • Ruby

  • Docker

    pip install -r requirements.txt gem install bundler bundle install bundle exec kitchen test

About

a formula to install and configure filebeat, a new alternative for logstash forwarder.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 48.5%
  • SaltStack 37.7%
  • Ruby 11.7%
  • Python 2.1%