[VDD] VSL query extensions

Dridi Boukelmoune dridi at varni.sh
Mon Sep 23 09:15:03 UTC 2019


Greetings,

Just a quick word to say that with the release of 6.3 the following
extensions are now part of the VSL query language:

On Mon, May 7, 2018 at 8:08 AM Dridi Boukelmoune <dridi at varni.sh> wrote:
>
<snip>
> 1) Multi-line queries
>
> When someone wishes to capture logs for multiple reasons, they need
> to OR them, possibly with brackets. Instead the proposal is to support
> one query per line, ignore empty lines, and treat tokens starting with
> '#' as comments.
>
> Example:
>
>     varnishlog -q '(my-first-query) or (my-second-query)'
>     varnishlog -q '
>         my-first-query
>         my-second-query
>         ...
>     '
>
> 2) Read queries from a file
>
> Similar to reading varnishncsa's format from a file:
>
>     cat >bad-things.txt <<EOF
>     # internal errors
>     RespStatus >= 500
>
>     # backend problems
>     ...
>
>     # internal incident 4253
>     ...
>
>     # varnish issue 1799
>     ...
>     EOF
>     varnishlog -Q bad-things.txt
<snip>

Dridi


More information about the varnish-dev mailing list