cancel
Showing results for 
Search instead for 
Did you mean: 

syslog

SOLVED
Go to solution

syslog

Hello,

Our security guy ask me to send the HP-UX server's syslog to the main syslog server used for all servers. That is not a problem using

*.info @hostname (or IP#)

But, I still want to keep a copy in syslog.log as usual and don't know how. Is there any way to do it?

Tks
3 REPLIES
Johnson Punniyalingam
Honored Contributor
Solution

Re: syslog

Yes, You can

Example:-

*.info;mail.none /var/adm/syslog/syslog.log
*.info;mail.none @hostname (or IP#)


and stop and start the syslog.

HTH,

Johnson
Problems are common to all, but attitude makes the difference
Bill Hassell
Honored Contributor

Re: syslog

AS mentioned above there is no difficulty to sending the syslog data to different places. The syslog.conf file runs every line as a separate directive. That means you can keep a local copy, keep another copy of just warning (and higher) in another file, send *.info messages to several syslog servers, and even send messages to the console. One file does it all. BUT: no spaces, never, ever. Without comment or warning, syslogd ignores any directoive that contains a space. You MUST use tabs to separate the filter from the destination.


Bill Hassell, sysadmin

Re: syslog

Tks to all. The TAB explained why it did work.

Stephane