DAEMONLOGGER(8)
π DAEMONLOGGER(8) π
okay bestie, sit DOWN, we're doing a System Manager's Manual page today and it's literally the cutest little packet thing you've ever met π¦
β¨ NAME β¨
daemonlogger β program capture packets from an interface and log or rewrite them π
πΈ SYNOPSIS πΈ
daemonlogger [-c count] [-d] [-f bdf file] [-F] [-g group name] [-i
interface] [-l path] [-m count] [-m count] [-M pct] [-n name] [-o
out interface] [-p pidfile] [-P pidpath] [-r] [-R pcap file] [-s
bytes] [-S snaplen] [-t time] [-u user name] [-T chroot path] [bdf
filter]
(yes the -m count shows up twice in there, no I'm not fixing it, that's just how the page is written, iykyk π
)
π DESCRIPTION π
So this manual page documents briefly the daemonlogger. Just briefly. We're keeping it cute and quick.
This manual page was written for the Debian distribution because the original program does not have a manual page. Not me writing the docs because nobody else would π iconic behavior honestly.
daemonlogger is a simple packet logging and software tapping program that can be run both in foreground or in daemon mode. Two vibes, one binary, we love to see it β¨
daemonlogger can be used in two different (and mutually exclusive) ways. Pick ONE. Not both. They do not share. π«
π Sniffing mode
In this mode, daemonlogger will read (sniff) packets from a network interface and spool them straight to disk. It will automatically roll over the capture file when it reaches a specific size. She's organized, she rotates her files, she's the moment.
π¦ Software tap
In this mode, daemonlogger will read packets from an input interface and rewrite them to a second (output) interface, acting as a software tap. Lowkey a whole relay race but make it packets.
β¨ OPTIONS β¨
You can specify packet filter commands after the command line switches just like in tcpdump or Snort. If no filter is defined it will capture all packets coming to the interface. Everything. The whole buffet. π
A summary of available options is included below.
-hβ Show summary of options. (your little help menu bestie π«Ά)-vβ Show version of program.-c countβ Logcountpackets and exit.-dβ Daemonize at startup.-f bdf fileβ Load the BPF filter to use frombdf file.-Fβ Flush the pcap buffer for each packet. As each packet is saved, it will be written to the output file rather than being written only when the output buffer fills. No waiting around, she writes it IMMEDIATELY π-g group nameβ Set the group ID of the process running the program togroup name.-i interfaceβ Grab packets from the interfaceinterface.-l pathβ Log all the pcap log files to directorypath.-m countβ Generatecountlog files and exit. If using Ringbufer mode then write files and delete the oldest file in the set when you exceed log files written. The program will not exit when in this mode. β οΈ (also "Ringbufer" is spelled exactly like that on the page, don't come for me π)-M pctβ Used in concert with the-rringbuffer switch this option will write log files to the disk until it is atpctutilization and then roll over and delete the oldest log file. For example,"-M 90"would write files to the disk until it is 90% utilized and then roll over and delete the oldest file in the logging directory. If the-s"size"switch is not set then the default log file size is2GB.-n nameβ Set output filename prefix toname. The default isdaemonlogger.pcap.-o out interfaceβ Act as a software tap: disable logging and retransmit all data frominterfacetoout interface.-p pidfileβ When running in daemon mode, usepidfilefor the name of the PID file created. The default isdaemonlogger.pid.-P pidpathβ When running in daemon mode, usepidpathas the directory where PID files will be created. The default is/var/run.-rβ Activate ringbuffer mode. π-R pcap fileβ Read packets frompcap fileinstead of using an input interface.-s bytesβ Rollover the log file everybytesbytes. By default the rollover occurs every2 GB. The parameterbytescan be appended with"k"(for KiloBytes),"m"(for MegaBytes),"g"(for Gigabytes) and"t"(for TeraBytes).-S snaplenβ Capturesnaplenbytes per packet. If not defined, all the contents of the packets will be captured (which is equivalent to settingsnaplento65535bytes.-t timeβ Rollover the log file on specific time intervals. The time interval can be appended with"m"(for minutes),"h"(for hours) or"d"(for days). If no interval selector is used then the default rollover interval is in seconds. For example,"-t 60"rolls the log file over every 60 seconds and"-t 2h"rolls the log file over every two hours at the top of the hour. In the case of minute/hour/day-based rollovers, the will round to the next highest hour. For example, if the program is told to rollover every 2 hours and is started 38 minutes into the current hour it will add 2 to the current hour and rollover as scheduled at the top of the hour at + 2. If the program was started at13:38it would roll over the logfile at15:00. β°-u user nameβ When daemonized, the process' user ID will be set touser name.-T chroot pathβ Chroot directory tochroot path.-zβ Select log file pruning behavior. Omitting this switch results in the default mode being used where the oldest log file in the logging directory is pruned. Setting the-zswitch changes the behavior so thatdaemonloggerwill prune the oldest file from its current instantiation and leave files from older runs in the same logging directory alone. (basically:-zmeans "only my files, not the ghosts of runs past" π»)
π SEE ALSO π
tcpdump (8).
π AUTHOR π
This manual page was written by Javier Fernandez-Sanguino Pen~a jfs@debian.org for the Debian system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
and that's the whole page bestie!! π«Ά it's a System Manager's Manual situation, it lives under the DAEMONLOGGER(8) banner top and bottom, and that closing DAEMONLOGGER(8) footer is literally just the page signing its own name like the main character she is. go sniff some packets, slay, and remember: mutual exclusivity is real, pick your mode wisely πβ¨
π¦ where this page comes from
- debian trixie: daemonlogger 1.2.2-1
- ubuntu questing: daemonlogger 1.2.2-1
- ubuntu resolute: daemonlogger 1.2.2-1build1
- ubuntu stonking: daemonlogger 1.2.2-1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms