mib1185 / ha-addon-syslog

Syslog Home Assistant AddOn - to send your HAOS logs to a remote syslog server
Apache License 2.0
9 stars 0 forks source link

Option to spezify the hostname in configuration #11

Open DST73 opened 3 weeks ago

DST73 commented 3 weeks ago

Please add some configuration option to specify the host-name that is used in the syslog message I am using a docker instance of syslog-ng witch sends its data to a Loki-Source witch I than can analyse using Grafana The Log-Messages get send but the host-name is something like '838d200e52ab4d35bb54bbd0dd02cc4d'

grafik

mib1185 commented 3 weeks ago

The hostname field is taken from the configured hostname of your HAOS instance under Settings -> System -> Network So you should be able to configure it through HA directly

DST73 commented 3 weeks ago

There it has the right name

grafik

But I can live with in... as long if that ID doesn't change :)

mib1185 commented 3 weeks ago

maybe this ID doesn't come from HA, but from the syslog-ng container?

DST73 commented 2 weeks ago

I have changed my setup to

plugin -> rsylog -> promtail -> loki

and now the right hostname gets send to loki.

rsyslong and promtail have already been used on this machine

If I have time I will investigate why syslog-ng sends the wrong hostname. With other hosts using syslog-ng I get the right hostname

grafik