Skip to main content

Translate a CiviProxy logfile into JSON format.

Project description

CiviProxy_Logs2Json

Translate a CiviProxy logfile into JSON format.

Installation

python3 -m pip install civiproxy_logs2json --user

Example Usage

Pass logfile as option:

cpl2j -f /var/www/proxy_logs/proxy.log

Pipe logfile into program:

cat proxy.log | cpl2j 

Set JSON indentation to two spaces:

cat proxy.log | cpl2j -s 2 

Tip

Use VisiData to explore the data in a very comfortable way: /var/www/proxy_logs/proxy.log

cpl2j -f /var/www/proxy_logs/proxy.log | vd -f json

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

civiproxy_logs2json-1.0.8.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file civiproxy_logs2json-1.0.8.tar.gz.

File metadata

  • Download URL: civiproxy_logs2json-1.0.8.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for civiproxy_logs2json-1.0.8.tar.gz
Algorithm Hash digest
SHA256 acf86c50998299c6b7765ba36e745b03b141eba5c17235e8e988520adfe67cb4
MD5 eaab0add7c30ee6599681d82aca85627
BLAKE2b-256 836fd12ce23e90455f1f2cb2c11226be95625aa71c2316806de48ede12de82f3

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