Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Extracting time from a log

by Lawliet (Curate)
on Jun 28, 2013 at 18:50 UTC ( #1041317=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ echo "   11 SessionOpen  c 123.234.56.78 63618 123.234.56.89:80
       11 RxURL        c /example.php
    ...
       11 RxHeader     c Accept-Language: en-US,en;q=0.5
       11 RxHeader     c Accept-Encoding: gzip, deflate
       11 ReqEnd       c 1832330560 1372436083.710740089 1372436083.711302
    +519 0.000174284 0.000352383 0.000210047" | perl -ne 'BEGIN { $/="";} 
    +print if (/ReqEnd(?:[\sc]+)\d+\s\d+\.\d+\s+\d+\.\d+\s+\d+\.\d+\s+(\d+
    +\.\d+)/ and $1 > 0)'
    
  2. or download this
       11 SessionOpen  c 123.234.56.78 63618 123.234.56.89:80
       11 RxURL        c /example.php
    ...
       11 RxHeader     c Accept-Language: en-US,en;q=0.5
       11 RxHeader     c Accept-Encoding: gzip, deflate
       11 ReqEnd       c 1832330560 1372436083.710740089 1372436083.711302
    +519 0.000174284 0.000352383 0.000210047
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1041317]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2019-07-19 14:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?