In some instances there is a need to re-direct the logs to a different server.
Step1:
$ oem_setup_env
Login as padmin. Create a file called /tmp/syslog.add
Step2:
Edit the content of the /tmp/syslog.add with,
errnotify:
en_pid = 0
en_name = "syslog"
en_persistenceflg = 1
en_method = "/usr/bin/errpt -a -l $1 |/usr/bin/fgrep -v 'ERROR_ID TIMESTAMP'|
/usr/bin/logger -t ERRDEMON -p local1.warn"
Step3:
# odmadd /tmp/syslog.add /* Updating the changes in the ODM */
Step4:
Edit the /etc/syslogd.conf file to re-direct the logs to a different server.
*.debug @10.0.0.1 <IP address of a different server */
Step5:
Restart the demon.
# stopsrc –s syslogd
# startstc –s syslogd
No comments:
Post a Comment