1VARNISHSTAT(1)                                                  VARNISHSTAT(1)
2
3
4

NAME

6       varnishstat - Varnish Cache statistics
7

SYNOPSIS

9       varnishstat  [-1]  [-f  <glob>]  [-h]  [-j]  [-l]  [-n <dir>] [-t <sec‐
10       onds|off>] [-V] [-x]
11

DESCRIPTION

13       The varnishstat utility displays statistics from a running  varnishd(1)
14       instance.
15
16       The following options are available:
17
18       -1     Instead  of presenting a continuously updated display, print the
19              statistics to stdout.
20
21       -f <glob>
22              Field inclusion glob. Use backslash to escape characters. If the
23              argument starts with '^' it is used as an exclusive glob. Multi‐
24              ple -f arguments may be given. Inclusive globs are  accumulative
25              and are run before exclusive ones.
26
27       -h     Print program usage and exit
28
29       -j     Print statistics to stdout as JSON.
30
31       -l     Lists the available fields to use with the -f option.
32
33       -n <dir>
34              Specify  the  varnishd working directory (also known as instance
35              name) to get logs from. If -n is not specified, the host name is
36              used.
37
38       -t <seconds|off>
39              Timeout before returning error on initial VSM connection. If set
40              the VSM connection is retried every 0.5 seconds  for  this  many
41              seconds.  If zero the connection is attempted only once and will
42              fail immediately if unsuccessful. If set to "off",  the  connec‐
43              tion will not fail, allowing the utility to start and wait inde‐
44              finetely for the Varnish instance to appear.  Defaults to 5 sec‐
45              onds.
46
47       -V     Print version information and exit.
48
49       -x     Print statistics to stdout as XML.
50
51       --optstring
52              Print the optstring parameter to getopt(3) to help writing wrap‐
53              per scripts.
54

CURSES MODE

56       When neither -1, -j or -x options are given, the application starts  up
57       in  curses  mode. This shows a continuously updated view of the counter
58       values, along with their description.
59
60       The top area shows process uptime information.
61
62       The center area shows a list of counter values.
63
64       The bottom  area  shows  the  description  of  the  currently  selected
65       counter.
66
67   Columns
68       The following columns are displayed, from left to right:
69
70       Name   The name of the counter
71
72       Current
73              The current value of the counter.
74
75       Change The average per second change over the last update interval.
76
77       Average
78              The  average  value of this counter over the runtime of the Var‐
79              nish daemon, or a period if the counter can't be averaged.
80
81       Avg_10 The moving average over the last 10 update intervals.
82
83       Avg_100
84              The moving average over the last 100 update intervals.
85
86       Avg_1000
87              The moving average over the last 1000 update intervals.
88
89   Key bindings
90       The following keys control the interactive display:
91
92       <UP>   Navigate the counter list one line up.
93
94       <DOWN> Navigate the counter list one line down.
95
96       <PAGEUP> or <b>
97              Navigate the counter list one page up.
98
99       <PAGEDOWN> or <SPACE>
100              Navigate the counter list one page down.
101
102       <d>    Toggle between showing and hiding unseen counters. Unseen  coun‐
103              ters are those that has been zero for the entire runtime of var‐
104              nishstat. Defaults to hide unseen counters.
105
106       <e>    Toggle scaling of values.
107
108       <g>    Go to the top of the counter list.
109
110       <G>    Go to the bottom of the counter list.
111
112       <v>    Cycle through the verbosity levels.  Defaults  to  only  showing
113              informational counters.
114
115       <q>    Quit.
116
117       <CTRL+T>
118              Sample now.
119

OUTPUTS

121       The XML output format is:
122
123          <varnishstat timestamp="YYYY-MM-DDTHH:mm:SS">
124            <stat>
125              <name>FIELD NAME</name>
126              <value>FIELD VALUE</value>
127              <flag>FIELD SEMANTICS</flag>
128              <format>FIELD DISPLAY FORMAT</format>
129              <description>FIELD DESCRIPTION</description>
130            </stat>
131            [..]
132          </varnishstat>
133
134       The JSON output format is:
135
136          {
137            "timestamp": "YYYY-MM-DDTHH:mm:SS",
138            "FIELD NAME": {
139              "description": "FIELD DESCRIPTION",
140              "flag": "FIELD SEMANTICS", "format": "FIELD DISPLAY FORMAT",
141              "value": FIELD VALUE
142            },
143            "FIELD NAME": {
144              "description": "FIELD DESCRIPTION",
145              "flag": "FIELD SEMANTICS", "format": "FIELD DISPLAY FORMAT",
146              "value": FIELD VALUE
147            },
148            [..]
149          }
150
151       Timestamp is the time when the report was generated by varnishstat.
152

SEE ALSO

154       · varnishd(1)
155
156       · varnishhist(1)
157
158       · varnishlog(1)
159
160       · varnishncsa(1)
161
162       · varnishtop(1)
163
164       · curses(3)
165
166       · varnish-counters(7)
167

AUTHORS

169       This  manual  page  was written by Dag-Erling Smørgrav, Per Buer, Lasse
170       Karstensen and Martin Blix Grydeland.
171
172
173
174
175                                                                VARNISHSTAT(1)
Impressum