Skip to main content

Cli tool to parse stream of http access events into json formatted events.

Project description

http-log-parser

Package supports "nginx-combined" format for now.

usage: http-log-parser [-h] [--no-query] [--skip-errors] [files [files ...]]

positional arguments:
  files

optional arguments:
  -h, --help     show this help message and exit
  --no-query
  --skip-errors

Example

$ http-log-parser /var/log/http/access.log | jq .  # jq used for pretty printing 
{
  "ip": "1.2.3.4",
  "ts": 1592427669,
  "method": "GET",
  "path": "/path/",
  "status": 204,
  "size": 0,
  "referer": "https://example.com/",
  "user_agent": "Chrome/1 Firefox/2 IE/3 Edge/4",
  "query": {
    "greetings": "hello world"
  }
}
...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

http-log-parser-0.2.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

http_log_parser-0.2.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file http-log-parser-0.2.0.tar.gz.

File metadata

  • Download URL: http-log-parser-0.2.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for http-log-parser-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6c12bf646357c0b4ead56f148c3cc79b44ed71e51f3d083af1cafa39946f86da
MD5 094f37be0e00ad49eef35b3153c1fcc7
BLAKE2b-256 e9062af40be96a99e8505b32d6523864895742b41b3a27974dbb4a65626fc8a0

See more details on using hashes here.

File details

Details for the file http_log_parser-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: http_log_parser-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for http_log_parser-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3e581322558305ca14ea305ac1410fbbad7a2f608d24088d654332ad5ef391f
MD5 f82332b6ff0e3d9323ffcce2584ebe59
BLAKE2b-256 0a2efe537665a65fed2e450836108e03a9ba2b244278bd6b772a173a6e852530

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page