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
.
- Install nodejs
- Run
npm install
- Install Docker
- 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
.