fork download
  1. class Ideone {
  2. public static void main (String[] args) {
  3. for (String s : INPUT.split("(?m)^--$\\R?")) {
  4. System.out.println("============================== START ==============================");
  5. System.out.print(s);
  6. System.out.println("=============================== END ===============================");
  7. System.out.println();
  8. }
  9. }
  10. private static final String INPUT =
  11. "access.log-2017-07-10 05:30:02 127.0.0.1 GET 200 58944 0.079 - \"\" - - - - - /platform/scheduler/logout.jsp 9148257800613007309 - - - - - - - - -\r\n" +
  12. "access.log-2017-07-10 05:45:00 127.0.0.1 POST 200 10 0.084 \"55\" \"\" - - - - - /platform/scheduler/login.jsp 9148257800613007349 - - - - - - - - -\r\n" +
  13. "access.log-2017-07-10 05:45:00 127.0.0.1 GET 302 333 0.02 - \"test123\" - - - - - /report/scheduler/schedule.jsp?notify=y 9148257800613007349 - - - - - - - - -\r\n" +
  14. "access.log-2017-07-10 05:45:00 127.0.0.1 GET 200 168427 0.171 - \"\" - - - - - /report/reports.jsp?report=6030654077013281451 9148257800613007349 - - - - - - - - -\r\n" +
  15. "access.log-2017-07-10 05:45:00 127.0.0.1 GET 200 58944 0.034 - \"\" - - - - - /platform/scheduler/logout.jsp 9148257800613007349 - - - - - - - - -\r\n" +
  16. "access.log:2017-07-10 05:59:05 10.233.32.75 POST 302 325 3.189 \"133\" \"\" - - - - - /login.jsp 9148257800613007357 - - - - - - - - \"http://10.112.251.31:6300/login.jsp?redirectKey=_from_url_e4600ddc-2c02-4c85-9eff-83bee5457c14\" kranthi123\r\n" +
  17. "access.log-2017-07-10 05:59:06 10.233.32.75 GET 200 30119 1.422 - \"\" - - - - - /ncobject.jsp?id=9137288153213290331 9148257800613007357 - - - - - - - - \"http://10.112.251.31:6300/login.jsp?redirectKey=_from_url_e4600ddc-2c02-4c85-9eff-83bee5457c14\"\r\n" +
  18. "access.log-2017-07-10 05:59:07 10.233.32.75 GET 200 32 0.009 - \"\" - - - - - /CSServlet 9148257800613007357 - - - - - - - - \"http://10.112.251.31:6300/ncobject.jsp?id=9137288153213290331\"\r\n" +
  19. "access.log-2017-07-10 05:59:07 10.233.32.75 GET 404 52534 0.454 - \"\" - - - - - /scripts/jquery/form-styler/jquery/jquery.formstyler/jquery.formstyler.min.js 9148257800613007357 - - - - - - - - \"http://10.112.251.31:6300/ncobject.jsp?id=9137288153213290331\"\r\n" +
  20. "--\r\n" +
  21. "start_check_state.log-\r\n" +
  22. "start_check_state.log-Initializing WebLogic Scripting Tool (WLST) ...\r\n" +
  23. "start_check_state.log-\r\n" +
  24. "start_check_state.log:Welcome to WebLogic Server Administration Scripting Shell kranthi123\r\n" +
  25. "start_check_state.log-\r\n" +
  26. "start_check_state.log-Type help() for help on available commands\r\n" +
  27. "start_check_state.log-\r\n" +
  28. "start_check_state.log-Connecting to t3://0.0.0.0:6300 with userid system ...\r\n" +
  29. "start_check_state.log-Successfully connected to Admin Server 'devSrv25131' that belongs to domain 'dev'.\r\n" +
  30. "--\r\n" +
  31. "start_check_state.log-\r\n" +
  32. "start_check_state.log-Initializing WebLogic Scripting Tool (WLST) ...\r\n" +
  33. "start_check_state.log-\r\n" +
  34. "start_check_state.log:Welcome to WebLogic Server Administration Scripting Shell kranthi123\r\n" +
  35. "start_check_state.log-\r\n" +
  36. "start_check_state.log-Type help() for help on available commands\r\n" +
  37. "start_check_state.log-\r\n" +
  38. "start_check_state.log-Connecting to t3://0.0.0.0:6300 with userid system ...\r\n" +
  39. "start_check_state.log-Successfully connected to Admin Server 'devSrv25131' that belongs to domain 'dev'.\r\n";
  40. }
Success #stdin #stdout 0.05s 4386816KB
stdin
Standard input is empty
stdout
============================== START ==============================
access.log-2017-07-10   05:30:02    127.0.0.1   GET 200 58944   0.079   -   ""  -   -   -   -   -   /platform/scheduler/logout.jsp  9148257800613007309 -   -   -   -   -   -   -   -   -
access.log-2017-07-10   05:45:00    127.0.0.1   POST    200 10  0.084   "55"    ""  -   -   -   -   -   /platform/scheduler/login.jsp   9148257800613007349 -   -   -   -   -   -   -   -   -
access.log-2017-07-10   05:45:00    127.0.0.1   GET 302 333 0.02    -   "test123"   -   -   -   -   -   /report/scheduler/schedule.jsp?notify=y 9148257800613007349 -   -   -   -   -   -   -   -   -
access.log-2017-07-10   05:45:00    127.0.0.1   GET 200 168427  0.171   -   ""  -   -   -   -   -   /report/reports.jsp?report=6030654077013281451  9148257800613007349 -   -   -   -   -   -   -   -   -
access.log-2017-07-10   05:45:00    127.0.0.1   GET 200 58944   0.034   -   ""  -   -   -   -   -   /platform/scheduler/logout.jsp  9148257800613007349 -   -   -   -   -   -   -   -   -
access.log:2017-07-10   05:59:05    10.233.32.75    POST    302 325 3.189   "133"   ""  -   -   -   -   -   /login.jsp  9148257800613007357 -   -   -   -   -   -   -   -   "http://10.112.251.31:6300/login.jsp?redirectKey=_from_url_e4600ddc-2c02-4c85-9eff-83bee5457c14" kranthi123
access.log-2017-07-10   05:59:06    10.233.32.75    GET 200 30119   1.422   -   ""  -   -   -   -   -   /ncobject.jsp?id=9137288153213290331    9148257800613007357 -   -   -   -   -   -   -   -   "http://10.112.251.31:6300/login.jsp?redirectKey=_from_url_e4600ddc-2c02-4c85-9eff-83bee5457c14"
access.log-2017-07-10   05:59:07    10.233.32.75    GET 200 32  0.009   -   ""  -   -   -   -   -   /CSServlet  9148257800613007357 -   -   -   -   -   -   -   -   "http://10.112.251.31:6300/ncobject.jsp?id=9137288153213290331"
access.log-2017-07-10   05:59:07    10.233.32.75    GET 404 52534   0.454   -   ""  -   -   -   -   -   /scripts/jquery/form-styler/jquery/jquery.formstyler/jquery.formstyler.min.js   9148257800613007357 -   -   -   -   -   -   -   -   "http://10.112.251.31:6300/ncobject.jsp?id=9137288153213290331"
=============================== END ===============================

============================== START ==============================
start_check_state.log-
start_check_state.log-Initializing WebLogic Scripting Tool (WLST) ...
start_check_state.log-
start_check_state.log:Welcome to WebLogic Server Administration Scripting Shell kranthi123
start_check_state.log-
start_check_state.log-Type help() for help on available commands
start_check_state.log-
start_check_state.log-Connecting to t3://0.0.0.0:6300 with userid system ...
start_check_state.log-Successfully connected to Admin Server 'devSrv25131' that belongs to domain 'dev'.
=============================== END ===============================

============================== START ==============================
start_check_state.log-
start_check_state.log-Initializing WebLogic Scripting Tool (WLST) ...
start_check_state.log-
start_check_state.log:Welcome to WebLogic Server Administration Scripting Shell kranthi123
start_check_state.log-
start_check_state.log-Type help() for help on available commands
start_check_state.log-
start_check_state.log-Connecting to t3://0.0.0.0:6300 with userid system ...
start_check_state.log-Successfully connected to Admin Server 'devSrv25131' that belongs to domain 'dev'.
=============================== END ===============================