Python logs and events Generator
pylog generates events/logs using a specified formatter and sends them using the specified transport. It can also generate fake data using fake-factory.
pip install pylog # or, for dev: pip install https://github.com/nir0s/pylog/archive/develop.tar.gz
# this will assume config.py in the cwd and assume default for each option pylog gen # or.. you can specify whatever you want in the cli.. pylog gen -c /my/config/file/path.py -t AMQP -f Json -g 0.001 -m 100000000 pylog gen -t UDP -f Custom -g 0.00001 -m 102831028 # you can also send in batches pylog gen -t UDP -f Custom -g 0.01 -m 102831028 -b 1000 # and even use some common formatters like apache's.. pylog gen -t Stream -f ApacheError # print fake data types that you can use in the config... pylog list fake # print a list of available transports pylog list transports # print a list of available formatters pylog list formatters
A vagrantfile is provided: It will load a machine and install pylog on it in a virtualenv so that you can experiment with it. In the future, another machine will be provided with rabbitmq, logstash, elasticsearch and kibana so that you can experiment with different types of formats and transports.