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
|
- job_name: unifi-server
|
||||||
static_configs:
|
static_configs:
|
||||||
- labels:
|
- labels:
|
||||||
__path__: /var/lib/unifi/logs/server.log
|
__path__: /var/log/unifi/server.log
|
||||||
job: unifi
|
job: unifi
|
||||||
- labels:
|
- labels:
|
||||||
__path__: /var/lib/unifi/logs/migration.log
|
__path__: /var/log/unifi/migration.log
|
||||||
job: unifi
|
job: unifi
|
||||||
pipeline_stages:
|
pipeline_stages:
|
||||||
- regex:
|
- regex:
|
||||||
|
@ -35,7 +35,7 @@ promtail_scrape_configs:
|
||||||
- job_name: unifi-mongod
|
- job_name: unifi-mongod
|
||||||
static_configs:
|
static_configs:
|
||||||
- labels:
|
- labels:
|
||||||
__path__: /var/lib/unifi/logs/mongod.log
|
__path__: /var/log/unifi/mongod.log
|
||||||
job: unifi
|
job: unifi
|
||||||
pipeline_stages:
|
pipeline_stages:
|
||||||
- regex:
|
- regex:
|
||||||
|
@ -46,7 +46,7 @@ promtail_scrape_configs:
|
||||||
- job_name: unifi-remote
|
- job_name: unifi-remote
|
||||||
static_configs:
|
static_configs:
|
||||||
- labels:
|
- labels:
|
||||||
__path__: /var/lib/unifi/logs/remote/*.log
|
__path__: /var/log/unifi/remote/*.log
|
||||||
job: unifi-remote
|
job: unifi-remote
|
||||||
pipeline_stages:
|
pipeline_stages:
|
||||||
# Extract the device IP address from the log file name
|
# Extract the device IP address from the log file name
|
||||||
|
|
Loading…
Reference in New Issue