Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2020-10-28 06:31 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (260 votes). Check out past polls.