Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | None | 0 0
  1. (sed -e'y/)},={/(((((/'
  2. -e's/-([^(I]*)[^0-9]*([0-9]*)[( ]*/- 2 -1/;=' |
  3. paste -d- - - |
  4. sort -t- -nk3,3 -nk1,1 |
  5. sed -e's/^[^-]*-//;:n' -e'h;$!N'
  6. -e's/(-([^-]*-).*[^ ]) *n([^-]*-){2}2/1 - 3/;tn'
  7. -ex;:t -e's/(([^-]*-)[^/]*) - *2/1,/;tt' -e'p;g;D' )
  8. < in.txt > out.txt
  9.  
  10. 6/13/2015 12:00:47 AM - { 562} START Web
  11. 6/13/2015 12:00:47 AM - Requested Web connection from 123.125.71.103[123.125.71.103], ID=562
  12. 6/13/2015 12:01:24 AM - { 563} START POP3
  13. 6/13/2015 12:01:24 AM - Requested POP3 connection from 10.127.251.37 [10.127.251.37], ID=563
  14. 6/13/2015 12:01:24 AM - ( 563) USER test.mail@test.me
  15. 6/13/2015 12:01:24 AM - POP3 connection with 10.127.251.37 [10.127.251.37] ended. ID=563
  16. 6/13/2015 12:01:24 AM - { 563} END POP3
  17. 6/13/2015 12:01:24 AM - { 564} START POP3
  18. 6/13/2015 12:01:24 AM - Requested POP3 connection from 10.127.251.37 [10.127.251.37], ID=564
  19. 6/13/2015 12:01:24 AM - ( 564) USER test.mail@test.me
  20. 6/13/2015 12:01:24 AM - POP3 connection with 10.127.251.37 [10.127.251.37] ended. ID=564
  21. 6/13/2015 12:01:24 AM - { 564} END POP3
  22. 6/13/2015 12:01:40 AM - Web connection with 123.125.71.103 [123.125.71.103] ended. ID=562
  23. 6/13/2015 12:01:40 AM - { 562} END Web
  24.  
  25. 6/13/2015 12:00:47 AM - 562 - START Web, Requested Web connection from 123.125.71.103 [123.125.71.103] - 6/13/2015 12:01:40 AM - Web connection with 123.125.71.103 [123.125.71.103] ended., END Web
  26. 6/13/2015 12:01:24 AM - 563 - START POP3, Requested POP3 connection from 10.127.251.37 [10.127.251.37], USER test.mail@test.me, POP3 connection with 10.127.251.37 [10.127.251.37] ended., END POP3
  27. 6/13/2015 12:01:24 AM - 564 - START POP3, Requested POP3 connection from 10.127.251.37 [10.127.251.37], USER test.mail@test.me, POP3 connection with 10.127.251.37 [10.127.251.37] ended., END POP3
  28.  
  29. 6/13/2015 2:15:09 AM - Starting delivery thread, ID=667
  30. 6/13/2015 2:15:09 AM - { 667} START Delivery
  31. 6/13/2015 2:15:09 AM - Active delivery threads (ID=667 start): 0
  32. 6/13/2015 2:15:09 AM - [ 667] Delivering to test.mail@test.com
  33. 6/13/2015 2:15:09 AM - [ 667] Forwarding mail...
  34. 6/13/2015 2:15:09 AM - [ 667] Forwarding message to 1 address(es)
  35. 6/13/2015 2:15:09 AM - Delivery thread, ID=667, terminated after running for 0.031 seconds.
  36. 6/13/2015 2:15:09 AM - { 667} END Delivery
  37. 6/13/2015 2:15:09 AM - Active delivery threads (ID=667 end): 0
  38.  
  39. 6/13/2015 2:43:24 AM - Exended logging
  40. 6/13/2015 2:43:24 AM - Setting msgSizeLimit 15
  41.  
  42. ( sed -e= -e's/- [({[] *([0-9]*) *[])}]/- 1 -/;t'
  43. -e's/-(.*[^, ])[, ]*ID=([0-9]*)[, ]{0,1}/- 2 -1/' |
  44. paste -d- - - |
  45. sort -t- -nk3,3 -nk1,1 |
  46. sed -e's/^[^-]*-//;:n' -e'h;$!N'
  47. -e's/(-([^-]*-).*[^ ]) *n([^-]*-){2}2/1 - 3/;tn'
  48. -ex;:t -e's/(([^-]*-)[^/]*)- *2/1:::/;tt' -e'p;g;D'
  49. ) <in >out
  50.  
  51. 6/13/2015 12:00:47 AM - 562 - START Web ::: Requested Web connection from 123.125.71.103[123.125.71.103] - 6/13/2015 12:01:40 AM - Web connection with 123.125.71.103 [123.125.71.103] ended. ::: END Web
  52. 6/13/2015 12:01:24 AM - 563 - START POP3 ::: Requested POP3 connection from 10.127.251.37 [10.127.251.37] ::: USER test.mail@test.me ::: POP3 connection with 10.127.251.37 [10.127.251.37] ended. ::: END POP3
  53. 6/13/2015 12:01:24 AM - 564 - START POP3 ::: Requested POP3 connection from 10.127.251.37 [10.127.251.37] ::: USER test.mail@test.me ::: POP3 connection with 10.127.251.37 [10.127.251.37] ended. ::: END POP3
  54. 6/13/2015 2:15:09 AM - 667 - Starting delivery thread ::: START Delivery ::: Active delivery threads (start): 0 ::: Delivering to test.mail@test.com ::: Forwarding mail... ::: Forwarding message to 1 address(es) ::: Delivery thread terminated after running for 0.031 seconds. ::: END Delivery ::: Active delivery threads (end): 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement