Poller optionally provides support for writing UniFi's Events, Anomalies, Alarms and IDS data to Loki. There are no dashboards for this data, but it's pretty simple. Just add a "Logs" panel. You can also use this data as an Annotation source.
Loki support was added in UnPoller v2.0.2.
Installation of Loki is documented here. If you're only using Poller, you don't need Promtail.
Just add the Loki URL to your poller config to enable this output plugin.
Use the UniFi input plugin settings to choose which logs to collect and save. Example:
The Loki output plugin has a few advanced settings that most folks won't use. These are their default values.
You can set a user and pass if your Loki instance requires auth. This currently only supports Basic Auth.
Please open an Issue if you need support for something
else. Alternatively you can pass the Tenant ID header directly by setting
If your Loki instance is using/behind an SSL proxy that has a valid SSL cert you may set
verify_ssl to true.
The recommended interval is
2m but anything from
15m should work fine.
The timeout is
10s, adjust it if you get timeout errors.
docker-compose example below (using Loki and Prometheus) was kindly provided by a community member.
The Loki Docker logging driver if you don't have it installed.
The above is a community-provided example.