5
-------------------------
6
Varnish log entry ranking
7
-------------------------
9
:Author: Dag-Erling Smørgrav
19
varnishtop [-1] [-b] [-C] [-c] [-d] [-f] [-I regex]
20
[-i tag] [-n varnish_name] [-r file] [-V] [-X regex]
26
The varnishtop utility reads varnishd(1) shared memory logs and
27
presents a continuously updated list of the most commonly occurring
28
log entries. With suitable filtering using the -I, -i, -X and -x
29
options, it can be used to display a ranking of requested documents,
30
clients, user agents, or any other information which is recorded in
33
The following options are available:
35
-1 Instead of presenting of a continuously updated display,
36
print the statistics once and exit. Implies -d.
38
-b Include log entries which result from communication
39
with a backend server. If neither -b nor -c is
40
specified, varnishtop acts as if they both were.
42
-C Ignore case when matching regular expressions.
44
-c Include log entries which result from communication
45
with a client. If neither -b nor -c is specified,
46
varnishtop acts as if they both were.
48
-d Process old log entries on startup. Normally, varnishtop
49
will only process entries which are written to the log
52
-f Sort and group only on the first field of each log entry.
53
This is useful when displaying e.g. stataddr entries,
54
where the first field is the client IP address.
56
-I regex Include log entries which match the specified regular
57
expression. If neither -I nor -i is specified, all log
60
-i tag Include log entries with the specified tag. If neither -I
61
nor -i is specified, all log entries are included.
63
-n Specifies the name of the varnishd instance to get logs from.
64
If -n is not specified, the host name is used.
66
-r file Read log entries from file instead of shared memory.
68
-V Display the version number and exit.
70
-X regex Exclude log entries which match the specified regular expression.
72
-x tag Exclude log entries with the specified tag.
77
The following example displays a continuously updated list of the most
78
frequently requested URLs:::
82
The following example displays a continuously updated list of the most
83
commonly used user agents:::
85
varnishtop -i RxHeader -C -I ^User-Agent
99
The varnishtop utility was originally developed by Poul-Henning Kamp
100
in cooperation with Verdens Gang AS and Linpro AS, and later
101
substantially rewritten by Dag-Erling Smørgrav. This manual page was
102
written by Dag-Erling Smørgrav.
107
This document is licensed under the same licence as Varnish
108
itself. See LICENCE for details.
110
* Copyright (c) 2006 Verdens Gang AS
111
* Copyright (c) 2006-2008 Linpro AS
112
* Copyright (c) 2008-2010 Redpill Linpro AS
113
* Copyright (c) 2010 Varnish Software AS