Varnish Log Doubts

Debraj Manna subharaj.manna at gmail.com
Thu Jan 7 09:54:55 CET 2016


By redirecting to file you mean enabling VARNISHNCSA_ENABLED &
VARNISHLOG_ENABLED in /var/default/varnishncsa & /var/default/varnishlog
respectively.

As Jason suggested right now using std.syslog I am adding some custom log
messages to /var/log/messages.

sub vcl_backend_error {
   std.syslog(180, "error: Backend "  + bereq.backend + " Url " + bereq.url
+ " Status " + beresp.status + " Reason " + beresp.reason);
}

Is it possible to redirect the custom logs to some other file?

On Thu, Jan 7, 2016 at 1:53 PM, Per Buer <perbu at varnish-software.com> wrote:

> On Wed, Jan 6, 2016 at 6:41 AM, Debraj Manna <subharaj.manna at gmail.com>
> wrote:
>
>> Hi,
>>
>> After going through this article
>> <https://www.varnish-cache.org/docs/trunk/users-guide/troubleshooting.html>
>> I am having the following doubts. Can some one help me to clarify this:-
>>
>>  4. How can I dump the 503 / Guru Meditation errors in a file?
>>
>
>
> What part of the documentation was unclear? Do you know how to redirect to
> a file?
>
> --
> *Per Buer*
> CTO | Varnish Software AS
> Cell: +47 95839117
> We Make Websites Fly!
> www.varnish-software.com
> <http://info.varnish-software.com/signature>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20160107/83a34774/attachment.html>


More information about the varnish-misc mailing list