metalog(8)

πŸ“¦
this version Β· 2 versions
, in alpine 3.24, arch rolling, ubuntu stonking

πŸ’– metalog(8) β€” the syslog daemon that actually gets you πŸ’–

okay bestie, sit down, hydrate, because we're talking about metalog, aka an alternative syslog daemon, and she is the moment. yes this is section 8 of the manual, yes it's a daemon, no it's not boring, i promise.


✨ NAME ✨

metalog β€” an alternative syslog daemon πŸ¦‹


✨ SYNTAX ✨

metalog [options]

that's it. that's the whole summoning ritual. no cap.


✨ DESCRIPTION ✨

so Metalog is a modern replacement for syslogd and klogd and honestly? she ate. the whole vibe is that every logged message can be dispatched based on its facility, its urgency, the program name, and/or Perl-compatible regular expressions. like, you can sort your logs by literally any criteria you can dream up. iconic behavior.

log files? they can be automatically rotated when they get too big or too old. no more manually babysitting them at 3am. 😭

and here's the fun part β€” external shell scripts (think: mail, or whatever chaos you script) can be launched when specific patterns are found. your logs can literally trigger other things. main character energy fr fr.

Logs are written according to RFC3164, RFC5423, or a minimal format with optional severity levels. pick your aesthetic, bestie. ✨

she can also send her logs to remote syslog servers via UDP 🌈. and she can gather info from the kernel or /dev/log, plus from several Unix Domain Sockets β€” which means chrooted and containerized apps can log to her too. inclusivity queen πŸ’….

tl;dr on why you should care: Metalog is easier to configure than syslogd and syslog-ng, accepts an unlimited number of rules, and has (switchable) memory bufferisation for maximal performance. she's low maintenance and high performance. the dream.


✨ OPTIONS ✨

here come the flags, bestie. every single one. don't skip, i'll know. πŸ‘€

  • -a, --async β€” glow up your performance by using buffers. ⚠️ bug: log files won't get updated in real time (yes that's how it's written in the manual, and yes, it means exactly what you think it means β€” buffering delay, bestie). can be overridden for individual logs.
  • -B, --daemonize β€” have the server start in the background (daemonization). she's independent, she doesn't need you hovering. πŸ’…
  • -c, --consolelevel=0..7 β€” set the console log level. note: Linux only 🐧.
  • -C, --configfile=file β€” use an alternate configuration file. go off, be different.
  • -g, --group=group β€” change the GID of the metalog process. any files she creates will be owned by this group. 🫢
  • -h, --help β€” output help information and exit. the classic "hey what do i do" move.
  • -N, --no-kernel β€” do not attempt to log messages from the kernel. sometimes you just don't wanna hear from kernel, and that's valid.
  • -p, --pidfile=file β€” use an alternate file to store the process number. πŸŽ€
  • -S, --socket=path β€” use an alternate socket path for the main syslog listener.
  • -s, --sync, --synchronous β€” start in synchronous mode, with no bufferization. can be overridden for individual logs.
  • -t, --test-config β€” exit after parsing the config file(s). returns 0 if config is ok. this is the vibe check for your config file, and she passes or she doesn't. ✨
  • -v, --verbose β€” run in verbose mode (useful for debugging behavior).
  • -V, --version β€” display metalog version information.

✨ SIGNALS ✨

she listens to you, bestie. send these and watch her move:

  • SIGUSR1 β€” enable synchronous mode. 🟒
  • SIGUSR2 β€” disable synchronous mode. πŸ”΄

✨ FILES ✨

⚠️ heads up: the exact paths depend on the build settings. these are the standard paths.
  • /etc/metalog.conf
  • /var/run/metalog.pid
  • /dev/log

✨ AUTHORS ✨

the girlies (and guys) behind the girl πŸ’– β€” give them their flowers:

  • Mike Frysinger <vapier@gentoo.org>
  • Laurent Wandrebeck (low) <wandre.l@free.fr>
  • Leo Lipelis <aeoo@gentoo.org>
  • Hendrik Visage <hvisage@users.sourceforge.net>
  • Frank DENIS (Jedi/Sector One) <j@pureftpd.org>

✨ SEE ALSO ✨

  • metalog.conf(5) β€” go read her sister's page, they're a package deal 🌸

and that's the whole page, bestie πŸŽ€ this was metalog(8), the Syslog daemon page β€” written by Frank DENIS, page 4 of the manual, and honestly she's a legend. now go configure something and slay. periodt. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from