.\" Man page generated from reStructuredText. . .TH VARNISHLOG "" "" "" .SH NAME varnishlog \- Display Varnish logs . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH SYNOPSIS .sp varnishlog [\-a] [\-b] [\-B] [\-c] [\-C] [\-d] [\-D] [\-g ] [\-h] [\-i taglist] [\-k num] [\-I <[taglist:]regex>] [\-L limit] [\-n name] [\-N filename] [\-P file] [\-q query] [\-r filename] [\-T seconds] [\-v] [\-V] [\-w filename] [\-x taglist] [\-X <[taglist:]regex>] .SH OPTIONS .sp The following options are available: .INDENT 0.0 .TP .B \-a When writing output to a file, append to it rather than overwrite it. .TP .B \-b Only display transactions and log records coming from backend communication. .TP .B \-B Output binary data suitable for reading with \-r. .TP .B \-c Only display transactions and log records coming from client communication. .TP .B \-C Do all regular expression and string matching caseless. .TP .B \-d Start processing log records at the head of the log instead of the tail. .TP .B \-D Daemonize. .TP .BI \-g \ The grouping of the log records. The default is to group by vxid. .TP .B \-h Print program usage and exit .TP .BI \-i \ taglist Include log records of these tags in output. Taglist is a comma\-separated list of tag globs. Multiple \-i options may be given. .sp If a tag include option is the first of any tag selection options, all tags are first marked excluded. .TP .BI \-k \ num Process this number of matching log transactions before exiting. .TP .BI \-I \ <[taglist:]regex> Include by regex matching. Output only records matching taglist and regular expression. Applies to any tag if taglist is absent. .sp If a tag include option is the first of any tag selection options, all tags are first marked excluded. .TP .BI \-L \ limit Sets the upper limit of incomplete transactions kept before the oldest transaction is force completed. A warning record is synthesized when this happens. This setting keeps an upper bound on the memory usage of running queries. Defaults to 1000 transactions. .TP .BI \-n \ name Specify the name of the varnishd instance to get logs from. If \-n is not specified, the host name is used. .TP .BI \-N \ filename Specify the filename of a stale VSM instance. When using this option the abandonment checking is disabled. .TP .BI \-P \ file Write the process\(aq PID to the specified file. .TP .BI \-q \ query Specifies the VSL query to use. .TP .BI \-r \ filename Read log in binary file format from this file. .TP .BI \-T \ seconds Sets the transaction timeout in seconds. This defines the maximum number of seconds elapsed between a Begin tag and the End tag. If the timeout expires, a warning record is synthesized and the transaction is force completed. Defaults to 120 seconds. .TP .B \-v Use verbose output on record set printing, giving the VXID on every log line. Without this option, the VXID will only be given on the header of that transaction. .TP .B \-V Print version information and exit. .TP .BI \-w \ filename Redirect output to file. The file will be overwritten unless the \-a option was specified. If the application receives a SIGHUP the file will be reopened allowing the old one to be rotated away. .TP .BI \-x \ taglist Exclude log records of these tags in output. Taglist is a comma\-separated list of tag globs. Multiple \-x options may be given. .TP .BI \-X \ <[taglist:]regex> Exclude by regex matching. Do not output records matching taglist and regular expression. Applies to any tag if taglist is absent. .UNINDENT .SH SIGNALS .INDENT 0.0 .IP \(bu 2 SIGHUP .sp Rotate the log file (see \-w option) .IP \(bu 2 SIGUSR1 .sp Flush any outstanding transactions .UNINDENT .SH SEE ALSO .INDENT 0.0 .IP \(bu 2 varnishd(1) .IP \(bu 2 varnishhist(1) .IP \(bu 2 varnishncsa(1) .IP \(bu 2 varnishstat(1) .IP \(bu 2 varnishtop(1) .IP \(bu 2 vsl(7) .IP \(bu 2 vsl\-query(7) .UNINDENT .SH HISTORY .sp The varnishlog utility was developed by Poul\-Henning Kamp <\fI\%phk@phk.freebsd.dk\fP> in cooperation with Verdens Gang AS and Varnish Software AS. This manual page was initially written by Dag\-Erling Smørgrav, and later updated by Per Buer and Martin Blix Grydeland. .SH COPYRIGHT .sp This document is licensed under the same licence as Varnish itself. See LICENCE for details. .INDENT 0.0 .IP \(bu 2 Copyright (c) 2006 Verdens Gang AS .IP \(bu 2 Copyright (c) 2006\-2014 Varnish Software AS .UNINDENT .\" Generated by docutils manpage writer. .