Operating System - HP-UX
1837864 Members
3151 Online
110122 Solutions
New Discussion

Re: How to redirect application logs to system log files ??

 
SOLVED
Go to solution
Shivkumar
Super Advisor

How to redirect application logs to system log files ??

Hi there,

How many system logs are available on HPUX 11i and how to redirect messages from Apache or iPlanet or any application to these log files ?

Thanks so much.
Shiv
3 REPLIES 3
Rick Garland
Honored Contributor
Solution

Re: How to redirect application logs to system log files ??

There are a couple of system log files (syslog.log, mail.log, etc) but the main one is syslog.log.

You can see if the conf file for these application will allow you to redirect. You can also have a look at the syslog.conf file to see if you capture the app logs that way.
Tim Nelson
Honored Contributor

Re: How to redirect application logs to system log files ??

/etc/syslogd.conf will show you what system logs and levels that are reported through the syslog daemon.
If your application is configured to send messages to syslogd/logger facility then you can make the changes so the application errors show up in the syslog.log or any other file you wish.

This obviously is not every log file on the system, only those that use the syslogd facility. man syslogd and logger for more details on how to use the facility.
Kent Ostby
Honored Contributor

Re: How to redirect application logs to system log files ??

Shiv -- This document is more about how to log LESS to syslog.log, but it does give a good example of the syslog.conf file, USAMKBRC00014927 .

Also, see the man page:

man 1m syslogd

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"