Operating System - HP-UX
1833535 Members
2952 Online
110061 Solutions
New Discussion

Remote logging with syslogd

 
Jacques Larouche
Occasional Contributor

Remote logging with syslogd

When using remote logging (@otherhost in syslog.conf), is it possible to specify a file on the remote hosts?

I used to have this entry before:
local4.debug /var/adm/syslog/routers.log

and now that it's going to the remote log host, everything is going to the syslog.log file even if that remote host has a "local4.debug" entry.
4 REPLIES 4
Sanjay_6
Honored Contributor

Re: Remote logging with syslogd

Hi Jaques,

you have to specify the file name in the /etc/syslog.conf file on the remote server. Use "man syslogd" for more info.

Hope this helps.

Regds
Steven Gillard_2
Honored Contributor

Re: Remote logging with syslogd

So I assume you have in /etc/syslog.conf on the local system:

local4.debug @remotehost

And on the remote host:

local4.debug /var/adm/syslog/routers.log

Does that not work? Are the systems both HPUX?

Regards,
Steve
Jeff Machols
Esteemed Contributor

Re: Remote logging with syslogd

there are two steps, first in the local syslog conf you redircet the message to the host


*.emerg @loghost

then on the log host, you specify the log file

*.emerg /logfile


the hostname will appear as the first entry of the message in the log file
Kevin Wright
Honored Contributor

Re: Remote logging with syslogd

you did HUP the syslogd PID right?
kill -HUP `cat /var/run/syslog.pid`