add rotation

This commit is contained in:
larssand
2026-06-21 15:00:13 +02:00
parent 4594d080c3
commit 395a86e157
5 changed files with 101 additions and 3 deletions

View File

@@ -47,6 +47,13 @@ For UDP `514`, the script starts only the listener command with `sudo`:
FGAI_SYSLOG_PORT=514 ./start.sh
```
The syslog receiver rotates the active JSONL input at 25 MB by default. Rotated
files are gzip-compressed and 14 archives are retained. Override this when needed:
```bash
FGAI_LOG_ROTATE_BYTES=$((100 * 1024 * 1024)) FGAI_LOG_ROTATE_COUNT=30 ./start.sh restart
```
Analyze local logs:
```bash