1828341 Members
3584 Online
109976 Solutions
New Discussion

syslog.conf file

 
Account Not Used
Frequent Advisor

syslog.conf file

When doing a "man syslogd/syslog/ it gives examples of configuring the syslog.conf file when wanting to redirect the output to a syslog server as well as to it's own syslog.log.
EXAMPLE: *alert @syslog_server_name". Do I need to give a directory path too & not just the server name or does it output to where the syslog.log file exist on the server the output is being redirected to? Did I make any sense.
"Who moved my cheese?"
3 REPLIES 3
linuxfan
Honored Contributor

Re: syslog.conf file

Hi Michael,


You do not need to specify the path on the remote machine, just specifying the remote host would suffice.


-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Wodisch
Honored Contributor

Re: syslog.conf file

Hello Michael,

isn't there a period missing?

*.alert @machine

I just tested the following line in the
"/etc/syslog.conf" one machineA:

user.info @machineB

and sent a "kill -1" to the running "syslogd"
to make it re-read its config file.

Then I open a terminal-window to "machineB"
and watched the "syslog.log" over there:

tail -f /var/adm/syslog/syslog.log

and in another terminal window on "machineA"
I sent a message to the local syslogd:

logger -i "Hello world"

It appeared in both syslog.log files!

HTH,
Wodisch
Kodjo Agbenu
Honored Contributor

Re: syslog.conf file

Hello Michael,

Don't forget that the remote syslog server must be started with the "-r" option. Without that option, it would just ignore received syslog messages.

Good luck.

Kodjo

P.S. Don't forget to rate this answer (from 1 to 10).
Learn and explain...