D
Digger
Ok...... I am new at perl, have been at it for a week or so now
learning.........
I am trying to do the following....
I have a log (url.log) file that contains various url's and some of
them have errors (indicated with a "FAILURE" in the log file).... Now
I want to extract these url's that have the "FAILURE".
log file format
date : error message : url
The problem is this file gets updated every 10 minutes, and in that
time the url could become valid.......
example:
2004-12-24 FAILURE www.bla.com
2004-12-24 SUCCESS www.bla.com
..........
So from the above example the url is valid and I would like a 0 sent
to a file........
2004-12-24 FAILURE www.bla.com
2004-12-24 SUCCESS www.aaa.com
2004-12-24 FAILURE www.aaa.com
2004-12-24 SUCCESS www.bla.com
2004-12-24 FAILURE www.123.com
2004-12-24 FAILURE www.bla.com
Now the url has failed and I would like a 1 sent to a file.....
So we are checking a log file for failed urls that have also not
corrected themselves......... Some sort of loop I would imagine, I
couldn't figure it out... lol
learning.........
I am trying to do the following....
I have a log (url.log) file that contains various url's and some of
them have errors (indicated with a "FAILURE" in the log file).... Now
I want to extract these url's that have the "FAILURE".
log file format
date : error message : url
The problem is this file gets updated every 10 minutes, and in that
time the url could become valid.......
example:
2004-12-24 FAILURE www.bla.com
2004-12-24 SUCCESS www.bla.com
..........
So from the above example the url is valid and I would like a 0 sent
to a file........
2004-12-24 FAILURE www.bla.com
2004-12-24 SUCCESS www.aaa.com
2004-12-24 FAILURE www.aaa.com
2004-12-24 SUCCESS www.bla.com
2004-12-24 FAILURE www.123.com
2004-12-24 FAILURE www.bla.com
Now the url has failed and I would like a 1 sent to a file.....
So we are checking a log file for failed urls that have also not
corrected themselves......... Some sort of loop I would imagine, I
couldn't figure it out... lol