Put parsed Nginx access.log to Elasticsearch
Nginx access.log have to be formatted with this format:
log_format main_ext
'$remote_addr $http_host $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" '
'rt=$request_time ua="$upstream_addr" '
'us="$upstream_status" ut="$upstream_response_time" '
'ul="$upstream_response_length" '
'cs=$upstream_cache_status';
Install
Install with pip:
pip install nginx2es
Features
Stable log record ID (hostname + file inode number + timestamp + file position). It makes possible to import log file more than once (adding some additional processing to nginx2es, or dropping a daily index containing only a half of records, etc) without creating a duplicate records.
Parse query params and split request uri path components to separate fields for complex log filtering / aggregations.
Optional use of the GeoIP database (requires the geoip module and the GeoIPCity.dat database file) - adds city and region_name fields.
Correctly parse log records containing information about multiple upstream responses.
The tail -F-like mode implemented with inotify.
Metadata
Release files for nginx2es 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nginx2es-0.3.0.tar.gz | 7.9 kB | Without provenance | Details for nginx2es-0.3.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nginx2es-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for nginx2es-0.3.0-py3-none-any.whl |
| nginx2es-0.3.0-py2-none-any.whl | Python 2 | none | any | Details for nginx2es-0.3.0-py2-none-any.whl |
Total release size: 28.6 kB
Release files / nginx2es-0.3.0.tar.gz
| Download URL | nginx2es-0.3.0.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61d96423da9534110c60e7865cd3893822ca42135b05e16244810b8395c8598c
|
|
BLAKE2b-256 checksum How to use checksums |
c112e9b0a34840d6137e00c3564408b625cd48a6178b466328c7db8499b6379f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / nginx2es-0.3.0-py3-none-any.whl
| Download URL | nginx2es-0.3.0-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42bc74fa197f037d665ff89c0857ac0164f35cfb2226c764098a05c43c2eb192
|
|
BLAKE2b-256 checksum How to use checksums |
6999beb52387993f3397ebb8404691cdf4cba7baf189695a11d73fa40fa81aa5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / nginx2es-0.3.0-py2-none-any.whl
| Download URL | nginx2es-0.3.0-py2-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
1ec7c1aed97350394a5c09b8dfc9177df4a3779e9652dca8094b418fdf9bc357
|
|
BLAKE2b-256 checksum How to use checksums |
b40066fdd7c7182bbf413e701c709a61234673c0960e62ba918ec51f11d0b201
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for nginx2es 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.