https://github.com/nhymxu/nginx-log-parser
Simple script parse nginx access_log. Export to JSONL file.
https://github.com/nhymxu/nginx-log-parser
log nginx nginx-log-parser python
Last synced: about 1 month ago
JSON representation
Simple script parse nginx access_log. Export to JSONL file.
- Host: GitHub
- URL: https://github.com/nhymxu/nginx-log-parser
- Owner: nhymxu
- Created: 2020-10-09T01:48:14.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-10-31T16:33:06.000Z (over 3 years ago)
- Last Synced: 2025-01-28T16:44:53.125Z (over 1 year ago)
- Topics: log, nginx, nginx-log-parser, python
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nginx-log-parser
Simple script parse nginx access_log. Export to JSONL file.
## Requirements
- Python >= 3.6
- Install package
```
pip install -r requirements.txt
```
## Run
### 1. Single log file
```shell script
python nginx-log-parser.py access.log.gz
```
### 2. Multi log file
Put all gz log file to logs folder
```shell script
./run.sh
```
Output will put on `access_log.json` on root dir