Skip to content

richardbischof/log4j-detector-to-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Script to combine all host specific json outputs from log4j-detector into one single csv file. Requires only standard python installation, no further dependencies.

Topics

Resources

License

Stars

Watchers

Forks

Languages