Re: varnishlog not behaving as expected (by me)
]] Poul-Henning Kamp | In message 4b6960da.6080...@bmjgroup.com, Alex Hooper writes: | |/usr/local/bin/varnishlog -o RxURL ^wp-admin$ | | This says you want to *O*mit all RxURL lines. The regexp argument | should have generated an argument error. No, it doesn't: -o Group log entries by request ID. This has no effect when writing to a file using the -w option. The printing of non-client and non-backend lines is really a bug. Please just file a ticket and we can get it fixed. -- Tollef Fog Heen Redpill Linpro -- Changing the game! t: +47 21 54 41 73 ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: varnishlog not behaving as expected (by me)
In message 871vgwc5vk@qurzaw.linpro.no, Tollef Fog Heen writes: ]] Poul-Henning Kamp | In message 4b6960da.6080...@bmjgroup.com, Alex Hooper writes: | |/usr/local/bin/varnishlog -o RxURL ^wp-admin$ | | This says you want to *O*mit all RxURL lines. The regexp argument | should have generated an argument error. No, it doesn't: -o Group log entries by request ID. This has no effect when writing to a file using the -w option. I must have been sleepy, I thought of -x sorry for the confusion. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: varnishlog not behaving as expected (by me)
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 ahoo...@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. ___ ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: varnishlog not behaving as expected (by me)
In message 4b6960da.6080...@bmjgroup.com, Alex Hooper writes: /usr/local/bin/varnishlog -o RxURL ^wp-admin$ This says you want to *O*mit all RxURL lines. The regexp argument should have generated an argument error. What you want is probably: varnishlog -i RxURL -I ^wp-admin$ Ie: Include (only) RxURL lines, which match this regexp. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: varnishlog not behaving as expected (by me)
On Wed, Jan 13, 2010 at 11:24:07AM +, Alex Hooper wrote: I'm having a bit of trouble using varnishlog. I am using: /usr/local/bin/varnishlog -o RxURL ^wp-admin$ All your urls start with /, so that will never match. Try ^/wp-admin and you should have better luck. (...) '/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. Use the above approach instead. And how much traffic do you have? When you pipe it (for instance to grep), varnishlog will be buffered. -- Kristian Lyngstøl Redpill Linpro AS Mob: +47 99014497 pgp4XQWKf4WCu.pgp Description: PGP signature ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
varnishlog not behaving as expected (by me)
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 ahoo...@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. ___ ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc