- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- syslog new entry
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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
01-07-2004 10:33 PM
01-07-2004 10:33 PM
with dmesg you are can get all new entries with the '-' option.
dmesg -
Is there a utility that will do the same for syslog.log?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 10:35 PM
01-07-2004 10:35 PM
Re: syslog new entry
grep "pattern" /var/adm/syslog/syslog.log
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 10:44 PM
01-07-2004 10:44 PM
Solutionhttp://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=317666
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 10:45 PM
01-07-2004 10:45 PM
Re: syslog new entry
dmesg - will show the messages since tha last time it was run. I don't think such an option is valid for syslog.log, because it is updated continuously. The only thing you may choose is tail, grep, head..etc or a combination of these.
Or you can write a customized script and put it in cron to do this job.
Good luck
Shahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2004 11:01 PM
01-07-2004 11:01 PM
Re: syslog new entry
You can use a script like this one :
#!/usr/bin/sh
FILE=$1
comm -23 $FILE $FILE.prev 2>&-
cp $FILE $FILE.prev
Each invocation will give you new lines added, but there is no standard option for doing it with syslog.
Regards.