The sample input file content is: 2012/02/12 @ 14:29:26,519 @ -> java.lang.NullPointerException 2012/02/12 @ 14:23:26,519 @ -> | WARN | RMI TCP Connection(184923)-170.80.0.9 | Error in getting the Network Adapter 2012/02/12 @ 14:20:26,522 @ -> | WARN | RMI TCP Connection(184923)-170.80.0.9 | Error in getting the Network Adapter and output should look like: 2012/02/12 @ 14:20:26,522 @ -> | WARN | RMI TCP Connection(184923)-170.80.0.9 | Error in getting the Network Adapter 2012/02/12 @ 14:23:26,519 @ -> | WARN | RMI TCP Connection(184923)-170.80.0.9 | Error in getting the Network Adapter 2012/02/12 @ 14:29:26,519 @ -> java.lang.NullPointerException