1

Is it possible to have instead the hostname the fqdn inside debian log files?
Example:
Now its: Mar 2 18:00:12 www rsyslogd: [origin software="rsyslogd" swVersion="5.8.11" x-pid="2442" x-info="http://www.rsyslog.com"] start
Should be: Mar 2 18:00:12 www.example.org rsyslogd: [origin software="rsyslogd" swVersion="5.8.11" x-pid="2442" x-info="http://www.rsyslog.com"] start

Thanks in advanced!

fips123
  • 371

1 Answers1

1

Your problem is most likely a bug in wheezy's rsyslog.

You're looking to set $PreserveFQDN on. You'll need to set it on top of your file (logs configured prior to this directive would still tell about your hostname, instead of your FQDN). And maybe you've done it already.

The thing is: It works fine everywhere I've been able to check (openbsd 5.4 rsyslog4 (using either -c3 or -c4), trusty rsyslog7, jessie rsyslog8, wheezy-backports rsyslog7). Except for wheezy default package (rsyslog5), where I keep receiving short names.

sebix
  • 4,432
SYN
  • 1,812