civiproxy-logs2json (1.0.2)

Published 2022-10-28 07:53:40 +00:00 by marc in marc/CiviProxy_Logs2Json

Installation

pip install --index-url  civiproxy-logs2json

About this package

Translate a CiviProxy logfile into JSON format.

CiviProxy_Logs2Json

Translate a CiviProxy logfile into JSON format.

Installation

python3 -m pip install civiproxy_logs2json --user

Example Usage

Pass logfile as positional argument:

cpl2j /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 /var/www/proxy_logs/proxy.log | vd -f json

Requirements

Requires Python: >=3.5
Details
PyPI
2022-10-28 07:53:40 +00:00
47
Marc Michalsky
MIT
6.7 KiB
Assets (1)
Versions (8) View all
1.1.0 2024-07-09
1.0.8 2022-10-30
1.0.7 2022-10-30
1.0.6 2022-10-29
1.0.5 2022-10-29