Operating System - HP-UX
1753947 Members
7571 Online
108811 Solutions
New Discussion юеВ

extracting syslog entries of a prticular date from big syslog.log file

 
SOLVED
Go to solution
Kuntal Gupta
Frequent Advisor

extracting syslog entries of a prticular date from big syslog.log file

My syslog file is too big, I want to extract the log entries of a particular date from this syslog.log file. Would anybody pls help me?
3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: extracting syslog entries of a prticular date from big syslog.log file

You could just grep for the date:
grep "^Jul 18" /var/adm/syslog/syslog.log
Note: If the first 9 days of the month, you'll need two spaces.
Kuntal Gupta
Frequent Advisor

Re: extracting syslog entries of a prticular date from big syslog.log file

Thanks a lot "Guru" (Guru=Big Boss), it is working fine.

Thanks once again....

Kuntal
Dennis Handly
Acclaimed Contributor
Solution

Re: extracting syslog entries of a prticular date from big syslog.log file

>Thanks once again.

If you are happy with the answers you were given, please read the following about how to assign points:
http://forums.itrc.hp.com/service/forums/helptips.do?#33