unpoller_unpoller/pkg/inputunifi
Sven Grossmann a3dc4cd0b2 feat: add save_syslog option for v2 system-log API
Add new save_syslog config option to collect events from the v2 UniFi
system-log API (/v2/api/site/{site}/system-log/all).

Changes:
- Add SaveSyslog field to Controller struct
- Add collectSyslog() function using v2 API
- Keep collectEvents() using v1 API for backwards compatibility
- Add RedactIPPII() helper for PII redaction
- Update lokiunifi to log raw JSON (parseable with Loki | json)
- Reduce indexed labels to low-cardinality fields only
- Add SystemLogEntry handler in lokiunifi report

Config: save_syslog (v2 API) vs save_events (v1 API)
Env: UP_UNIFI_DEFAULT_SAVE_SYSLOG=true
2025-12-22 17:23:53 +01:00
..
LICENSE move to the pkg dir 2022-12-02 20:46:16 -05:00
README.md move to the pkg dir 2022-12-02 20:46:16 -05:00
collectevents.go feat: add save_syslog option for v2 system-log API 2025-12-22 17:23:53 +01:00
collector.go feat: add save_syslog option for v2 system-log API 2025-12-22 17:23:53 +01:00
input.go feat: add save_syslog option for v2 system-log API 2025-12-22 17:23:53 +01:00
interface.go feat: add save_syslog option for v2 system-log API 2025-12-22 17:23:53 +01:00
updateweb.go add support for api-key auth 2025-01-10 15:19:30 -06:00

README.md

inputunifi

UnPoller Input Plugin