mirror of
https://codeberg.org/icewind/log-archiver.git
synced 2026-06-03 09:34:09 +02:00
basic readme
This commit is contained in:
parent
ba6891a99e
commit
e756700d1e
1 changed files with 22 additions and 0 deletions
22
README.md
Normal file
22
README.md
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
# log-archiver
|
||||||
|
|
||||||
|
[logs.tf](https://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`](./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_name`
|
||||||
|
- `LOG_TARGET`: Folder to save the raw logs into
|
||||||
|
- `API_HOST`: (Optional) overwrite the server to archive the logs from, defaults
|
||||||
|
to `https://logs.tf`
|
||||||
Loading…
Add table
Add a link
Reference in a new issue