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

Messages are forwarded with hostname instead of fqdn #195

Open
cristifalcas opened this issue Jan 1, 2015 · 2 comments
Open

Messages are forwarded with hostname instead of fqdn #195

cristifalcas opened this issue Jan 1, 2015 · 2 comments
Labels

Comments

@cristifalcas
Copy link

It seems that the latest rsyslog version doesn't respect preserveFQDN ="on"

Initial messages from rsyslog are sent with fqdn, but after that all messages are sent with hostname.

Setting localHostname doesn't help at all: no change in the hostname sent to remote server.

@cristifalcas
Copy link
Author

I just want to update that it looks like all messages generated from rsyslog are forwarded with fqdn (pstats also), but everything else goes with hostname.

And it works if I change the template from:
string="/srv/log/%hostname%/%$YEAR%/%$MONTH%/%$DAY%/
to
string="/srv/log/%FROMHOST%/%$YEAR%/%$MONTH%/%$DAY%/

@cristifalcas
Copy link
Author

Ome more update: it's because %HOSTNAME% now returns the hostname and not fqdn.

If used on local files or print it in the logs, the result is the same.

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

No branches or pull requests

2 participants