varnishlog:tldr:388dc
varnishlog: Only display POST requests.
$ varnishlog -q 'ReqMethod eq "${POST}"'
try on your machine
The command varnishlog -q 'ReqMethod eq "${POST}"'
is used to display entries from the Varnish cache log that are only related to HTTP POST requests.
Here is the breakdown of the command:
varnishlog
: This command is used to show the Varnish cache log in real-time and provide detailed information about the requests and responses passing through the Varnish cache.-q
: This option is used to specify a filter or query for selecting specific log entries based on certain criteria.'ReqMethod eq "${POST}"'
: This is the query or filter expression that is passed to the-q
option. In this case, it is filtering the log entries based on theReqMethod
field, which represents the HTTP request method. Theeq
operator is used to check if the request method is equal to${POST}
.${POST}
is a placeholder or variable that represents the string "POST". So, this query will match log entries where the HTTP request method is "POST".
By running this command, you should see a live stream of log entries related to HTTP POST requests in the Varnish cache.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.