- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Removing inetd messaging from syslog.
Operating System - HP-UX
1752551
Members
4474
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО09-27-2000 07:24 AM
тАО09-27-2000 07:24 AM
Removing inetd messaging from syslog.
Our syslog which we use regularly in problem solving is full of "Connection Attempt" messages logged by inetd, making the task of problem solving more painful than it needs to be. I cant remove the informational level daemon messages from syslog without losing our service guard messages aswell. We can't turn off inetd logging without compromising our security. Is there a way of configuring inetd to log to somewhere other than syslogd without turning off logging completely?
There's a monkey in my sock drawer.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2000 06:26 PM
тАО10-01-2000 06:26 PM
Re: Removing inetd messaging from syslog.
Syslog logging is coded inside the programs so you have to direct syslog as to what you'd like to do. The file is /etc/syslog.conf and has the format:
facility.level location
where facility are things like kern and daemon and mail, level has values like debug and info and warn, and location can be any file, devicefile, or even a remote server. So to log all daemon messages at the info level and higher to a file called /var/adm/syslog/daemon.log, use:
daemon.info /var/adm/syslog/daemon.log
Now to remove the daemon messages from syslog.log, you'll need to change the current line for syslog.log to something like this:
*.info;mail.none;daemon.none /var/adm/syslog/syslog.log
Note that each line in syslog.conf is processed one at a time so if you leave out the daemon.none above, both syslog.log and daemon.log will get the same messages from daemons.
The best way to verify changes in syslog.conf is to use the logger command. To log a message to syslog as a daemon at the warn level:
logger -t mytest -p daemon.warn Testing
To send important messages to a separate system over the network, do something like:
*.warn @ remote.system.com
and the remote system will log all warn messages from the local system (in addition to any other logging going on in the local server).
Bill Hassell, sysadmin
facility.level location
where facility are things like kern and daemon and mail, level has values like debug and info and warn, and location can be any file, devicefile, or even a remote server. So to log all daemon messages at the info level and higher to a file called /var/adm/syslog/daemon.log, use:
daemon.info /var/adm/syslog/daemon.log
Now to remove the daemon messages from syslog.log, you'll need to change the current line for syslog.log to something like this:
*.info;mail.none;daemon.none /var/adm/syslog/syslog.log
Note that each line in syslog.conf is processed one at a time so if you leave out the daemon.none above, both syslog.log and daemon.log will get the same messages from daemons.
The best way to verify changes in syslog.conf is to use the logger command. To log a message to syslog as a daemon at the warn level:
logger -t mytest -p daemon.warn Testing
To send important messages to a separate system over the network, do something like:
*.warn @ remote.system.com
and the remote system will log all warn messages from the local system (in addition to any other logging going on in the local server).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2000 12:56 AM
тАО10-02-2000 12:56 AM
Re: Removing inetd messaging from syslog.
Thanks Bill... You provided a lot a valuable information I didn't already know about syslog, but I need to separate inetd (daemon) messages from cmcld (also daemon) messages for serviceguard. It turns out that it can not be done without an independent filter.
There's a monkey in my sock drawer.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP