varnishlog not behaving as expected (by me)

Alex Hooper ahooper at bmjgroup.com
Wed Feb 3 12:41:14 CET 2010


Hi,

It's OK: I'm used to not receiving responses from mailing lists. I have
an unfortunate way of communicating in such forums, I think.

Anyway, having come back to this after a slight hiatus I have noted that
the inclusion of the '-c' flag makes it work as expected.

If I instead include the '-b' flag, it also seems to work as expected
(ie, it doesn't spew output, returns data on backend requests where
tag/regex matched). If I include both -b and -c, it continues to work --
but if I include neither, I get the type of spurious* output I noted
originally, no matter what the combination of tag and regex.

My reading of the man page is that

  varnishlog -o <tag> <regex>

is semantically equivalent to

  varnishlog -b -c -o <tag> <regex>


Either I or the code or the man page would appear to be wrong.

Cheers,

Alex.

* The use of this term may be subjective.


Alex Hooper uttered:
> Hi,
> 
> I'm having a bit of trouble using varnishlog. I am using:
> 
>   /usr/local/bin/varnishlog -o RxURL "^wp-admin$"
> 
> Expecting to see grouped log lines for requests where the RxURL matches
> /^wp-admin$. But the (copious) output I see is like:
> 
>     0 StatAddr     - 59.181.130.123 0 6 1 3 0 0 0 1003 8711
>     0 StatAddr     - 120.28.216.236 0 1 6 11 0 0 0 3864 92763
>     0 StatAddr     - 80.13.50.156 0 754 22 40 0 0 0 7080 0
>     0 StatAddr     - 86.156.98.226 0 0 2 4 0 0 0 1397 9259
>     0 ExpPick      - 1023444941 ttl
>     0 VCL_call     - timeout
>     0 VCL_return   - discard
>     0 ExpKill      - 1023444941 -1263381538
>     0 ExpPick      - 1023444953 ttl
>     0 VCL_call     - timeout
>     0 VCL_return   - discard
>     0 ExpKill      - 1023444953 -1263381538
>     0 ExpPick      - 1023108126 ttl
>     0 VCL_call     - timeout
>     0 VCL_return   - discard
>     0 ExpKill      - 1023108126 -10
>     0 ExpPick      - 1023109753 prefetch
>     0 VCL_call     - prefetch
>     0 VCL_return   - fetch
>     0 Debug        - "Attempt Prefetch 1023109753"
>     0 StatAddr     - 86.156.98.226 0 0 3 5 0 0 0 1750 22988
>     0 StatAddr     - 193.146.115.134 0 12 4 4 0 0 0 708 0
>     0 StatAddr     - 86.156.98.226 0 0 4 6 0 0 0 2103 36115
>     0 StatAddr     - 80.13.50.156 0 754 22 41 0 0 0 7257 0
>     0 StatAddr     - 80.13.50.156 0 754 23 42 0 0 0 7434 0
> 
> 
> '/usr/local/bin/varnishlog' -i RxURL  shows me the requests coming in.
> '/usr/local/bin/varnishlog -i RxURL|grep wp-admin' shows that there are
> generally no requests for wp-admin.
> 
> Am I missing something obvious?
> 
> (varnish-2.0.4 on RHEL 5.4)
> 
> Cheers,
> 
> Alex.


-- 
Alex Hooper                           |  <w> www.bmjpg.com
Operations Team Leader                |  <e> ahooper at bmjgroup.com
BMJ Technology, BMJ Publishing Group  |  <t> +44 20 7383 6049
BMA House, LONDON, WC1H 9JR           |


_______________________________________________________________________
The BMJ Group is one of the world's most trusted providers of medical information for doctors, researchers, health care workers and patients www.bmjgroup.bmj.com.  This email and any attachments are confidential.  If you have received this email in error, please delete it and kindly notify us.  If the email contains personal views then the BMJ Group accepts no responsibility for these statements.  The recipient should check this email and attachments for viruses because the BMJ Group accepts no liability for any damage caused by viruses.  Emails sent or received by the BMJ Group may be monitored for size, traffic, distribution and content.  BMJ Publishing Group Limited trading as BMJ Group.  A private limited company, registered in England and Wales under registration number 03102371.  Registered office: BMA House, Tavistock Square, London WC1H 9JR, UK.
_______________________________________________________________________



More information about the varnish-misc mailing list