From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1946 Path: news.gmane.org!not-for-mail From: Joan Picanyol i Puig Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: multiple log streams Date: Thu, 2 Apr 2009 11:24:04 +0200 Message-ID: <20090402092404.GB30096@grummit.biaix.org> References: <20090402084742.GC28473@grummit.biaix.org> <20090402085726.GC32102@home.power> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1238664159 5834 80.91.229.12 (2 Apr 2009 09:22:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Apr 2009 09:22:39 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-2181-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Apr 02 11:23:57 2009 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1LpJ9O-0007ly-5A for gcsg-supervision@gmane.org; Thu, 02 Apr 2009 11:23:54 +0200 Original-Received: (qmail 31221 invoked by uid 76); 2 Apr 2009 09:23:10 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 31211 invoked from network); 2 Apr 2009 09:23:10 -0000 Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20090402085726.GC32102@home.power> User-Agent: Mutt/1.5.11 Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1946 Archived-At: * Alex Efros [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