Public Repository

Last pushed: 2 years ago
Short Description
Simulate application logging to test logging infrastructure such as ELK.
Full Description


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:

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 usleep

Run it

Outputing to a file to load onto Elasticsearch.

docker run \
    --rm \
    --name logspit \
    -v /your/log/sample/folder:/app/data \
    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 \
Docker Pull Command