Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to spezify the hostname in configuration #11

Open
DST73 opened this issue Oct 28, 2024 · 4 comments
Open

Option to spezify the hostname in configuration #11

DST73 opened this issue Oct 28, 2024 · 4 comments

Comments

@DST73
Copy link

DST73 commented Oct 28, 2024

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
Copy link
Owner

mib1185 commented Oct 31, 2024

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
Copy link
Author

DST73 commented Oct 31, 2024

There it has the right name

grafik

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

@mib1185
Copy link
Owner

mib1185 commented Oct 31, 2024

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

@DST73
Copy link
Author

DST73 commented Nov 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants