Quantcast
Viewing all articles
Browse latest Browse all 21975

get last instance of log using a seperator

Hi, I have a continuous log from an app, where I only need the log from latest run. The only thing i can use as a separator in between previous logs and the log from last run is a string "Log ----------------------------------".

Is it possible to get the last part of the log after the last separator "Log ----------------------------------"

log:

01/10/14 07:10:00 Log ----------------------------------
01/10/14 07:10:00 Log Start \\STMSRV01\APTEK$\APTEK.exe [1.1.15 64-bit] -l\\STMSRV01\APTEK$\APTEK.log -iE:\certs\\1F010914.ps1 -x\\STMSRV01\APTEK$\1F_spec.xml -oaxml -cE:\certs\\ -dn
01/10/14 07:10:00 Log Spec= \\STMSRV01\APTEK$\1F_spec.xml [10/30/2013 22:15:01 39,436 bytes]
01/10/14 07:10:00 Log Data= E:\certs\\1F010914.ps1 [01/10/2014 07:00:03 708,074 bytes]
01/10/14 07:10:00 Log APVersionNumber= 3.0.0.0
01/10/14 07:10:00 Log Script compilation time: 00:00:00.0312024
01/10/14 07:10:01 Log Data translation duration: 00:00:01.0302954.
01/10/14 07:10:01 Log Total input|output rows: 2,405 | 2,404
01/10/14 07:10:01 Log Total input|output bytes: 703,264 | 2,913,648
01/10/14 07:10:01 Log Process' peak memory usage (MB): 542
01/10/14 07:10:01 Log Total Time (hh:mm:ss): 00:00:01
01/10/14 07:10:01 Log Process Completed.
01/11/14 07:10:00 Log ----------------------------------
01/11/14 07:10:00 Log Start \\STMSRV01\APTEK$\APTEK.exe [1.1.15 64-bit] -l\\STMSRV01\APTEK$\APTEK.log -iE:\certs\\1F011014.ps1 -x\\STMSRV01\APTEK$\1F_spec.xml -oaxml -cE:\certs\\ -dn
01/11/14 07:10:00 Log Spec= \\STMSRV01\APTEK$\1F_spec.xml [10/30/2013 22:15:01 39,436 bytes]
01/11/14 07:10:00 Log Data= E:\certs\\1F011014.ps1 [01/11/2014 07:00:04 709,075 bytes]
01/11/14 07:10:00 Log APVersionNumber= 3.0.0.0
01/11/14 07:10:00 Log Script compilation time: 00:00:00.0156022
01/11/14 07:10:01 Log Data translation duration: 00:00:01.0361705.
01/11/14 07:10:01 Log Total input|output rows: 2,413 | 2,412
01/11/14 07:10:01 Log Total input|output bytes: 704,249 | 2,923,344
01/11/14 07:10:01 Log Process' peak memory usage (MB): 542
01/11/14 07:10:01 Log Total Time (hh:mm:ss): 00:00:01
01/11/14 07:10:01 Log Error.
01/14/14 07:10:00 Log ----------------------------------
01/14/14 07:10:00 Log Start \\STMSRV01\APTEK$\APTEK.exe [1.1.15 64-bit] -l\\STMSRV01\APTEK$\APTEK.log -iE:\certs\\1F011314.ps1 -x\\STMSRV01\APTEK$\1F_spec.xml -oaxml -cE:\certs\\ -dn
01/14/14 07:10:00 Log Spec= \\STMSRV01\APTEK$\1F_spec.xml [10/30/2013 22:15:01 39,436 bytes]
01/14/14 07:10:00 Log Data= E:\certs\\1F011314.ps1 [01/14/2014 07:00:05 714,175 bytes]
01/14/14 07:10:00 Log APVersionNumber= 3.0.0.0
01/14/14 07:10:01 Log Script compilation time: 00:00:00.1248072
01/14/14 07:10:02 Log Data translation duration: 00:00:01.0587602.
01/14/14 07:10:02 Log Total input|output rows: 2,431 | 2,430
01/14/14 07:10:02 Log Total input|output bytes: 709,313 | 2,945,160
01/14/14 07:10:02 Log Process' peak memory usage (MB): 542
01/14/14 07:10:02 Log Total Time (hh:mm:ss): 00:00:01
01/14/14 07:10:02 Log Process Completed.




Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>