Varnish Log Doubts
Per Buer
perbu at varnish-software.com
Thu Jan 7 09:56:39 CET 2016
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.
On Thu, Jan 7, 2016 at 9:54 AM, Debraj Manna <subharaj.manna at gmail.com>
wrote:
> 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>
>>
>
>
--
*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/45946ee4/attachment-0001.html>
More information about the varnish-misc
mailing list