Operating System - HP-UX
1832986 Members
2810 Online
110048 Solutions
New Discussion

syslog config for remote logging

 
Yong Siew Lee
Occasional Contributor

syslog config for remote logging

Hi,

I am trying to configure my local syslog to send it's mail log to a centralised syslog server. May I know what is the difference between the following 2 lines in /etc/syslog.conf :

mail.debug ifdef(`LOGHOST', /var/log/syslog, @loghost)

mail.debug @loghost

If I want to have the log in my local syslog.log and the remote syslog server, what should I put in my syslog.conf?

Thank you.
1 REPLY 1
Bill Hassell
Honored Contributor

Re: syslog config for remote logging

I've never seen the ifdef statement in docs about syslog.conf. The correct entry is:

mail.debug @ somehost.domain.org

Naturally, this host must be running syslogd. Test the ability of a remote host to accept and log entries with the logger command.


Bill Hassell, sysadmin