From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2576 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dewayne Geraghty Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: s6-log problem with +regex Date: Fri, 10 May 2019 14:52:57 +1000 Message-ID: References: <1fd4f712-f743-68ff-f648-151004ecfb0b@heuristicsystems.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="170626"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 To: supervision@list.skarnet.org Original-X-From: supervision-return-2166-gcsg-supervision=m.gmane.org@list.skarnet.org Fri May 10 06:53:56 2019 Return-path: Envelope-to: gcsg-supervision@m.gmane.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1hOxXf-000iCf-UZ for gcsg-supervision@m.gmane.org; Fri, 10 May 2019 06:53:56 +0200 Original-Received: (qmail 4966 invoked by uid 89); 10 May 2019 04:54:20 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Original-Received: (qmail 4959 invoked from network); 10 May 2019 04:54:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=heuristicsystems.com.au; s=hsa; t=1557463977; x=1558068778; bh=d5YjaX/5LkipKb3+O1FpTrRBbYetru/+RejBm7LphVc=; h=Subject:To:From:Message-ID:Date; b=RLQG5GdeBHRNOfnNfOX/6M4NfpOyh7GjbODhlBjVa0v6ZixiMsFhPnL23qZ9Y7f4V 1fxLcAyaJaaj+PtZHvLGr9de9Z/qnode/E2ma4yhMfjNHCfNYHHIcV8yauadLqohQI k9Vz/AbkfMLSmxGiI3a8yW5/DeRzpbwHfKjgUMME617wOG2WUYvXx X-Authentication-Warning: b3.hs: Host noddy.hs [10.0.5.3] claimed to be [10.0.5.3] Openpgp: preference=signencrypt In-Reply-To: Content-Language: en-AU Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2576 Archived-At: Thank-you Guillermo & Laurent. I appreciate the detail, being a virgin to daemontools this is a steep learning curve as I'm trying to ween off monit. The solution works nicely (& as intended) when using the workaround regex: redirfd -r 0 /tmp/af /usr/local/bin/s6-log n3 -.* +^a /tmp/a-only -.* +^b /tmp/b-only -.* +^c /tmp/c-only -.* +^\\\[ /tmp/date-only f /tmp/default However without any control directive, the result is: s6-log: usage: s6-log [ -d notif ] [ -q | -v ] [ -b ] [ -p ] [ -t ] [ -e ] [ -l linelimit ] logging_script Though running s6-log without a control directive is probably a little silly, perhaps the requirement to have one may be worthwhile mentioning in the doc. Aside: I had orginally placed ErrorLog "|/usr/local/bin/s6-log -b n32 s50000 S7000000 /var/log/httpd-error T !'/usr/bin/xz -7q' /var/log/httpd-error" into apache24 which worked well in testing (one httpd), but of course in production there are lots of httpd that do NOT use the parent for logging errors, so locking is a problem. Because I have three websites (3x error files, 3x access files) I was looking at using 6 pipelines into two s6-log processes and regex's to route the content. (hence my original example). Is this a good use of resources or better to pipeline (funnel) to their own s6-log? Kind regards, Dewayne.