- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: syslog message suppression
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-03-2002 07:33 AM
тАО10-03-2002 07:33 AM
syslog message suppression
in the syslog.log file you often see a line like 'last message repeated 4 times', for example. This I assume is to save space. Is there any way of stopping this suppression,and logging everything to the file?
I need to scan the log file and count how many times an event actually occurs.
regards,
Chris.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2002 07:38 AM
тАО10-03-2002 07:38 AM
Re: syslog message suppression
Do a man on syslogd. The -r option is what you're looking for.
Pete
Pete
- Tags:
- syslog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2002 07:44 AM
тАО10-03-2002 07:44 AM
Re: syslog message suppression
It probably means that they have the -a option on which suppresses duplicate messages.
If you want to see all the messages as they come up then do this then restart your syslog with the -r option which says dont suppress messages.
Hope this helps.
FG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2002 07:50 AM
тАО10-03-2002 07:50 AM
Re: syslog message suppression
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2002 09:06 AM
тАО10-03-2002 09:06 AM
Re: syslog message suppression
We monitor the syslog.log file (and similar files under other Unix OSs) with ITO for problems. We have come across a situation where the syslog daemon is running but not writing to the syslog file.
One of our "brilliant" engineers wrote a script that uses logger to write a message to the syslog file then uses grep to see if the message is in the logfile. If it is not, he then recycles the syslog daemon.
Our "brilliant" engineer set his script to run every 5 minutes. Since he sends the same message every time his script is run, the syslog daemon replaces the message with "last message repeated...". Naturelly, the grep does not match and his script recycles the syslog daemon.
To add insult to injury, this "brilliant" engineer uses logger to notify us that the syslog daemon has been recycled. Logger attempts to send the messsage before the syslog daemon is completely recycled, and causes the daemon to crash!
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2002 09:52 AM
тАО10-03-2002 09:52 AM
Re: syslog message suppression
If you are looking for a count of an event and you are scanning syslog anyway, couldn't you key on the "last message" line, extract the number and add that to your counter?
My 2 cents...
-- Rod Hills