Monday, January 28, 2013

rsyslog not sending/logging full hostnames (FQDNs) in logs

I was trying to send logs from rsyslog to syslog-ng and I wasn't getting full hostnames in the central syslog server even though it was configured to keep full hostnames.

There is a option $PreserveFQDN to add FQDNs (in rsyslog.conf) in logs but that didn't work for some reason.

This post is just to mention that it'll only work if this option is added at the top of configuration file (before loading of any directives that write to log files). To be safe, just make it the first line of the rsyslog.conf file.

I also added this info on the wiki page in Arch to get this information to broader audience as I struggled with this for hours.

2 comments:

  1. pl. provide me a python 3.3 windows platform working script for sending sms via way2sms . This is required for our organisation to know the status of uplinks in our network instantly. - R. subramanian BSNL Madurai 9486102353

    ReplyDelete
  2. It's not for production use. You would be better off with a Email2SMS gateways rather than using a hacky script that might stop working any day.

    ReplyDelete