Home Assistant Add-on: Promtail

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)"

Any suggestions?

Hi gex85!
I’ve the same problem. Did you figure it out?

This addon doesn’t seem to be maintained anymore.
There is a fork that fixes the issue

Github Comment: Error reading journal position · Issue #221 · mdegat01/addon-promtail · GitHub

Edit: reason why no update on this repo:
Permission error creating chunks directory · Issue #167 · mdegat01/addon-loki · GitHub

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…

Hi,
I am using this addon

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?

Thanks!