unifi: Fix Promtail log scrape paths

The linuxserver.io Unifi container stored Unifi server and device logs
under `/var/lib/unifi/logs`, while the new container stores them under
`/var/log/unifi`.
unifi-restore
Dustin 2025-03-29 09:28:48 -05:00
parent 923c8a3ebc
commit cdd64b6309
1 changed files with 4 additions and 4 deletions

View File

@ -19,10 +19,10 @@ promtail_scrape_configs:
- job_name: unifi-server
static_configs:
- labels:
__path__: /var/lib/unifi/logs/server.log
__path__: /var/log/unifi/server.log
job: unifi
- labels:
__path__: /var/lib/unifi/logs/migration.log
__path__: /var/log/unifi/migration.log
job: unifi
pipeline_stages:
- regex:
@ -35,7 +35,7 @@ promtail_scrape_configs:
- job_name: unifi-mongod
static_configs:
- labels:
__path__: /var/lib/unifi/logs/mongod.log
__path__: /var/log/unifi/mongod.log
job: unifi
pipeline_stages:
- regex:
@ -46,7 +46,7 @@ promtail_scrape_configs:
- job_name: unifi-remote
static_configs:
- labels:
__path__: /var/lib/unifi/logs/remote/*.log
__path__: /var/log/unifi/remote/*.log
job: unifi-remote
pipeline_stages:
# Extract the device IP address from the log file name