mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 02:00:31 +00:00
Update cheatsheets
This commit is contained in:
29
varnishlog
Normal file
29
varnishlog
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}"'`
|
||||
Reference in New Issue
Block a user