Simple RestAPI service/unit for ecosystem where all logs from other services are stored and accessible in one place.
git clone https://github.com/denver-code/logunit
cd logunit
poetry shell
Note: This project uses Poetry for dependency management.
poetry install
Rename sample.env
to .env
and fill it with your data.
python3 genrsa.py
This will generate private.pem
and public.pem
files in the root directory of the project. Store private.pem
in a safe as it is used for decryption.
If you will lose private key, you will lose all your logs without ability to restore them.
poetry run uvicorn app.main:app
docker-compose up --build -d
Api documentation is available at /docs
endpoint.
But here is some examples.