Skip to content

Simple script parse nginx access_log. Export to JSONL file.

Notifications You must be signed in to change notification settings

nhymxu/nginx-log-parser

Repository files navigation

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

python nginx-log-parser.py access.log.gz

2. Multi log file

Put all gz log file to logs folder

./run.sh

Output will put on access_log.json on root dir