1VARNISHTOP(1)             BSD General Commands Manual            VARNISHTOP(1)
2

NAME

4     varnishtop — Varnish log entry ranking
5

SYNOPSIS

7     varnishtop [-1] [-b] [-C] [-c] [-d] [-f] [-I regex] [-i tag]
8                [-n varnish_name] [-r file] [-V] [-X regex] [-x tag]
9

DESCRIPTION

11     The varnishtop utility reads varnishd(1) shared memory logs and presents
12     a continuously updated list of the most commonly occurring log entries.
13     With suitable filtering using the -I, -i, -X and -x options, it can be
14     used to display a ranking of requested documents, clients, user agents,
15     or any other information which is recorded in the log.
16
17     The following options are available:
18
19     -1          Instead of presenting of a continuously updated display,
20                 print the statistics once and exit.  Implies -d.
21
22     -b          Include log entries which result from communication with a
23                 backend server.  If neither -b nor -c is specified,
24                 varnishtop acts as if they both were.
25
26     -C          Ignore case when matching regular expressions.
27
28     -c          Include log entries which result from communication with a
29                 client.  If neither -b nor -c is specified, varnishtop acts
30                 as if they both were.
31
32     -d          Process old log entries on startup.  Normally, varnishtop
33                 will only process entries which are written to the log after
34                 it starts.
35
36     -f          Sort and group only on the first field of each log entry.
37                 This is useful when displaying e.g.  stataddr entries, where
38                 the first field is the client IP address.
39
40     -I regex    Include log entries which match the specified regular expres‐
41                 sion.  If neither -I nor -i is specified, all log entries are
42                 included.
43
44     -i tag      Include log entries with the specified tag.  If neither -I
45                 nor -i is specified, all log entries are included.
46
47     -n          Specifies the name of the varnishd instance to get logs from.
48                 If -n is not specified, the host name is used.
49
50     -r file     Read log entries from file instead of shared memory.
51
52     -V          Display the version number and exit.
53
54     -X regex    Exclude log entries which match the specified regular expres‐
55                 sion.
56
57     -x tag      Exclude log entries with the specified tag.
58

EXAMPLES

60     The following example displays a continuously updated list of the most
61     frequently requested URLs:
62
63     varnishtop -i RxURL
64
65     The following example displays a continuously updated list of the most
66     commonly used user agents:
67
68     varnishtop -i RxHeader -C -I \^User-Agent
69

SEE ALSO

71     varnishd(1), varnishhist(1), varnishlog(1), varnishncsa(1),
72     varnishstat(1)
73

HISTORY

75     The varnishtop utility was originally developed by Poul-Henning Kamp
76     <phk@phk.freebsd.dk> in cooperation with Verdens Gang AS and Linpro AS,
77     and later substantially rewritten by Dag-Erling Smørgrav <des@linpro.no>.
78     This manual page was written by Dag-Erling Smørgrav <des@linpro.no>.
79
80BSD                              June 28, 2007                             BSD
Impressum