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
parent
923c8a3ebc
commit
cdd64b6309
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue