mirror of
https://codeberg.org/icewind/log-archiver.git
synced 2026-06-03 09:34:09 +02:00
No description
- PLpgSQL 76.2%
- Rust 12.9%
- Nix 9.6%
- Dockerfile 1.3%
| .github/workflows | ||
| .sqlx | ||
| nix | ||
| src | ||
| .dockerignore | ||
| .envrc | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| Dockerfile | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
| schema.sql | ||
log-archiver
logs.tf archiver
What
Archives both the parsed json into a postgresql database and the raw log files into a folder.
Requirements
Postgresql server with the schema from schema.sql applied.
Usage
Run the binary with the following environment variables
DATABASE_URL: connection url for the configured postgresql database, e.g.postgres://user:password@db_host/db_nameLOG_TARGET: Folder to save the raw logs intoAPI_HOST: (Optional) overwrite the server to archive the logs from, defaults tohttps://logs.tf