Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^4: How to find out a text word from the log file and email it

by cgumudavelly (Initiate)
on Nov 07, 2008 at 09:11 UTC ( [id://722182]=note: print w/replies, xml ) Need Help??


in reply to Re^3: How to find out a text word from the log file and email it
in thread How to find out a text word from the log file and email it

Yes mcdarren, your right i need some sort of logic in such a way that for every time i run the script the execution starts from the beggining of the file and if suppose i got the error messages twice and when this script runs then on seeing the first error it immediately sends an alert and it will not go to the second error message every time. That means for the first error message it self the alert gets delivered everytime. Also i am trying to work this script on the windows environment. The script should identify the latest recorded entry in the log file. For every time i run the script it should not begin from the beginning of the log file. So it should identify the string from the lastest entered data in the log file. I hope this info helps for you to suggest me.
  • Comment on Re^4: How to find out a text word from the log file and email it

Replies are listed 'Best First'.
Re^5: How to find out a text word from the log file and email it
by moritz (Cardinal) on Nov 07, 2008 at 09:37 UTC
    (Please try to write in shorter sentences, and use paragraphs. I find it quite hard to read and understand your postings).

    So, have you written a script yet? If yes, and you want hints for improvements, show us your script. If not, start by writing a script that mostly works, and then gradually improve it to do what you want.

      Script to find a string from a active log file. I need to search this entry from the log file" Uncaught Run time exception" I want to run the script for every 10 min and the script should be able to find the given string in that 10 min of interval

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://722182]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 23:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found