- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How can I add a separate syslogd log for a cus...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2001 06:47 AM
тАО10-05-2001 06:47 AM
How do I configure syslog.conf to separate custom messages, and is there any other configuration needed?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2001 06:53 AM
тАО10-05-2001 06:53 AM
Re: How can I add a separate syslogd log for a custom process
Take a look at the man pages (1M) for 'syslogd'. The requirements, including the fact that a *tab* character is used to separate the 'action' and the 'selector' fields are well described, and the examples are good.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2001 06:57 AM
тАО10-05-2001 06:57 AM
Re: How can I add a separate syslogd log for a custom process
BTW, don't forget to look at 'logger' too ('man logger'). If you have a custom application, this is an ideal, programmatic interface to 'syslog'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2001 07:01 AM
тАО10-05-2001 07:01 AM
SolutionModify the syslog configuration file (typically /etc/syslog.conf) and add a line something like this:
myprog.info /var/adm/syslog/myprog.log
This will log all info level and above messages from the myprog subsystem to myprog.log.
Man syslogd for details and instruction on how to force the reload of the configuration file.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2001 07:13 AM
тАО10-05-2001 07:13 AM
Re: How can I add a separate syslogd log for a custom process
Even if you use logger, it is only an user interface for logging into syslog.log.
However, it is possible for you if your code uses one of the facilities like LOCAL0. Then you can modify your syslog.conf to specify a different log file for this facility.
-Sri
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2001 07:24 AM
тАО10-05-2001 07:24 AM
Re: How can I add a separate syslogd log for a custom process
Thanks for the example! If I use configure the myprog.info line in syslog.conf and restart syslogd, all I need to do is use the "-p myprog.info" parameter on my "logger" commands, and messages for myprog will go to the new log, right?
Will this custom log be auto-truncated like the default syslog logs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2001 07:31 AM
тАО10-05-2001 07:31 AM
Re: How can I add a separate syslogd log for a custom process
use any one of LOCAL0-7 facilities. Let's say it used local0 facility, then you can configure local0.info (or .debug or whatever) in your syslog.conf and specify a seperate log file.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2001 07:34 AM
тАО10-05-2001 07:34 AM
Re: How can I add a separate syslogd log for a custom process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2001 07:49 AM
тАО10-05-2001 07:49 AM
Re: How can I add a separate syslogd log for a custom process
-Sri