Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Extracting time from a log

by Lawliet (Curate)
on Jun 28, 2013 at 18:50 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1041317]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-03-29 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found