2
.\" Copyright (c) 2006 Verdens Gang AS
3
.\" Copyright (c) 2006-2009 Linpro AS
4
.\" All rights reserved.
6
.\" Author: Dag-Erling Smørgrav <des@des.no>
8
.\" Redistribution and use in source and binary forms, with or without
9
.\" modification, are permitted provided that the following conditions
11
.\" 1. Redistributions of source code must retain the above copyright
12
.\" notice, this list of conditions and the following disclaimer.
13
.\" 2. Redistributions in binary form must reproduce the above copyright
14
.\" notice, this list of conditions and the following disclaimer in the
15
.\" documentation and/or other materials provided with the distribution.
17
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20
.\" ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
21
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29
.\" $Id: varnishlog.1 4107 2009-06-17 05:20:34Z ssm $
36
.Nd Display Varnish logs
48
.Op Fl n Ar varnish_name
62
utility reads and presents
66
The following options are available:
69
When writing to a file, append to it rather than overwrite it.
71
Include log entries which result from communication with a backend
79
acts as if they both were.
81
Ignore case when matching regular expressions.
83
Include log entries which result from communication with a client.
90
acts as if they both were.
94
Process old log entries on startup.
97
will only process entries which are written to the log after it
100
Include log entries which match the specified regular expression.
105
is specified, all log entries are included.
107
Include log entries with the specified tag.
112
is specified, all log entries are included.
118
Specifies the name of the
120
instance to get logs from.
123
is not specified, the host name is used.
125
Group log entries by request ID.
126
This has no effect when writing to a file using the
130
Write the process's PID to the specified
133
Read log entries from
135
instead of shared memory.
143
Display the version number and exit.
147
instead of displaying them.
148
The file will be overwritten unless the
150
option was specified.
156
while writing to a file, it will reopen the file, allowing the old one
159
Exclude log entries which match the specified regular expression.
161
Exclude log entries with the specified tag.
166
option was specified, an additional
170
may be specified to select only requests which generated a log entry
173
whose contents match the given
176
The following log entry tags are currently defined:
177
.\" keep in sync with include/shmlog_tags.h
178
.\" XXX add descriptions
232
The following command line simply copies all log entries to a log
234
.Bd -literal -offset 4n
235
$ varnishlog \-w /var/log/varnish.log
238
The following command line reads that same log file and displays
239
requests for the front page:
240
.Bd -literal -offset 4n
241
$ varnishlog \-r /var/log/varnish.log \-c \-o RxURL '^/$'
252
utility was developed by
253
.An Poul-Henning Kamp Aq phk@phk.freebsd.dk
254
in cooperation with Verdens Gang AS and Linpro AS.
255
This manual page was written by
256
.An Dag-Erling Sm\(/orgrav Aq des@des.no .