From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 10100 invoked from network); 25 Oct 2022 14:18:54 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 25 Oct 2022 14:18:54 -0000 Received: (qmail 4762 invoked by uid 89); 25 Oct 2022 14:19:18 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 4755 invoked from network); 25 Oct 2022 14:19:17 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antonovs.family; s=20200215; t=1666707522; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=GvoGHznHLAezBfxFgkFpkHT3nmj+zlGSAwa+LJrd74s=; b=DhyxB5W9TPeHHMvqDzh7rpawyL5c39RFdnGgj/IRfHnJzMYqaIUxgMTDFHNe/I8mTDPhSe fETUPQyYfkoDwQhL7/Ah8pNYMnIpIGguB5nFzTyDdFQQbs2LDxODchV1mCs2bHyPbDl82N BIiGJTcSJYzKv/ncYfW+2BlgwqTsiuk= Date: Tue, 25 Oct 2022 07:19:20 -0700 From: Ihor Antonov To: supervision@list.skarnet.org Subject: ca catchall logger prefix log lines with service names? Message-ID: <20221025141920.rxxk6qkxpggloryt@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hi, I am trying to figure out if I can set up svscan catchall logger in such a way that it prepends a service name to every log line, so that it can be clear where the log came from. I am trying to avoid s6-rc setup where I need to explicitly create a matching logger service. Today I do this: s6-svscan $S6_RC_DIR | s6-log -- t s16777216 n64 $HOME/.local/log/svscan But creates a log file where all logs from all services are mixed up and are impossible to distinguish. There is already a strange looking thing prepended to every line (@400000006356da4b2cb3ba0a - a timestamp?), so one might say we have already started doing structured logging. Is it possible to somehow add add service name as a second field in the log line? Thanks Ihor