added start script
This commit is contained in:
21
README.md
21
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user