Sign inSign up

vredens/logspit

By vredens

•Updated about 10 years ago

Simulate application logging to test logging infrastructure such as ELK.

Image
1

901

vredens/logspit repository overview

⁠Info

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 usleep

⁠Run it

⁠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

Tag summary

Content type

Image

Digest

Size

243.4 MB

Last updated

about 10 years ago

docker pull vredens/logspit