supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: "Laurent Bercot" <ska-supervision@skarnet.org>
To: supervision@list.skarnet.org
Subject: Re: What extra logging utilities are needed with s6?
Date: Wed, 20 Jan 2021 09:15:37 +0000	[thread overview]
Message-ID: <em6917059d-ff48-4679-8560-c66138f61364@elzian> (raw)
In-Reply-To: <fa104e06-8f44-1137-64f3-c6021f31cf60@rlwinm.de>

>If all your services support logging to stdout/stderr you can get away without a syslog service. Instead of a single logging service consuming logs from all other services s6 is designed to connect each long running service with its own tiny dedicated logging service.

  To add to this: it is likely that you *still* need a kind of syslogd,
because chances are that not all daemons on your systems have been
patched/configured/... to write to stderr instead of using syslog().
So, just in case, you should probably have a syslogd running, to
catch everything that still uses syslog() - and potentially help you
reconfigure the relevant daemons to use stderr instead. When there
is nothing left in your syslogd output, you can remove the syslogd
service.

  The stock syslogd from your distribution will do just fine.

  Optional, advanced stuff if you'd rather use something more
s6-idiomatic than your stock syslogd: download socklog.
  http://smarden.org/socklog/

  socklog's documentation says it was made to work with runit, but it
will work with s6 as well. What it does is listen to the /dev/log
socket, convert the syslog priority to text, and just send the log
message to its stdout. So you can process that output via s6-log just
like you would with any other service running under s6, and have it
stored and automatically rotated just like any other service, without
the need for logrotate.

--
  Laurent


      reply	other threads:[~2021-01-20  9:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-20  6:56 Kian Kasad
2021-01-20  8:21 ` Crest
2021-01-20  9:15   ` Laurent Bercot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=em6917059d-ff48-4679-8560-c66138f61364@elzian \
    --to=ska-supervision@skarnet.org \
    --cc=supervision@list.skarnet.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).