⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.96
Server IP:
147.93.97.220
Server:
Linux srv843233 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
varnish
/
html
/
reference
/
View File Name :
varnishlog.html
<!DOCTYPE html> <html lang="en" data-content_root="../"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" /> <title>varnishlog — Varnish version 7.5.0 documentation</title> <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" /> <link rel="stylesheet" type="text/css" href="../_static/classic.css?v=e2714048" /> <script src="../_static/documentation_options.js?v=8214db13"></script> <script src="../_static/doctools.js?v=888ff710"></script> <script src="../_static/sphinx_highlight.js?v=dc90522c"></script> <link rel="index" title="Index" href="../genindex.html" /> <link rel="search" title="Search" href="../search.html" /> <link rel="next" title="varnishncsa" href="varnishncsa.html" /> <link rel="prev" title="vsl-query" href="vsl-query.html" /> </head><body> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="varnishncsa.html" title="varnishncsa" accesskey="N">next</a> |</li> <li class="right" > <a href="vsl-query.html" title="vsl-query" accesskey="P">previous</a> |</li> <li class="nav-item nav-item-0"><a href="../index.html">Varnish version 7.5.0 documentation</a> »</li> <li class="nav-item nav-item-1"><a href="index.html" accesskey="U">The Varnish Reference Manual</a> »</li> <li class="nav-item nav-item-this"><a href="">varnishlog</a></li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <section id="varnishlog"> <span id="varnishlog-1"></span><h1>varnishlog<a class="headerlink" href="#varnishlog" title="Link to this heading">¶</a></h1> <section id="display-varnish-logs"> <h2>Display Varnish logs<a class="headerlink" href="#display-varnish-logs" title="Link to this heading">¶</a></h2> <dl class="field-list simple"> <dt class="field-odd">Manual section<span class="colon">:</span></dt> <dd class="field-odd"><p>1</p> </dd> </dl> <section id="synopsis"> <h3>SYNOPSIS<a class="headerlink" href="#synopsis" title="Link to this heading">¶</a></h3> <p>varnishlog [-a] [-A] [-b] [-c] [-C] [-d] [-D] [-E] [-g <session|request|vxid|raw>] [-h] [-i <taglist>] [-I <[taglist:]regex>] [-k <num>] [-L <limit>] [-n <dir>] [-P <file>] [-Q <file>] [-q <query>] [-r <filename>] [-R <limit[/duration]>] [-t <seconds|off>] [-T <seconds>] [-u] [-v] [-V] [-w <filename>] [-x <taglist>] [-X <[taglist:]regex>]</p> </section> <section id="options"> <h3>OPTIONS<a class="headerlink" href="#options" title="Link to this heading">¶</a></h3> <p>The following options are available:</p> <dl class="option-list"> <dt><kbd><span class="option">-a</span></kbd></dt> <dd><p>When writing output to a file with the -w option, append to it rather than overwrite it. This option has no effect without the -w option.</p> </dd> <dt><kbd><span class="option">-A</span></kbd></dt> <dd><p>When writing output to a file with the -w option, output data in ascii format. This option has no effect without the -w option.</p> </dd> <dt><kbd><span class="option">-b</span></kbd></dt> <dd><p>Only display transactions and log records coming from backend communication.</p> </dd> <dt><kbd><span class="option">-c</span></kbd></dt> <dd><p>Only display transactions and log records coming from client communication.</p> </dd> <dt><kbd><span class="option">-C</span></kbd></dt> <dd><p>Do all regular expression and string matching caseless.</p> </dd> <dt><kbd><span class="option">-d</span></kbd></dt> <dd><p>Process log records at the head of the log and exit.</p> </dd> <dt><kbd><span class="option">-D</span></kbd></dt> <dd><p>Daemonize.</p> </dd> <dt><kbd><span class="option">-E</span></kbd></dt> <dd><p>Display ESI transactions and other types of sub-requests. This implies the -c option and includes other client transactions.</p> </dd> <dt><kbd><span class="option">-g <var><session|request|vxid|raw></var></span></kbd></dt> <dd><p>The grouping of the log records. The default is to group by vxid.</p> </dd> <dt><kbd><span class="option">-h</span></kbd></dt> <dd><p>Print program usage and exit</p> </dd> <dt><kbd><span class="option">-i <var><taglist></var></span></kbd></dt> <dd><p>Include log records of these tags in output. Taglist is a comma-separated list of tag globs. Multiple -i options may be given.</p> <p>If a tag include option is the first of any tag selection options, all tags are first marked excluded.</p> </dd> <dt><kbd><span class="option">-I <var><[taglist:]regex></var></span></kbd></dt> <dd><p>Include by regex matching. Output only records matching taglist and regular expression. Applies to any tag if taglist is absent. Multiple -I options may be given.</p> <p>If a tag include option is the first of any tag selection options, all tags are first marked excluded.</p> </dd> <dt><kbd><span class="option">-k <var><num></var></span></kbd></dt> <dd><p>Process this number of matching log transactions before exiting.</p> </dd> <dt><kbd><span class="option">-L <var><limit></var></span></kbd></dt> <dd><p>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.</p> </dd> <dt><kbd><span class="option">-n <var><dir></var></span></kbd></dt> <dd><p>Specify the varnishd working directory (also known as instance name) to get logs from. If -n is not specified, the host name is used.</p> </dd> <dt><kbd><span class="option">-P <var><file></var></span></kbd></dt> <dd><p>Write the process’ PID to the specified file.</p> </dd> <dt><kbd><span class="option">-Q <var><file></var></span></kbd></dt> <dd><p>Specifies the file containing the VSL query to use. When multiple -Q or -q options are specified, all queries are considered as if the ‘or’ operator was used to combine them.</p> </dd> <dt><kbd><span class="option">-q <var><query></var></span></kbd></dt> <dd><p>Specifies the VSL query to use. When multiple -q or -Q options are specified, all queries are considered as if the ‘or’ operator was used to combine them.</p> </dd> <dt><kbd><span class="option">-r <var><filename></var></span></kbd></dt> <dd><p>Read log in binary file format from this file. The file can be created with <code class="docutils literal notranslate"><span class="pre">varnishlog</span> <span class="pre">-w</span> <span class="pre">filename</span></code>. If the filename is -, logs are read from the standard input. and cannot work as a daemon.</p> </dd> <dt><kbd><span class="option">-R <var><limit[/duration]></var></span></kbd></dt> <dd><p>Restrict the output to the specified limit. Transactions exceeding the limit will be suppressed. The limit is specified as the maximum number of transactions (with respect to the chosen grouping method) and an optional time period. If no duration is specified, a default of <code class="docutils literal notranslate"><span class="pre">s</span></code> is used. The duration field can be formatted as in VCL (e.g. <code class="docutils literal notranslate"><span class="pre">-R</span> <span class="pre">10/2m</span></code>) or as a simple time period without the prefix (e.g. <code class="docutils literal notranslate"><span class="pre">-R</span> <span class="pre">5/m</span></code>). When in <code class="docutils literal notranslate"><span class="pre">-g</span> <span class="pre">raw</span></code> grouping mode, this setting can not be used alongside <code class="docutils literal notranslate"><span class="pre">-i</span></code>, <code class="docutils literal notranslate"><span class="pre">-I</span></code>, <code class="docutils literal notranslate"><span class="pre">-x</span></code> or <code class="docutils literal notranslate"><span class="pre">-X</span></code>, and we advise using <code class="docutils literal notranslate"><span class="pre">-q</span></code> instead.</p> </dd> <dt><kbd><span class="option">-t <var><seconds|off></var></span></kbd></dt> <dd><p>Timeout before returning error on initial VSM connection. If set the VSM connection is retried every 0.5 seconds for this many seconds. If zero the connection is attempted only once and will fail immediately if unsuccessful. If set to “off”, the connection will not fail, allowing the utility to start and wait indefinetely for the Varnish instance to appear. Defaults to 5 seconds.</p> </dd> <dt><kbd><span class="option">-T <var><seconds></var></span></kbd></dt> <dd><p>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.</p> </dd> <dt><kbd><span class="option">-u</span></kbd></dt> <dd><p>When writing output to a file with the -w option, output data is not buffered. This option has no effect without the -w option.</p> </dd> <dt><kbd><span class="option">-v</span></kbd></dt> <dd><p>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.</p> </dd> <dt><kbd><span class="option">-V</span></kbd></dt> <dd><p>Print version information and exit.</p> </dd> <dt><kbd><span class="option">-w <var><filename></var></span></kbd></dt> <dd><p>Redirect output to file. The file will be overwritten unless the -a option was specified. If the application receives a SIGHUP in daemon mode the file will be reopened allowing the old one to be rotated away. The file can then be read by varnishlog and other tools with the -r option, unless the -A option was specified. This option is required when running in daemon mode. If the filename is -, varnishlog writes to the standard output and cannot work as a daemon.</p> </dd> <dt><kbd><span class="option">-x <var><taglist></var></span></kbd></dt> <dd><p>Exclude log records of these tags in output. Taglist is a comma-separated list of tag globs. Multiple -x options may be given.</p> </dd> <dt><kbd><span class="option">-X <var><[taglist:]regex></var></span></kbd></dt> <dd><p>Exclude by regex matching. Do not output records matching taglist and regular expression. Applies to any tag if taglist is absent. Multiple -X options may be given.</p> </dd> <dt><kbd><span class="option">--optstring</span></kbd></dt> <dd><p>Print the optstring parameter to <code class="docutils literal notranslate"><span class="pre">getopt(3)</span></code> to help writing wrapper scripts.</p> </dd> </dl> </section> <section id="signals"> <h3>SIGNALS<a class="headerlink" href="#signals" title="Link to this heading">¶</a></h3> <ul> <li><p>SIGHUP</p> <p>Rotate the log file (see -w option) in daemon mode, abort the loop and die gracefully when running in the foreground.</p> </li> <li><p>SIGUSR1</p> <p>Flush any outstanding transactions</p> </li> </ul> </section> <section id="see-also"> <h3>SEE ALSO<a class="headerlink" href="#see-also" title="Link to this heading">¶</a></h3> <ul class="simple"> <li><p><a class="reference internal" href="varnishd.html#varnishd-1"><span class="std std-ref">varnishd</span></a></p></li> <li><p><a class="reference internal" href="varnishhist.html#varnishhist-1"><span class="std std-ref">varnishhist</span></a></p></li> <li><p><a class="reference internal" href="varnishncsa.html#varnishncsa-1"><span class="std std-ref">varnishncsa</span></a></p></li> <li><p><a class="reference internal" href="varnishstat.html#varnishstat-1"><span class="std std-ref">varnishstat</span></a></p></li> <li><p><a class="reference internal" href="varnishtop.html#varnishtop-1"><span class="std std-ref">varnishtop</span></a></p></li> <li><p><a class="reference internal" href="vsl.html#vsl-7"><span class="std std-ref">VSL</span></a></p></li> <li><p><a class="reference internal" href="vsl-query.html#vsl-query-7"><span class="std std-ref">vsl-query</span></a></p></li> </ul> </section> <section id="history"> <h3>HISTORY<a class="headerlink" href="#history" title="Link to this heading">¶</a></h3> <p>The varnishlog utility was developed by Poul-Henning Kamp <<a class="reference external" href="mailto:phk%40phk.freebsd.dk">phk<span>@</span>phk<span>.</span>freebsd<span>.</span>dk</a>> 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.</p> </section> <section id="copyright"> <h3>COPYRIGHT<a class="headerlink" href="#copyright" title="Link to this heading">¶</a></h3> <p>This document is licensed under the same licence as Varnish itself. See LICENCE for details.</p> <ul class="simple"> <li><p>Copyright (c) 2006 Verdens Gang AS</p></li> <li><p>Copyright (c) 2006-2015 Varnish Software AS</p></li> </ul> </section> </section> </section> <div class="clearer"></div> </div> </div> </div> <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> <div class="sphinxsidebarwrapper"> <div> <h3><a href="../index.html">Table of Contents</a></h3> <ul> <li><a class="reference internal" href="#">varnishlog</a><ul> <li><a class="reference internal" href="#display-varnish-logs">Display Varnish logs</a><ul> <li><a class="reference internal" href="#synopsis">SYNOPSIS</a></li> <li><a class="reference internal" href="#options">OPTIONS</a></li> <li><a class="reference internal" href="#signals">SIGNALS</a></li> <li><a class="reference internal" href="#see-also">SEE ALSO</a></li> <li><a class="reference internal" href="#history">HISTORY</a></li> <li><a class="reference internal" href="#copyright">COPYRIGHT</a></li> </ul> </li> </ul> </li> </ul> </div> <div> <h4>Previous topic</h4> <p class="topless"><a href="vsl-query.html" title="previous chapter">vsl-query</a></p> </div> <div> <h4>Next topic</h4> <p class="topless"><a href="varnishncsa.html" title="next chapter">varnishncsa</a></p> </div> <div role="note" aria-label="source link"> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../_sources/reference/varnishlog.rst.txt" rel="nofollow">Show Source</a></li> </ul> </div> <div id="searchbox" style="display: none" role="search"> <h3 id="searchlabel">Quick search</h3> <div class="searchformwrapper"> <form class="search" action="../search.html" method="get"> <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/> <input type="submit" value="Go" /> </form> </div> </div> <script>document.getElementById('searchbox').style.display = "block"</script> </div> </div> <div class="clearer"></div> </div> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="varnishncsa.html" title="varnishncsa" >next</a> |</li> <li class="right" > <a href="vsl-query.html" title="vsl-query" >previous</a> |</li> <li class="nav-item nav-item-0"><a href="../index.html">Varnish version 7.5.0 documentation</a> »</li> <li class="nav-item nav-item-1"><a href="index.html" >The Varnish Reference Manual</a> »</li> <li class="nav-item nav-item-this"><a href="">varnishlog</a></li> </ul> </div> <div class="footer" role="contentinfo"> © Copyright 2010-2014, Varnish Software AS. Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6. </div> </body> </html>