An open API service indexing awesome lists of open source software.

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.

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