varnishlog: add page (#8169)

pull/1/head
Pierre Rudloff 2022-07-18 23:51:20 +02:00 committed by GitHub
parent 521f2f7f6b
commit 7d6bd2e6cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
# varnishlog
> Display Varnish logs.
> More information: <https://varnish-cache.org/docs/trunk/reference/varnishlog.html>.
- Display logs in real time:
`varnishlog`
- Only display requests to a specific domain:
`varnishlog -q 'ReqHeader eq "Host: {{example.com}}"'`
- Only display POST requests:
`varnishlog -q 'ReqMethod eq "{{POST}}"'`
- Only display requests to a specific path:
`varnishlog -q 'ReqURL eq "{{/path}}"'`
- Only display requests to paths matching a regular expression:
`varnishlog -q 'ReqURL ~ "{{regex}}"'`