Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Last 5 minutes from a log file

Status
Not open for further replies.

zenetko

Programmer
Dec 22, 2001
6
AE
I wanted to do a pattern match to select lines inserted in a log file in the last 5 mins. The log files get rotated automatically once they reach a particular size limit and 5 archives are saved. So, there is a posibility that 5 min logs might get split accross two or more files. Considering how could I use awk to achieve the above mentioned. The date format is "Jul 18 02:57:59.447" in the log files.

Z
 
A better forum for this might be: UNIX Scripting
forum822

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
I was thinking in term of awk to achieve this.

Anyways have tried 3 times to post the same to the mentioned forum, but the post doesnt show up. Seems they mind me asking this over there :|

Z
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top