supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Joan Picanyol i Puig <lists-supervision@biaix.org>
To: supervision@list.skarnet.org
Subject: Re: multiple log streams
Date: Thu, 2 Apr 2009 11:24:04 +0200	[thread overview]
Message-ID: <20090402092404.GB30096@grummit.biaix.org> (raw)
In-Reply-To: <20090402085726.GC32102@home.power>

* Alex Efros <powerman@powerman.name> [20090402 10:59]:
> Hi!
> 
> On Thu, Apr 02, 2009 at 10:47:42AM +0200, Joan Picanyol i Puig wrote:
> > For a system I'm working on, I'd like to reliably store three different
> > log streams from a single process. Since runsv only sets up a single
> > pipe from a service/ to its log/, I believe I should demultiplex the
> > streams in log/run and feed them there to three diferent svlogd
> > processes, but I'm not quite clear on how to go about it. Any
> > suggestions?
> 
> a) use single stream, and then use svlogd features to filter messages and
> store in different log files

I need to read from log/current in real-time to check for alarm
conditions which I can't express using svlogd pattern matching.

> b) run 3 socklog processes as separate services which will provide you
> with 3 unix sockets, and manually log (using syslog syscalls or library)
> from your application different streams to these 3 sockets

That sounds feasible. Maybe multitee is an option too...

tks
-- 
pica


  reply	other threads:[~2009-04-02  9:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-02  8:47 Joan Picanyol i Puig
2009-04-02  8:57 ` Alex Efros
2009-04-02  9:24   ` Joan Picanyol i Puig [this message]
2009-04-02  9:47     ` Alex Efros
2009-04-02 13:47       ` Joan Picanyol i Puig
2009-04-03  8:19         ` Laurent Bercot
2009-09-03  9:02         ` Joan Picanyol i Puig
2009-09-03 21:34           ` Laurent Bercot
2009-09-03 22:35             ` Charlie Brady
2009-09-04  7:51               ` Laurent Bercot
2009-09-23 14:20             ` Joan Picanyol i Puig
2009-09-25 20:45               ` Laurent Bercot

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=20090402092404.GB30096@grummit.biaix.org \
    --to=lists-supervision@biaix.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).