added start script

This commit is contained in:
larssand
2026-06-18 22:00:56 +02:00
parent 0e42e42c53
commit 9fbcd5a5c4
5 changed files with 149 additions and 3 deletions

View File

@@ -12,6 +12,15 @@ source .venv/bin/activate
pip install -e .
```
Or use the helper script, which creates/uses `.venv` automatically and runs `pip install -e .`:
```bash
./start.sh
./start.sh status
./start.sh analyze
./start.sh stop
```
Analyze local logs:
```bash
@@ -24,6 +33,18 @@ Listen for FortiGate syslog locally:
fgai listen-syslog --port 5514 --output logs/fg_syslog.jsonl
```
Run the listener quietly in the background:
```bash
./start.sh
```
Stop the background listener:
```bash
./start.sh stop
```
UDP port `514` normally needs root privileges on Linux:
```bash