<div dir="ltr">No, by redirecting to a file I mean using the < and > operators in the shell. To redirect output from the the varnishlog command (the one listed in the docs) to a file.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 7, 2016 at 9:54 AM, Debraj Manna <span dir="ltr"><<a href="mailto:subharaj.manna@gmail.com" target="_blank">subharaj.manna@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>By redirecting to file you mean enabling <span style="font-family:monospace,monospace">VARNISHNCSA_ENABLED</span> & <span style="font-family:monospace,monospace">VARNISHLOG_ENABLED</span> in<span style="font-family:monospace,monospace"> /var/default/varnishncsa</span> & <span style="font-family:monospace,monospace">/var/default/varnishlog</span> respectively.<br><br>As Jason suggested right now using <span style="font-family:monospace,monospace">std.syslog</span> I am adding some custom log messages to <span style="font-family:monospace,monospace">/var/log/messages</span>.<br><br><font size="1"><span style="font-family:monospace,monospace">sub vcl_backend_error {<br> std.syslog(180, "error: Backend " + bereq.backend + " Url " + bereq.url + " Status " + beresp.status + " Reason " + beresp.reason);</span></font><br>}<br><br></div>Is it possible to redirect the custom logs to some other file?<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 7, 2016 at 1:53 PM, Per Buer <span dir="ltr"><<a href="mailto:perbu@varnish-software.com" target="_blank">perbu@varnish-software.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span>On Wed, Jan 6, 2016 at 6:41 AM, Debraj Manna <span dir="ltr"><<a href="mailto:subharaj.manna@gmail.com" target="_blank">subharaj.manna@gmail.com</a>></span> wrote:<br></span><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span><div>Hi,<br><br></div>After going through this <a href="https://www.varnish-cache.org/docs/trunk/users-guide/troubleshooting.html" target="_blank">article</a> I am having the following doubts. Can some one help me to clarify this:-<br><br></span> 4. How can I dump the 503 / Guru Meditation errors in a file?<br></div></div></blockquote><div><br></div><div><br></div><div>What part of the documentation was unclear? Do you know how to redirect to a file?</div></div><span><font color="#888888"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><table style="border-bottom-width:1px;padding-top:5px;border-top-style:solid;width:550px;padding-bottom:5px;border-bottom-color:rgb(238,238,238);border-top-width:1px;border-bottom-style:solid;line-height:1.5em;border-top-color:rgb(238,238,238);color:rgb(102,102,102);font-size:12px;font-family:'Helvetica Neue',Arial,sans-serif;margin-top:20px" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td width="100"><img src="http://www.varnish-software.com/static/media/logo-email.png"></td><td><font color="#222222"><span style="font-size:14px"><b>Per Buer</b></span></font><br>CTO | Varnish Software AS<br>Cell: <a value="+4790181750" style="color:rgb(17,85,204)">+47 95839117</a><br><span style="font-weight:bold">We Make Websites Fly!<br><a href="https://www.varnish-software.com/" style="color:rgb(17,85,204)" target="_blank">www.varnish-software.com</a></span></td></tr></tbody></table><br><div style="color:rgb(136,136,136)"><a href="http://info.varnish-software.com/signature" target="_blank"><img src="http://files.varnish-software.com/signature.png"></a><br></div></div></div></div></div>
</font></span></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><table border="0" cellpadding="0" cellspacing="0" style="border-bottom-width:1px;padding-top:5px;border-top-style:solid;width:550px;padding-bottom:5px;border-bottom-color:rgb(238,238,238);border-top-width:1px;border-bottom-style:solid;line-height:1.5em;border-top-color:rgb(238,238,238);color:rgb(102,102,102);font-size:12px;font-family:'Helvetica Neue',Arial,sans-serif;margin-top:20px"><tbody><tr><td width="100"><img src="http://www.varnish-software.com/static/media/logo-email.png"></td><td><font color="#222222"><span style="font-size:14px"><b>Per Buer</b></span></font><br>CTO | Varnish Software AS<br>Cell: <a value="+4790181750" style="color:rgb(17,85,204)">+47 95839117</a><br><span style="font-weight:bold">We Make Websites Fly!<br><a href="https://www.varnish-software.com/" style="color:rgb(17,85,204)" target="_blank">www.varnish-software.com</a></span></td></tr></tbody></table><br><div style="color:rgb(136,136,136)"><a href="http://info.varnish-software.com/signature" target="_blank"><img src="http://files.varnish-software.com/signature.png"></a><br></div></div></div></div></div>
</div>