/logstash-test-runner

Logstash configuration testing framework

Primary LanguageShellMIT LicenseMIT

logstash-test-runner

image

Example tests are in the __tests__ directory. To add a tests, simply add a new directory with the given input input.log, the ETL configuration logstash.conf, and the expected output output.log.

Prerequisites

  • Install nodejs
  • Run npm install
  • Install Docker

Setup

  • Clone repository
  • Setup your test directory as follows
tests
  crawlers
    input.log
    logstash.conf
    output.log
  mongo
    input.log
    logstash.conf
    output.log
  # ...
  • Run your tests
./test.sh
# Or you can specify your dir.
./test.sh testing_dir

NOTE: Multiline logs in logstash need translate in reverse to filebeat in terms of multiline.match from previous => after and next => before.