Skip to main content

A package to parse log files

Project description

gen_log_parser

  • This library contains a pyCLass that can be instantiated to create log objects "log_parser()"
  • From the object various method can be used parse thru logs depending on the log format of the file
  • v0.0.2 can be used to parse thru the following log formats:
    • json formated logs
    • custom formated nginx log

NOTE:

  • The nginx parser works with the following nginx log format:
    • log_format new_default $remote_addr - $remote_user - $time_local - $request - $status - $body_bytes_sent - $http_referer - $http_user_agent - $http_x_forwarded_for;
  • If the log format on the nginx server is modified, then the method from the object will not work
  • The class must be inherited and the nginx method must be modified to statisfy the log format

Change Log

  • 0.0.3 (28 Mar 2023)

    • Fix typo's in README file
  • 0.0.2 (26 Mar 2023)

    • First Release

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

gen_log_parser-0.0.4.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

gen_log_parser-0.0.4-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file gen_log_parser-0.0.4.tar.gz.

File metadata

  • Download URL: gen_log_parser-0.0.4.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for gen_log_parser-0.0.4.tar.gz
Algorithm Hash digest
SHA256 d0847519405d49ecb8ad6f84080e9121d5d729a474a4fe2016f99695b3a9a642
MD5 14846288eb5ddb6848d77ae564cb40e5
BLAKE2b-256 afa2c6e069f9bc5bae6718d9e927b278aab0e613a9a5ba83768155a214feb111

See more details on using hashes here.

File details

Details for the file gen_log_parser-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for gen_log_parser-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0db205d59aa35f879f0a86a4dc6bbe770b66734d9efc29b02d0a09d802aa6522
MD5 f388e8fdfc6cfd808f388b5ba55861f7
BLAKE2b-256 e3282e4c88dec9021bb1ed34dc38c3ee7b5d8264745a5588626485c83c8e6aa5

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