-
Notifications
You must be signed in to change notification settings - Fork 41
/
penlogd.1
67 lines (55 loc) · 1.61 KB
/
penlogd.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
.TH PENLOGD 1 LOCAL
.SH NAME
penlogd - consolidate web server logs
.SH SYNOPSIS
.B penlogd
[-fd] [-j dir] [-l logfile] [-n N] [-p pidfile] [-u user] port
.SH EXAMPLE
penlogd -l /var/log/access_log -p /var/run/penlogd.pid 10000
.SH DESCRIPTION
.I Penlogd
receives log entries from Pen and from each of the web servers. It
consolidates the entries by replacing the source addresses in each entry
with the "real" client address and writes the result to stdout or to
the file given on the command line.
This completely removes the need for postprocessing with mergelogs,
since the logs are already merged.
Pen must be instructed to send its log to penlogd. See HOWTO and pen man page
for details.
Sending penlogd a HUP signal will make it close and reopen the logfile, unless
it is logging to stdout. Rotate the log like this:
mv access_log access_log.1
kill -HUP `cat <pidfile>`
where <pidfile> is the file containing pen's process id.
Sending penlogd a TERM signal will make it close the log file and exit cleanly.
.SH OPTIONS
.TP
-d
Turn on debugging. The output goes to stderr if we are running in the
foreground (see -f) and to syslog (facility user, priority debug)
otherwise.
.TP
-f
Stay in foreground.
.TP
-j \fIdir\fR
Run in a chroot environment.
.TP
-l \fIlogfile\fR
Write output into logfile.
.TP
-n \fIN\fR
Number of pen log entries to cache (default 1000).
.TP
-p \fIpidfile\fR
Write process id into pidfile.
.TP
-u \fIuser\fR
Run as a different user.
.TP
port
The UDP port where penlogd receives log entries.
.SH SEE ALSO
pen(1), penlog(1), webresolve(1)
.SH AUTHOR
Copyright (C) 2002-2015 Ulric Eriksson, <ulric@siag.nu>.