varnishtop - Varnish log entry ranking
varnishtop [-1] [-b] [-c] [-C] [-d] [-f] [-g <session|request|vxid|raw>] [-h] [-i <taglist>] [-I <[taglist:]regex>] [-L <limit>] [-n <name>] [-N <filename>] [-p <period>] [-q <query>] [-r <filename>] [-t <seconds|off>] [-T <seconds>] [-x <taglist>] [-X <[taglist:]regex>] [-V]
The varnishtop utility reads varnishd(1) shared memory logs and presents a continuously updated list of the most commonly occurring log entries. With suitable filtering using the -I, -i, -X and -x 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. The following options are available: -1 Instead of a continuously updated display, print the statistics once and exit. Implies -d. -b Only display transactions and log records coming from backend communication. -c Only display transactions and log records coming from client communication. -C Do all regular expression and string matching caseless. -d Process log records at the head of the log and exit. -f Sort and group only on the first field of each log entry. This is useful when displaying e.g. stataddr entries, where the first field is the client IP address. -g <session|request|vxid|raw> The grouping of the log records. The default is to group by vxid. -h Print program usage and exit -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. If a tag include option is the first of any tag selection options, all tags are first marked excluded. -I <[taglist:]regex> Include by regex matching. Output only records matching taglist and regular expression. Applies to any tag if taglist is absent. If a tag include option is the first of any tag selection options, all tags are first marked excluded. -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. -n <name> Specify the name of the varnishd instance to get logs from. If -n is not specified, the host name is used. -N <filename> Specify the filename of a stale VSM instance. When using this option the abandonment checking is disabled. -p <period> 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. -q <query> Specifies the VSL query to use. -r <filename> Read log in binary file format from this file. The file can be created with varnishlog -w filename. -t <seconds|off> 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. -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. -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. -X <[taglist:]regex> Exclude by regex matching. Do not output records matching taglist and regular expression. Applies to any tag if taglist is absent. -V Print version information and exit.
The following example displays a continuously updated list of the most
frequently requested URLs:
varnishtop -i ReqURL
The following example displays a continuously updated list of the most
commonly used user agents:
varnishtop -C -I ReqHeader:User-Agent
* varnishd(1) * varnishhist(1) * varnishlog(1) * varnishncsa(1) * varnishstat(1)
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 Smrgrav. This manual page was written by Dag-Erling Smrgrav, and later updated by Martin Blix Grydeland.
This document is licensed under the same licence as Varnish itself. See
LICENCE for details.
* Copyright (c) 2006 Verdens Gang AS
* Copyright (c) 2006-2015 Varnish Software AS
VARNISHTOP(1)
Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.
Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.
Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.
Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.
The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.
Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.
Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.
Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.