Parsing information from HAProxy, lighttpd, nginx, ATS log files Check Status code and send to sentry if status code is 502 or 503
- Function parse_log: parse log files and return a dict of error information
- Function detect_log_type: Get log type
- Function get_time_ats: return datetime type for time type of ats log
- Function get_time_haproxy: return datetime type for time type of haproxy log
Open log files to gather error information Initialize connection and push data to sentry server
Install dependencies package from file requirements.txt
pip install -r requirements.txt
python main.py [file-log]
-End document-