PENLOGD(1)
π PENLOGD β the manual page, but make it a group chat π
okay bestie, sit down, hydrate, and let me tell you about penlogd from the General Commands Manual (section 1, LOCAL edition, obviously). it's giving log-consolidation royalty. π
β¨ NAME β¨
penlogd β consolidate web server logs π«Ά
β¨ SYNOPSIS β¨
penlogd [-fd] [-j dir] [-l logfile] [-n N] [-p pidfile] [-u user] port
β¨ EXAMPLE β¨
penlogd -l /var/log/access_log -p /var/run/penlogd.pid 10000
β¨ DESCRIPTION β¨
so penlogd receives log entries from Pen and from each of the web servers. iconic behaviour, honestly.
then it consolidates those entries by replacing the source addresses in each entry with the "real" client address, and writes the result to stdout or to the file you gave it on the command line. the way that this completely removes the need for postprocessing with mergelogs because the logs are already merged?? chef's kiss. no cap. π₯
π heads up bestie: Pen must be instructed to send its log topenlogd. see HOWTO and thepenman page for the details. iykyk.
π¦ signals, aka vibe checks π¦
sending penlogd a HUP signal will make it close and reopen the logfile, unless it's logging to stdout. (if it's logging to stdout, it just... doesn't. respect the stdout lifestyle. π)
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. a peaceful departure. main character exit. β¨
β¨ OPTIONS β¨
-dβ Turn on debugging. the output goes to stderr if we're running in the foreground (peep-f) and to syslog (facilityuser, prioritydebug) otherwise. π-fβ Stay in foreground. don't go anywhere, bestie. π«Ά-jdirβ Run in a chroot environment. π-llogfileβ Write output intologfile. π-nNβ Number of pen log entries to cache (default1000). π§Ί-ppidfileβ Write process id intopidfile. π-uuserβ Run as a different user. πportβ The UDP port wherepenlogdreceives log entries. π‘
β¨ SEE ALSO β¨
go read those too, they're all in the same friend group. πΈ
β¨ AUTHOR β¨
Copyright (C) 2002-2015 Ulric Eriksson, <ulric@siag.nu>. π
okay that's the whole page, you ate it, you're literally a Unix girlie now β
this lil' cutie came from the LOCAL manual set, section 1 β PENLOGD(1) β and no date is listed on it, because it's timeless, periodt. π bye bestie!! ππ¦β¨
π¦ where this page comes from
- debian bookworm: pen 0.34.1-2+b1
- debian trixie: pen 0.34.1-3
- ubuntu jammy: pen 0.34.1-2build1
- ubuntu noble: pen 0.34.1-2build3
- ubuntu questing: pen 0.34.1-3
- ubuntu resolute: pen 0.34.1-3build1
- ubuntu stonking: pen 0.34.1-4build1 Β· GPL-2.0-or-later WITH OpenSSL exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms