3.22.6. LogHost Previous topic Parent topic Child topic Next topic

When LogSock is set to tcp or udp or inet, this optional parameter specifies the name or address of the syslog host. Defaults to the local host. Special characters are supported.
The LogHost parameter is passed directly to Perl's Sys::Syslog module which will likely do a DNS query for each logged message. This can cause performance problems and high number of DNS requests with verbose log levels. It is recommended to log to local host and let the local syslog to do remote logging.
# Log to a remote host via syslog over udp:
LogSock udp
LogHost your.syslog.host.com