Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^4: Extracting time from a log

by Azur (Initiate)
on Jul 01, 2013 at 11:14 UTC ( #1041822=note: print w/replies, xml ) Need Help??


in reply to Re^3: Extracting time from a log
in thread Extracting time from a log

Yes, clearly I must be, if you get output from that line, because I do not.

I do get output if I enter...

varnishlog -o -i Backend,RxURL,ReqEnd,RxHeader

...and when I enter...

ls | perl -ne 'BEGIN { $/= "";} print'

...but not when I enter...

 varnishlog -o -i Backend,RxURL,ReqEnd,RxHeader | perl -ne 'BEGIN { $/= "";} print'

So both parts of the command work individually, but not together!

Any suggestions as to what I'm missing would be most welcome.

EDIT: Solved it by redirecting the output to a textfile, then grepping the textfile. Still interested in finding out why the Perl command didn't work.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2019-07-16 04:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?