Skip to main content

Installation:

pip install nginxparser

Using log format:

log_format myformat '$remote_addr - [$time_local] "$host" "$request" '
                    '$status ($bytes_sent) "$http_referer" '
                    '"$uri $args" [$request_time] [$upstream_response_time]';

usage:

nginxparser [-h] [--uri] [--time] [--clients] [--grep GREP] [--dump DUMP]
            [--no_report] [--debug]
            log_file

optional arguments:

-h, --help            show this help message and exit
--uri, -u             Get uri-based report
--time, -t            Get time-based report
--clients, -c         Get client-based report
--grep GREP, -g GREP  Grep lines, where 'upstream_time' more than the
                      specified
--dump DUMP, -d DUMP  Export parsed data to the json.file
--no_report, -N       Don't print the report
--debug, -D           Print not parsed lines

examples:

nginxparser --uri /path/to/access_nginx.log
nginxparser --time /path/to/access_nginx.log
nginxparser --clients /path/to/access_nginx.log
nginxparser --grep 10 /path/to/access_nginx.log
nginxparser -utcN -d out.json /path/to/access_nginx.log

Metadata

Release files for nginxparser 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nginxparser 1.0.1
File Size Uploaded
nginxparser-1.0.1.tar.gz 4.8 kB Details

Release files / nginxparser-1.0.1.tar.gz

Download URL nginxparser-1.0.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
88daa7b520487e7217053fde191d375b57f4119eb3fd7b6bb50748c01ddec3b0
BLAKE2b-256 checksum
How to use checksums
c3050e46dde3bd7c5300e2b1b54b138bbc95a22b6bb1fa5bcd5a86354a717cbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

1 release file

0.9.1

1 release file

0.9

1 release file

0.8

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page