Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How do I grab last one hour data from the log file?

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi.
I have a log file which goes like this..


INFO: Jul 07 00:00:15 DataSource 2zvw8p93107gev14wko86|34e51ca2: Total connections 4 idle 4 busy 0 unclosed orphans 0 pool unknown
PERFORMANCE: Jul 07 00:00:15 Garbage Collection: ParNew 5 51ms in 59 seconds. [SpeedoLoggingBean] Thread SpeedoBean
INFO: Jul 07 00:00:15 Speedo: 2,222,786K of 4,054,528K - 1,831,741K free, 4,952epm, 1 buffered, 216 threads, 49.1% CPU, permgen 173,731K of 262,144K - 88,412K free
Jul 7, 2014 12:00:15 AM org.geotools.data.wfs.v1_0_0.WFSTransactionState commit
SEVERE: number of fids inserted do not match number of fids returned by Transaction Response. Got:1 expected: 0
Jul 7, 2014 12:00:16 AM org.geotools.data.wfs.v1_0_0.WFSTransactionState commit
SEVERE: number of fids inserted do not match number of fids returned by Transaction Response. Got:1 expected: 0
INFO: Jul 07 00:00:17 High Z 589,808.33 m, 7,553,595.08 m, 531.17 m corrected to 528.35 m for WL7152
Jul 7, 2014 12:00:17 AM org.geotools.data.wfs.v1_0_0.WFSTransactionState commit
SEVERE: number of fids inserted do not match number of fids returned by Transaction Response. Got:1 expected: 0
Jul 7, 2014 12:00:18 AM org.geotools.data.wfs.v1_0_0.WFSTransactionState commit
SEVERE: number of fids inserted do not match number of fids returned by Transaction Response. Got:1 expected: 0
INFO: Jul 07 00:00:18 DT5216 ASSIGNED to DUMP RF02 at FTN_OPF_PC1 into processor FTN_OPF_PC1.
INFO: Jul 07 00:00:19 High Z 589,807.28 m, 7,553,597.1 m, 531.11 m corrected to 528.12 m for WL7152
Jul 7, 2014 12:00:22 AM org.geotools.data.wfs.v1_0_0.WFSTransactionState commit
SEVERE: number of fids inserted do not match number of fids returned by Transaction Response. Got:1 expected: 0
INFO: Jul 07 00:00:24 TruckLoadMessage DT3709 EX6201_Entry EX6201 UNKNOWN
INFO: Jul 07 00:00:28 Page 'Send Message Assistant' was closed with config 'Default': in process 'client' on machine B6C001173553.
INFO: Jul 07 00:00:29 Page 'Truck Assistant' was closed with config 'Unknown Configuration': in process 'client' on machine B6C001173553.
INFO: Jul 07 00:00:31 Low Z 588,801.44 m, 7,549,271.42 m, 540.78 m corrected to 542.35 m for EX8104
INFO: Jul 07 00:00:34 TruckLoadMessage DT3708 EX6205_Entry EX6205 HGBM
INFO: Jul 07 00:00:34 High Z 589,798.86 m, 7,553,662.13 m, 530.8 m corrected to 525.72 m for WL7024
INFO: Jul 07 00:00:34 Negative mass in stockpile no change to grades
INFO: Jul 07 00:00:34 Negative mass in stockpile no change to grades
INFO: Jul 07 00:00:34 Negative mass in stockpile no change to grades
INFO: Jul 07 00:00:34 Negative mass in stockpile no change to grades
INFO: Jul 07 00:00:34 Negative mass in stockpile no change to grades
INFO: Jul 07 00:00:34 Updating dynamic machine burn rate: 103.36 l/hr (current 118.96 l/hr) for DT5206



I have a code which takes out all the time and changes it to long format. But I am not able to parse the lines which fall inbetween the one hour gap.
Here is the code..


What I need is to grab only the last hour data from this log file? How can I achieve this?
 
Sheriff
Posts: 5555
326
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please do not post duplicate questions. You are already getting some help in your other almost identical thread so let's continue the discussion over there. Thanks
 
    Bookmark Topic Watch Topic
  • New Topic