<div dir="ltr">Thank you Tollef. I create the log using:<br><span style="color: rgb(0, 0, 153);"> # varnishlog -a -w /var/log/varnish/varnish.log &</span><br><br>And now I read it using:<br><span style="color: rgb(0, 0, 153);"> # varnishlog -r /var/log/varnish/varnish.log</span><br>
<br>I get some lines like:<br><span style="color: rgb(0, 0, 153);"> 14 TxHeader b Referer: <a href="http://myserver.example.com/news/%D8%A7%D9%84%D9%85%D9%84%D9%8A%D8%A7%D8%B1%D8%AF%D9%8A%D8%B1-%D8%A7%D9%84%D9%85%D8%B5%D8%B1%D9%8A-%C2%AB%D9%85%D8%AD%D9%85%D8%AF-%D8%A7%D9%84%D9%81%D8%A7%D9%8A%D8%AF%C2%BB-%D9%8A%D9%82%D8%B1%D8%B1-%D8%A8%D9%8A%D">http://myserver.example.com/news/%D8%A7%D9%84%D9%85%D9%84%D9%8A%D8%A7%D8%B1%D8%AF%D9%8A%D8%B1-%D8%A7%D9%84%D9%85%D8%B5%D8%B1%D9%8A-%C2%AB%D9%85%D8%AD%D9%85%D8%AF-%D8%A7%D9%84%D9%81%D8%A7%D9%8A%D8%AF%C2%BB-%D9%8A%D9%82%D8%B1%D8%B1-%D8%A8%D9%8A%D</a></span><br style="color: rgb(0, 0, 153);">
<br>The point is that I need to make varnish accept such percentages or any other syntax in VCL file. So that some pages are cached longer based on their Arabic address (Like the one in the referer above). <br><br>Any ideas?<br>
Thank you in advance :)<br><br><br><div class="gmail_quote">On Mon, May 31, 2010 at 9:13 AM, Tollef Fog Heen <span dir="ltr"><<a href="mailto:tfheen@varnish-software.com">tfheen@varnish-software.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">]] "Angie T. Muhammad"<br>
<div class="im"><br>
| I tried opening the log file with less, vim, and tail but all what am<br>
| getting is either binary (less) or stuff like above (tail).<br>
<br>
</div>Use varnishlog(1) to read the varnishlog.<br>
<br>
tail and less won't do the right thing as the log file is a circular<br>
buffer and they have no idea where varnish is currently writing.<br>
<font color="#888888"><br>
--<br>
Tollef Fog Heen<br>
Varnish Software<br>
t: +47 21 54 41 73<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="http://lists.varnish-cache.org/mailman/listinfo/varnish-misc" target="_blank">http://lists.varnish-cache.org/mailman/listinfo/varnish-misc</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>All the best,<br>Angie T. Muhammad<br>Linux Systems Engineer<br>Al Masry Al Youm<br><a href="http://www.almasryalyoum.com/en">http://www.almasryalyoum.com/en</a><br>
</div>