Hi there,
I have just installed the Promtail Add-On, hoping to be able to forward Home Assistant logs to my Loki server (running in a central location outside of Home Assistant, not through the Add-On). I set the server address in the config, however no logs seem to be forwarded. Here’s the log output from the Add-On:
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/00-banner.sh
-----------------------------------------------------------
Add-on: Promtail
Promtail for Home Assistant
-----------------------------------------------------------
Add-on version: 2.2.0
You are running the latest version of this add-on.
System: Home Assistant OS 12.0 (amd64 / qemux86-64)
Home Assistant Core: 2024.3.0
Home Assistant Supervisor: 2024.02.1
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
cont-init: info: /etc/cont-init.d/00-banner.sh exited 0
cont-init: info: running /etc/cont-init.d/01-log-level.sh
Log level is set to INFO
cont-init: info: /etc/cont-init.d/01-log-level.sh exited 0
cont-init: info: running /etc/cont-init.d/02-set-timezone.sh
[18:08:39] INFO: Configuring timezone
cont-init: info: /etc/cont-init.d/02-set-timezone.sh exited 0
cont-init: info: running /etc/cont-init.d/promtail_setup.sh
[18:08:39] INFO: Setting base config for promtail...
cont-init: info: /etc/cont-init.d/promtail_setup.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun promtail (no readiness notification)
s6-rc: info: service legacy-services successfully started
[18:08:41] INFO: Starting Promtail...
[18:08:41] INFO: Promtail log level set to info
[18:08:42] INFO: Handing over control to Promtail...
level=info ts=2024-03-10T17:08:42.659777348Z caller=server.go:288 http=[::]:9080 grpc=[::]:45215 msg="server listening on addresses"
level=info ts=2024-03-10T17:08:42.661017471Z caller=main.go:121 msg="Starting Promtail" version="(version=2.6.1, branch=HEAD, revision=6bd05c9)"
where does this go, and how is it integrated into the default config? Is this under additional_pipeline_stages or additional_scape_configs under /share/promtail ? Do we check “skip_default_scrape_config” when using this ? Sorry if these questions are rudimentary and self evident to a more seasoned user… Personally I am a novice when it comes to Loki…
witch works perfectly out of the box with current HA version.
My problem is, that I have ttwo HA server logging to the same loki docker instance.
My problem is, that I now can’t distinguish from witch HA the messages are coming from.
Is there a way to add a prefix or something that I can use to filter?
for me it is not working. the loki address is correct, but I cannot find any logs in Grafana. Any idea how to troubleshoot?
log from the ha-addon:
-----------------------------------------------------------
Add-on: Promtail
Promtail for Home Assistant
-----------------------------------------------------------
Add-on version: 2.2.0
You are running the latest version of this add-on.
System: Home Assistant OS 14.2 (amd64 / qemux86-64)
Home Assistant Core: 2025.1.4
Home Assistant Supervisor: 2024.12.3
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
cont-init: info: /etc/cont-init.d/00-banner.sh exited 0
cont-init: info: running /etc/cont-init.d/01-log-level.sh
Log level is set to INFO
cont-init: info: /etc/cont-init.d/01-log-level.sh exited 0
cont-init: info: running /etc/cont-init.d/02-set-timezone.sh
[13:42:09] INFO: Configuring timezone
cont-init: info: /etc/cont-init.d/02-set-timezone.sh exited 0
cont-init: info: running /etc/cont-init.d/promtail_setup.sh
[13:42:09] INFO: Setting base config for promtail...
cont-init: info: /etc/cont-init.d/promtail_setup.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun promtail (no readiness notification)
s6-rc: info: service legacy-services successfully started
[13:42:09] INFO: Starting Promtail...
[13:42:09] INFO: Promtail log level set to info
[13:42:09] INFO: Handing over control to Promtail...
level=info ts=2025-01-28T12:42:09.944970473Z caller=server.go:288 http=[::]:9080 grpc=[::]:33245 msg="server listening on addresses"
level=info ts=2025-01-28T12:42:09.945260446Z caller=main.go:121 msg="Starting Promtail" version="(version=2.6.1, branch=HEAD, revision=6bd05c9)"
Same for me, I wonder you are having the same issue as me.
I am forwarding logs to a external Loki server with HTTPS (using a Let’s Encrypt trusted cert). My log output looks like yours, and nothing in Grafana showing up.
I exec into the container and found it cant connect to my loki server.
docker ps
find the container name which for me is addon_39bd2704_promtail