Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/richardarpanet/nginx-access-log-parser
Python script parses an NGINX access logs.
https://github.com/richardarpanet/nginx-access-log-parser
logging logs nginx nginx-logs parser python python2 python3
Last synced: 6 days ago
JSON representation
Python script parses an NGINX access logs.
- Host: GitHub
- URL: https://github.com/richardarpanet/nginx-access-log-parser
- Owner: richardARPANET
- Created: 2018-04-03T21:07:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-28T22:08:21.000Z (over 6 years ago)
- Last Synced: 2025-01-03T22:34:15.080Z (8 days ago)
- Topics: logging, logs, nginx, nginx-logs, parser, python, python2, python3
- Language: Python
- Homepage: https://code.richard.do/richardARPANET/nginx-access-log-parser
- Size: 34.2 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**NOTICE**: If you're reading this on GitHub.com please be aware this is a mirror of the primary remote located at https://code.richard.do/explore/projects.
Please direct issues and pull requests there.NGINX access log parser
================================This python script parses an NGINX access log and counts the total occurrences of a chosen item within the logs and outputs a dictionary.
In the example.log it processes the "requested file/page" segment, this can be changed to any other segment of the log.
The output is useful when serving media assets as you can serve assets from source and calculate view counts periodically from the NGINX logs using this parser.
Note: if you log files are not in standard format the find() function will need editing accordingly.