Hey guys,
Perl newbie here. I need some advice.
Here is the senario: I have a log file that looks like the following:
06/19 16:14:47: ERROR: error type 1
06/20 17:25:48: ERROR: error type 1
06/20 18:56:52: ERROR: error type 1
06/21 04:00:15: ERROR: error type 1
06/22 00:03:02: ERROR: error type 1
06/22 15:13:39: ERROR: error type 1
06/22 15:15:40: ERROR: error type 1
I want to write up a scirpt to summarize the above log file into the following format:
[date] [# of errors]
06/19 1
06/20 2
06/21 1
06/22 4
The date part is easy to get, but I can't figure out how to get the count of errrors. Any advice?
Perl newbie here. I need some advice.
Here is the senario: I have a log file that looks like the following:
06/19 16:14:47: ERROR: error type 1
06/20 17:25:48: ERROR: error type 1
06/20 18:56:52: ERROR: error type 1
06/21 04:00:15: ERROR: error type 1
06/22 00:03:02: ERROR: error type 1
06/22 15:13:39: ERROR: error type 1
06/22 15:15:40: ERROR: error type 1
I want to write up a scirpt to summarize the above log file into the following format:
[date] [# of errors]
06/19 1
06/20 2
06/21 1
06/22 4
The date part is easy to get, but I can't figure out how to get the count of errrors. Any advice?