Skip to main content

Combines all host specific json outputs from log4j-detector into one single csv file.

Project description

log4j-detector-to-csv

This project contains a script to convert and combine all host specific outputs of the log4j-detector logs in json format to one single CSV file.

Getting started

With Python and pip installed

Install log4j-detector-to-csv with pip:

pip install log4j-detector-to-csv

Run log4j-detector-to-csv:

log4j-detector-to-csv -h

Output:

usage: log4j-detector-to-csv [-h] -i INPUT -o OUTPUT

Convert log4j-detector json file into one csv

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        Input directory
  -o OUTPUT, --output OUTPUT
                        Output directory

From Sourcecode

Prerequisites:

  • python
  • poetry

Clone Repository:

git clone https://github.com/richardbischof/log4j-detector-to-csv.git

Change in directory:

cd log4j-detector-to-csv/log4j_detector_to_csv

Run Script:

python main.py -i $INPUT_DIRECTORY -o $OUTPUT_FILE

Example:

python main.py -i logs -o report.csv

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

log4j-detector-to-csv-0.1.7.tar.gz (14.7 kB view hashes)

Uploaded Source

Built Distribution

log4j_detector_to_csv-0.1.7-py3-none-any.whl (27.4 kB view hashes)

Uploaded Python 3

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