/log4j-collector

collects REST Api calls for log4j reports

Primary LanguageGoApache License 2.0Apache-2.0

log4j-collector

Build Status Go Report Card GitHub top language GitHub go.mod Go version open issues license

This is a simple log4j collector that will collect logs from a HTTP JSON API REST call and writes the data inside a simple sqlite3 db file.
The frontend can be found at:

Scanning

For the scanning process and data collection, the following tool can be used:

Env Variables

  • DB_NAME - The name of the database file. Default: log4j-collector.db
  • DB_PATH - The path of the database file. Default is ./db.

Note: The database file will be created at the given DB_PATH or if not provided at the default path with the default name. Make sure you add .db to the end of the DB_NAME name.

Docker

The docker image is available at:

docker pull ghcr.io/bluestoneag/log4j-collector:latest

Port mapping:

docker run -d -p 8080:8080 ghcr.io/bluestoneag/log4j-collector:latest

API Documentation

The Api documentation is available at:

Authors

This project is maintained by bluestoneag and netrics.
Feel free to contribute!