1850338 Members
2944 Online
104054 Solutions
New Discussion

Re: system messages

 
manu_9
Frequent Advisor

system messages

If i want to redirect the /var/adm/syslog/syslog.log or or /var/adm/messages to one single servers syslog.log or messages file .Any clues how to do that .
5 REPLIES 5
Michael Tully
Honored Contributor

Re: system messages

This posting gives a number of options

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=615798
Anyone for a Mutiny ?
Muthukumar_5
Honored Contributor

Re: system messages

hai,

Use the logrotate to rotate the syslog or messages. Or write your own script and simulate it with cron job.

copy all the machines syslog messages to master machine with rcp or ftp (remote file trasnsfer ) calls.

rcp /var/adm/syslog/syslog.log /tmp/system_$(hostname)_$(date "+%d_%m_%Y_%X")

Put this in cron to simulate.

Regards,
Muthukumar.

Easy to suggest when don't know about the problem!
Rainer von Bongartz
Honored Contributor

Re: system messages

put something like this in your /etc/syslog.conf

*.info,*.debug,mail.none,lpr.none /var/adm/syslog/syslog.log

*.info,*.debug,mail.none,lpr.none @


Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Laurent Menase
Honored Contributor

Re: system messages

in /etc/syslog.conf
add

*.info;mail.none @yourcollectingsystrem
*.alert @yourcollectingsystrem
*.emerg @yourcollectingsystrem
kern @yourcollectingsystrem
Bharat Katkar
Honored Contributor

Re: system messages

Hi,

Edit /etc/syslogd.conf and configure it as you want e.g.


*.emerg @myhp

If you add this in syslogd.conf file then all emergency level messages will be forwarded to the SyslogD daemon of MYHP server. There it depends where it is going to store that data depending again on the syslogd configuration of that server myhp.

After configuration is complete ask syslogd to reread the file:

# kill -HUP `cat /var/run/syslog.pid`

Hope that helps.
Regards,
You need to know a lot to actually know how little you know