Actually according to my script 3 lines will be outputed whenever a pattern is matched
Pattern line
next immediate 2 lines
--------------------------------------------------------------------------
Also the next 2 immediate line varies with each pattern found
below few examples:
2008-10-14 05:47:05,551 [Thread-6] ERROR - CleanLPDataMessage: Missing Intervals: 1
2008-10-14 05:47:05,551 [Thread-6] INFO - LPBatch: [null, 1-GH32X, null, DC:Tue Oct 14 10:12:37 UTC 2008, null, null, Mon Oct 13 05:00:00 CDT 2008, Mon Oct 13 10:00:00 UTC 2008, Tue Oct 14 04:45:00 CDT 2008, Tue Oct 14 09:45:00 UTC 2008, CC, AMR, 94]
2008-10-14 05:47:05,575 [Thread-6] INFO - Number of Intervals Not Inserted: 1 / 95
*********************************************
2008-10-14 05:50:54,072 [Thread-6] ERROR - CleanLPDataMessage: Missing Intervals: 1
2008-10-14 05:50:54,072 [Thread-6] INFO - LPBatch: [null, 1-150KP1, null, DC:Tue Oct 14 10:16:52 UTC 2008, null, null, Mon Oct 13 04:45:00 CDT 2008, Mon Oct 13 09:45:00 UTC 2008, Tue Oct 14 04:45:00 CDT 2008, Tue Oct 14 09:45:00 UTC 2008, CC, AMR, 95]
2008-10-14 05:50:54,101 [Thread-6] INFO - Number of Intervals Not Inserted: 1 / 96
****************************************************
2008-10-14 05:55:41,604 [Thread-6] ERROR - CleanLPDataMessage: Missing Intervals: 1
2008-10-14 05:55:41,604 [Thread-6] INFO - LPBatch: [null, 1-VWEMR, null, DC:Tue Oct 14 10:22:06 UTC 2008, null, null, Mon Oct 13 04:30:00 CDT 2008, Mon Oct 13 09:30:00 UTC 2008, Tue Oct 14 05:00:00 CDT 2008, Tue Oct 14 10:00:00 UTC 2008, CC, AMR, 97]
2008-10-14 05:55:41,634 [Thread-6] INFO - Number of Intervals Not Inserted: 1 / 98
*********************************************
So i wanted the o/p in the below fashion
1-GH32X|CC|AMR|Number of Intervals Not Inserted: 1 / 95
1-150KP1|CC|AMR|Number of Intervals Not Inserted: 1 / 96
1-VWEMR|CC|AMR|Number of Intervals Not Inserted: 1 / 98