Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
VARNISHTOP(1)		     General Commands Manual		   VARNISHTOP(1)

NAME
     varnishtop - Varnish log entry ranking

SYNOPSIS
     varnishtop   [-1]	 [-b]	[-c]   [-C]  [-d]  [-E]  [-f]  [-g  <session|re-
     quest|vxid|raw>] [-h] [-i <taglist>] [-I  <[taglist:]regex>]  [-L	<limit>]
     [-n  <workdir>]  [-p <period>] [-Q <file>] [-q <query>] [-r <filename>] [-t
     <seconds|off>] [-T <seconds>] [-x <taglist>] [-X <[taglist:]regex>] [-V]

DESCRIPTION
     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 commu-
	    nication.

     -c     Only  display transactions and log records coming from client commu-
	    nication.

     -C     Do all regular expression and string matching caseless.

     -d     Process log records at the head of the log.

     -E     Display ESI transactions and other types of sub-requests.  This  im-
	    plies the -c option and includes other client transactions.

     -f     Sort  and  group  only on the first field of each log entry. For log
	    entries in the form prefix: value it is the prefix without the colon
	    that is sorted and grouped. This is useful when displaying e.g.  Re-
	    qStart 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-sep-
	    arated 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. Multi-
	    ple -I options may be given.

	    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 old-
	    est  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 <workdir>
	    Specify  the varnish working directory of the instance to attach to.
	    See varnishd(1) -n option documentation for  additional  information
	    and defaults.

     -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  re-
	    quests  seen  over this time period. This option has no effect if -1
	    option is also used.

     -Q <file>
	    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.

     -q <query>
	    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.

     -r <filename>
	    Read  log in binary file format from this file. The file can be cre-
	    ated with varnishlog -w filename. If the filename  is  -,  logs  are
	    read from the standard input. and cannot work as a daemon.

     -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  immedi-
	    ately  if  unsuccessful.  If  set  to "off", the connection will not
	    fail, allowing the utility to start and wait  indefinitely	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 trans-
	    action is force completed. Defaults to 120 seconds.

     -x <taglist>
	    Exclude log records of these tags in output. Taglist is a comma-sep-
	    arated 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.
	    Multiple -X options may be given.

     -V     Print version information and exit.

     --optstring
	    Print the optstring parameter to getopt(3) to help	writing  wrapper
	    scripts.

EXAMPLES
     The following example displays a continuously updated list of the most fre-
     quently requested URLs:

	varnishtop -i ReqURL

     The following example displays a continuously updated list of the most com-
     monly used user agents:

	varnishtop -C -I ReqHeader:User-Agent

SEE ALSO
     * varnishd(1)

     * varnishhist(1)

     * varnishlog(1)

     * varnishncsa(1)

     * varnishstat(1)

HISTORY
     The varnishtop utility was originally developed by Poul-Henning Kamp in co-
     operation	with Verdens Gang AS and Varnish Software AS, and later substan-
     tially rewritten by Dag-Erling SmA,rgrav.	This manual page was written  by
     Dag-Erling SmA,rgrav, and later updated by Martin Blix Grydeland.

COPYRIGHT
     This document is licensed under the same licence as Varnish itself. See LI-
     CENCE for details.

     * Copyright (c) 2006 Verdens Gang AS

     * Copyright (c) 2006-2015 Varnish Software AS

								   VARNISHTOP(1)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=varnishtop&sektion=1&manpath=FreeBSD+Ports+15.1.quarterly>

home | help