Update api.md with api/logs

Added missing log retrieval API
This commit is contained in:
Al Bastien 2025-01-08 16:57:22 -05:00 committed by GitHub
parent b5e5127d48
commit 967e33e6ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -549,6 +549,26 @@ Get the audio activity for camera(s) during a specified time period.
| `after` | int | Epoch time | | `after` | int | Epoch time |
| `cameras` | str | , separated list of cameras | | `cameras` | str | , separated list of cameras |
## Logs
### `GET /api/logs/[frigate|nginx|go2rtc]`
Retrieves the logs from the server. Accepts the following path strings parameter:
| param | Description |
| ---------- | -------------------------------------------------------------- |
| `frigate` | Frigate log lines returned |
| `nginx` | Web server log lines returned |
| `go2rtc` | Stream monitoring log lines returned |
Accepts the following query string parameter:
| param | Type | Description |
| ---------- | ---- | -------------------------------------------------------------- |
| `start` | int | Starting log line to return |
example: http://localhost:5000/api/logs/nginx?start=500
## Timeline ## Timeline
### `GET /api/timeline` ### `GET /api/timeline`