log-normalizer/README.md
Robin Appelman 8d4c1eb44b
All checks were successful
CI / checks (push) Successful in 39s
basic readme
2025-05-30 23:34:30 +02:00

21 lines
768 B
Markdown

# log-normalizer
Perform some normalization on the parsed logs from [logs.tf](https://logs.tf/)
This works on the archived data as created by the
[log-archiver](https://codeberg.org/icewind/log-archiver).
## Requirements
- Postgresql database with the schema from [`schema.sql`](./schema.sql) applied.
- Postgresql database with the schema from
[log-archiver](https://codeberg.org/icewind/log-archiver) applied.
## Usage
Run the binary with the following environment variables
- `DATABASE_URL`: connection url for database that the normalized data will be
stored, e.g. `postgres://user:password@db_host/normalized_logs`
- `RAW_DATABASE_URL`: connection url for database that the raw log data is
stored in, e.g. `postgres://user:password@db_host/raw_logs`