Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python log analysis tool/library

I'm looking for a tool/library written in python similar with logstash (ruby + java).

My goals are:

  • parse all system logs from syslog
  • parse application specific logs (apache, django, mysql etc.)
  • store results in something like elasticsearch
  • graph results based on different criteria

thanks!

ps: regexes are a way to go but I feel will be quite of work to start from scratch

like image 653
silviud Avatar asked Jul 05 '26 20:07

silviud


1 Answers

Shameless plug (I am the author of the library) - logtools does everything you mentioned and much, much more. I try to keep the documentation up to date and show alot of examples, similar to use cases you describe, in the README file. hopefully it would fit what you have in mind, give it a try, and any feedback is welcome - I try to add/fix any issues brought up by users. Check it out at http://github.com/adamhadani/logtools or download latest stable release at https://pypi.python.org/pypi/logtools

like image 192
giorgio Avatar answered Jul 07 '26 08:07

giorgio



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!