Hi Carl, Thanks man, i tried but my code is giving some problem can any able to give me sample code for this, I will be very thank full to him... thanks.
ansa On 12/25/07, Carl E. Mankinen <[EMAIL PROTECTED]> wrote: > > Parse the log file and key off the user name. > > Use the log time as a scalar value in comparison, just find the highest > valued entry (likely at the bottom of the log anyway, but you should still > compare the read log time to the saved high water value). When you have > finished reading the logs, then evaluate each user hash and compare the high > water value to current UTC time. If the difference is greater than X number > of seconds you choose, then trigger your email code. > > Pretty easy. > > If there is one log file, you can open it and keep reading from the tail > and just let your script sleep for a while after processing. > If there are more and they are rotating, you might need to make your > script read thru the directory and find new log files to process. You can do > that with opendir and readdir. > > On Dec 24, 2007 3:02 PM, saeed ansari <[EMAIL PROTECTED]> wrote: > > > Hello NetLanders , > > > > My Nick name is ANSA, i am Support Analyst and very new to this mailing > > list. > > I want your help , I am a beginner in Perl scripting/programing. I am > > facing some issue with my web server and for that i want to write script > > which search the missing heart beat for particular user in WEB server logs > > (Sample log file is attached with this mail). I am trying to write script > > using hash table which do operation in memory, trying to create separate > > hash table for individual user and parsing the log in memory only and as > > soon as some user heartbeat/sequence miss script will immediate print the > > same log and sent the mail and also give the percentage value that how many > > user lost heart beat today. > > > > Can any one please help and give me the sample code for this. you can > > find the sample logs in the attached file below. > > > > Regards, > > ANSA > > > > > > _______________________________________________ > > Perl-Unix-Users mailing list > > Perl-Unix-Users@listserv.ActiveState.com > > To unsubscribe: > > http://listserv.ActiveState.com/mailman/mysubs<http://listserv.activestate.com/mailman/mysubs> > > > >
_______________________________________________ Perl-Unix-Users mailing list Perl-Unix-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs