logstash-test-runner icon indicating copy to clipboard operation
logstash-test-runner copied to clipboard

Support for input from sources other than files

Open maxwellhaydn opened this issue 5 years ago • 1 comments

It would be great if this project supported input from sources other than files. For example, we use the JDBC and JDBC static plugins to load data from relational databases into Elasticsearch. We want to write tests that check all aspects of our pipeline config, including:

  • Did the configured SQL query/queries select the expected data from the raw data set?
  • Did it connect to the right database with the right credentials and connection options?
  • Did it filter and transform the raw data correctly before loading it into Elasticsearch?

maxwellhaydn avatar Mar 25 '19 16:03 maxwellhaydn

That sounds awesome. This can probably be handled with stdin. We already pass the input logs via stdin here https://github.com/agolo/logstash-test-runner/blob/master/test.sh#L73

PRs are welcome to allow configurable input streams

agolomoodysaada avatar Mar 26 '19 13:03 agolomoodysaada