Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

bearstech/poteau

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poteau

Send log to Kibana.

"Poteau" /pɔ.to/ means "pole" in french.

Elastic Search is a secret weapon, and Kibana its favorite querying UI. Kibana is still rough but promising, and easy to install. Logstash is a tool for the real world, but I just want to test Kibana for forensic investigation. Poteau is a post mortem analysis tool. Something nasty happens? seek it, and if it cames back, install Logstash and watch it.

Install

Poteau is a simple and hackable Python tool.

pip install -r requirements.txt
wget https://github.com/tobie/ua-parser/raw/master/regexes.yaml
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz

Test

You need an Elasticsearch and a Kibana, somewhere.

Web

zcat toto.log.gz | poteau-web http://localhost:9200/

Mail

python -m poteau.mail http://localhost:9200/ /path/to/some/mbox

Mysql slow log

cat mysql-slow.log | python -m poteau.mysql http://localhost:9200/
zcat error.log.1.gz | python -m poteau.phptop http://localhost:9200/

Licence

3 terms BSD licence © Mathieu Lecarme.

Releases

No releases published

Packages

 
 
 

Languages