Zerolog is a very simple library designed to help you capture logs from TCP, filter them, dispatch them and process them for your needs. It gives you all needed elements to start quickly and let you focus to processing logs.
Here is an explanatory scheme of the workflow
All you need to do here is creating your own worker to fit your needs, you can for example store logs in database, elasticsearch, etc. or parse messages and add some logic to them. Bonus: zerolog gives you a CLI tool to start all parts easily.
You don't want to code your worker using python ? Well good news: zeromq gives you bindings for many programming languages so you can create your own worker implementation using your favorite programming language
Note that you can also use zerolog with logstash pretty easily. Since logstash got a zeromq output, you can replace forwarder or receiver by logstash
More informations are avaibles in the documentation.
Using pip
pip install zerolog
Via source
pip install -r requirements.txt
python setup.py install
Tests are written with pytest.
You can run test suite using
python setup.py test
Or manualy using
py.test -v tests/