From cdd64b6309f6b847cf0dd438f3de1f9188d001c9 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sat, 29 Mar 2025 09:28:48 -0500 Subject: [PATCH] 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`. --- group_vars/unifi/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/group_vars/unifi/main.yml b/group_vars/unifi/main.yml index 9f13b9a..1e52022 100644 --- a/group_vars/unifi/main.yml +++ b/group_vars/unifi/main.yml @@ -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