ratibor78 / geostat

GeoStat, Python script for parsing Nginx and Apache logs files and getting GEO data from incoming IP's.
MIT License
69 stars 20 forks source link

nginx log pattern #7

Closed dontsovcmc closed 3 years ago

dontsovcmc commented 4 years ago

Please, add nginx config example. I need nginx log format. Thansk!

b4b857f6ee commented 4 years ago

Same issue for me :)

vanthoi commented 4 years ago

Same issue for me :)

You config : https://medium.com/faun/total-nginx-monitoring-with-application-performance-and-a-bit-more-using-8fc6d731051b

ratibor78 commented 3 years ago

Thanks, @vanthoi for the response, but in that article, I have shown how to enable some extra logging parameters in Nginx with GEO data and so on for the telegraf.

In fact, you no need any specific Nginx log format for this script, it takes the IPs from the log file and then parses them through the MaxMind database file for searching the real GEO IP. It must work with any standard Nginx log.

There will be an updated version soon, with minor bug's fixes, and I'll update the documentation also.

ratibor78 commented 3 years ago

I'll close this issue, for now, we can return to it later if you'll have the same problem with the new version also.