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 <[email protected]> wrote:

> On Wed, Jan 6, 2016 at 6:41 AM, Debraj Manna <[email protected]>
> 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>
>
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to