Logspit is a tool for simulating application logging. Its main goal was to quickly setup a simulation of a production environment logging in order to test logging infrastructure.
Check the repository: https://bitbucket.org/vredens/docker-logspit/overview
Main features are
- Poisson distribution of log entries, defined by an average log entries per second
Next on the list
- Improve log entry generation performance
- Multiple samples
- Reduce busy wait in favor of
Outputing to a file to load onto Elasticsearch.
docker run \ --rm \ --name logspit \ -v /your/log/sample/folder:/app/data \ -e LOGSPIT_AVG_PER_SECOND=100 \ vredens/logspit > log-samples.log
Using docker to output directly to graylog or logstash endpoints
docker run \ --rm \ --name logspit \ --log-driver=gelf \ --log-opt gelf-address=udp://localhost:12201 \ vredens/logspit