1835243 Members
2642 Online
110078 Solutions
New Discussion

redirect log

 
kacou
Regular Advisor

redirect log



To redirect my system log to a server (sun), I modify the /etc/sysclog.conf file like it. (See below). How can I do the same in hp-ux machine? (B.11.23 , model :9000/800/rp3440)

# cat syslog.conf
# @(#)B11.23_LR
#
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug /var/adm/syslog/mail.log
*.info;mail.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *
auth.* @10.2.x.x
user.* @10.2.x.x
authpriv.* @10.2.x.x
#
8 REPLIES 8
Pete Randall
Outstanding Contributor

Re: redirect log

Same way, same file. Do a man on syslogd. It's all explained there.


Pete

Pete
Kenan Erdey
Honored Contributor

Re: redirect log

and don't forget to restart syslog daemon.
Computers have lots of memory but no imagination
kacou
Regular Advisor

Re: redirect log

is it possible to do it using "sam"?

help me please
Jeeshan
Honored Contributor

Re: redirect log

just a slight mistake. put a tab before @

like


auth.* @10.2.x.x
user.* @10.2.x.x
authpriv.* @10.2.x.x
a warrior never quits
kacou
Regular Advisor

Re: redirect log

In the SUN SYSTEM there is this file in the /etc/syslog.conf. But in the hp-ux system this file does not exist. So help me to configure my system on hp-ux
--------------------------------- see below the screen print

# if a non-loghost machine chooses to have authentication messages
# sent to the loghost machine, un-comment out the following line:
auth.notice ifdef(`LOGHOST', /var/log/authlog, @loghost)

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

nb : décommenter la ligne auth.notice
Patrick Wallek
Honored Contributor

Re: redirect log

Have a read through the syslogd man page. That should answer most of your questions.

# man syslogd
kacou
Regular Advisor

Re: redirect log

it's not clear!!
Patrick Wallek
Honored Contributor

Re: redirect log

What is not clear?

You have been told how do this.

You edit /etc/syslog.conf.

Your entries are of the format:

.@hostname

like

mail.emerg@loghost

(Where means hit the TAB key as the fields in this file are separated by tabs)