QSLOGGER(1)

πŸ“¦
version 11.74 Β· 2 versions
, in epel 9, ubuntu noble

πŸ’– qslogger(1) β€” bestie edition πŸ’–

okay so welcome to the qslogger page, it's one of the mod_qos utilities and honestly it's giving "tiny tool, big main character energy". let's get into it 🫢


✨ NAME ✨

qslogger β€” another shell command interface to the system log module (syslog). yeah, "another" one. she said there's room for more than one icon πŸ’…


✨ SYNOPSIS ✨

qslogger [-t <tag>] [-f <facility>] [-l <level>] [-x <prefix>] [-r
<expression>] [-d <level>] [-u <name>] [-p]

✨ DESCRIPTION ✨

so basically, bestie, you use this utility to forward log messages to the system's syslog facility β€” like, say, forwarding them over to a remote host. it reads its data from stdin, so you pipe stuff into it and she takes it from there. no cap. 🌸


✨ OPTIONS ✨

  • -t <tag> β€” sets the tag name that defines the origin of the messages, e.g. 'httpd'. it's literally the name tag of your log lines πŸŽ€
  • -f <facility> β€” sets the syslog facility. default is 'daemon'. pick your lane ✨
  • -u <name> β€” becomes another user, e.g. www-data. yes she can do a little identity switch, periodt πŸ‘‘
  • -l <level> β€” sets the minimal severity a message must have in order to be forwarded. default is 'DEBUG', which means forwarding everything (she's not picky, she's inclusive πŸ’–).
  • -x <prefix> β€” lets you add a prefix (a literal string) to every single message. a lil signature on every line πŸŽ€
  • -r <expression> β€” specifies a regular expression used to determine the severity (syslog level) for each log line. the default pattern '^\[[0-9a-zA-Z :]+\] \[([a-z]+)\] ' works for Apache error log messages, but you can configure your own pattern matching other log formats. use brackets to define the pattern enclosing the severity string. and if the severity can't be determined, the default level comes from the '-d' option (see below, bestie, keep reading πŸ‘‡).
  • -d <level> β€” the default severity when the pattern from -r doesn't match and the message's severity can't be figured out. default is 'NOTICE'. the fallback queen 🌈
  • -p β€” writes data also to stdout (for piped logging). double-dipping, but make it logging πŸ’…

✨ EXAMPLE ✨

ErrorLog "|/usr/bin/qslogger -t apache -f local7"

look at her go 😭 she's being piped straight into from Apache and she ate πŸ”₯


✨ SEE ALSO ✨

qsdt(1), qsexec(1), qsfilter2(1), qsgeo(1), qsgrep(1), qshead(1), qslog(1), qspng(1), qsre(1), qsrespeed(1), qsrotate(1), qssign(1), qstail(1)

the whole friend group πŸ¦‹ go say hi to all of them


✨ AUTHOR ✨

Pascal Buchbinder, http://mod-qos.sourceforge.net/ β€” thank you for this icon, we're obsessed 🫢


and that's the page!! mod_qos utilities 11.74, May 2023 β€” that's the version and the date, bestie, written down so you never forget. slay, bye πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from