Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 1.11 KB

README.md

File metadata and controls

57 lines (43 loc) · 1.11 KB

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