⚝
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 :
varnishtop.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>varnishtop — 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="varnish-counters" href="varnish-counters.html" /> <link rel="prev" title="varnishhist" href="varnishhist.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="varnish-counters.html" title="varnish-counters" accesskey="N">next</a> |</li> <li class="right" > <a href="varnishhist.html" title="varnishhist" 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="">varnishtop</a></li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <section id="varnishtop"> <span id="varnishtop-1"></span><h1>varnishtop<a class="headerlink" href="#varnishtop" title="Link to this heading">¶</a></h1> <section id="varnish-log-entry-ranking"> <h2>Varnish log entry ranking<a class="headerlink" href="#varnish-log-entry-ranking" 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>varnishtop [-1] [-b] [-c] [-C] [-d] [-E] [-f] [-g <session|request|vxid|raw>] [-h] [-i <taglist>] [-I <[taglist:]regex>] [-L <limit>] [-n <dir>] [-p <period>] [-Q <file>] [-q <query>] [-r <filename>] [-t <seconds|off>] [-T <seconds>] [-x <taglist>] [-X <[taglist:]regex>] [-V]</p> </section> <section id="description"> <h3>DESCRIPTION<a class="headerlink" href="#description" title="Link to this heading">¶</a></h3> <p>The varnishtop utility reads <a class="reference internal" href="varnishd.html#varnishd-1"><span class="std std-ref">varnishd</span></a> shared memory logs and presents a continuously updated list of the most commonly occurring log entries. With suitable filtering using the <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> and <code class="docutils literal notranslate"><span class="pre">-x</span></code> options, it can be used to display a ranking of requested documents, clients, user agents, or any other information which is recorded in the log.</p> <p>The following options are available:</p> <dl class="option-list"> <dt><kbd><span class="option">-1</span></kbd></dt> <dd><p>Instead of a continuously updated display, print the statistics once and exit. Implies <code class="docutils literal notranslate"><span class="pre">-d</span></code>.</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.</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">-f</span></kbd></dt> <dd><p>Sort and group only on the first field of each log entry. For log entries in the form <code class="docutils literal notranslate"><span class="pre">prefix:</span> <span class="pre">value</span></code> it is the prefix without the colon that is sorted and grouped. This is useful when displaying e.g. ReqStart entries, where the first field is the client IP address.</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">-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><period></var></span></kbd></dt> <dd><p>Specified the number of seconds to measure over, the default is 60 seconds. The first number in the list is the average number of requests seen over this time period. This option has no effect if -1 option is also used.</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">-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">-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">-V</span></kbd></dt> <dd><p>Print version information and exit.</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="examples"> <h3>EXAMPLES<a class="headerlink" href="#examples" title="Link to this heading">¶</a></h3> <p>The following example displays a continuously updated list of the most frequently requested URLs:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">varnishtop</span> <span class="o">-</span><span class="n">i</span> <span class="n">ReqURL</span> </pre></div> </div> <p>The following example displays a continuously updated list of the most commonly used user agents:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">varnishtop</span> <span class="o">-</span><span class="n">C</span> <span class="o">-</span><span class="n">I</span> <span class="n">ReqHeader</span><span class="p">:</span><span class="n">User</span><span class="o">-</span><span class="n">Agent</span> </pre></div> </div> </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="varnishlog.html#varnishlog-1"><span class="std std-ref">varnishlog</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> </ul> </section> <section id="history"> <h3>HISTORY<a class="headerlink" href="#history" title="Link to this heading">¶</a></h3> <p>The varnishtop utility was originally developed by Poul-Henning Kamp in cooperation with Verdens Gang AS and Varnish Software AS, and later substantially rewritten by Dag-Erling Smørgrav. This manual page was written by Dag-Erling Smørgrav, and later updated by 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="#">varnishtop</a><ul> <li><a class="reference internal" href="#varnish-log-entry-ranking">Varnish log entry ranking</a><ul> <li><a class="reference internal" href="#synopsis">SYNOPSIS</a></li> <li><a class="reference internal" href="#description">DESCRIPTION</a></li> <li><a class="reference internal" href="#examples">EXAMPLES</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="varnishhist.html" title="previous chapter">varnishhist</a></p> </div> <div> <h4>Next topic</h4> <p class="topless"><a href="varnish-counters.html" title="next chapter">varnish-counters</a></p> </div> <div role="note" aria-label="source link"> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../_sources/reference/varnishtop.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="varnish-counters.html" title="varnish-counters" >next</a> |</li> <li class="right" > <a href="varnishhist.html" title="varnishhist" >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="">varnishtop</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>