HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /var/adm/syslog/syslog.log monioring
Operating System - HP-UX
1833294
Members
3010
Online
110051
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
Forums
Discussions
Discussions
Discussions
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
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
04-22-2008 02:32 AM
04-22-2008 02:32 AM
/var/adm/syslog/syslog.log monioring
Hi,
i want to find critical messages in the /var/adm/syslog.log file. Is there any procedure for identifying the messages (like category wise critical,warning,notice). Anybody is having documention on this.
Thanks
Kumar
i want to find critical messages in the /var/adm/syslog.log file. Is there any procedure for identifying the messages (like category wise critical,warning,notice). Anybody is having documention on this.
Thanks
Kumar
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2008 04:11 AM
04-22-2008 04:11 AM
Re: /var/adm/syslog/syslog.log monioring
Hi BVBK,
You write one script .for ex dailyscript.
include following lines,
grep -i full /var/adm/syslog/syslog.log
grep -i lbolt /var/adm/syslog/syslog.log
grep -i fail /var/adm/syslog/syslog.log
grep -i Error /var/adm/syslog/syslog.log
grep -i incorrect /var/adm/syslog/syslog.log
grep -i scsi /var/adm/syslog/syslog.log
grep -i lvm /var/adm/syslog/syslog.log
grep -i fault /var/adm/syslog/syslog.log
grep -i disable /var/adm/syslog/syslog.log
on daily basis run the script to check your syslog.
Ex: sh dailyscript |grep 'Apr 22'
Hope this helps!
You write one script .for ex dailyscript.
include following lines,
grep -i full /var/adm/syslog/syslog.log
grep -i lbolt /var/adm/syslog/syslog.log
grep -i fail /var/adm/syslog/syslog.log
grep -i Error /var/adm/syslog/syslog.log
grep -i incorrect /var/adm/syslog/syslog.log
grep -i scsi /var/adm/syslog/syslog.log
grep -i lvm /var/adm/syslog/syslog.log
grep -i fault /var/adm/syslog/syslog.log
grep -i disable /var/adm/syslog/syslog.log
on daily basis run the script to check your syslog.
Ex: sh dailyscript |grep 'Apr 22'
Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2008 04:46 AM
04-22-2008 04:46 AM
Re: /var/adm/syslog/syslog.log monioring
To allow the identification of syslog messages by category, you could add "-v" to the startup options of syslog. See the comments in the /etc/rc.config.d/syslogd file.
After editing that file, restart syslogd:
/sbin/init.d/syslogd stop
/sbin/init.d/syslogd start
Read "man 3c syslog" to understand the facility/level codes added by this option.
An alternative approach would be to edit /etc/syslog.conf to store the log messages to various separate files according to their priority levels.
MK
After editing that file, restart syslogd:
/sbin/init.d/syslogd stop
/sbin/init.d/syslogd start
Read "man 3c syslog" to understand the facility/level codes added by this option.
An alternative approach would be to edit /etc/syslog.conf to store the log messages to various separate files according to their priority levels.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2008 06:22 AM
04-22-2008 06:22 AM
Re: /var/adm/syslog/syslog.log monioring
Have you thought of installing Big Brother? (Sorry, I don't have the link to hand.)
You can configure it to send an alert whenever it detects (for example) "WARNING" in the syslog.
Mark Syder (like the drink but spelt different)
You can configure it to send an alert whenever it detects (for example) "WARNING" in the syslog.
Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP