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.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22628 invoked from network); 13 Jun 2020 08:41:46 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 13 Jun 2020 08:41:46 -0000 Received: (qmail 23471 invoked by uid 89); 13 Jun 2020 08:42:04 -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 23464 invoked from network); 13 Jun 2020 08:42:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tunnel53-net.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=8AG/bzCJgEz6GEVF1nU7di2f8LR4Gx3s6fer9BRm0TA=; b=Dujdm/TQUCdroWD6TjRzWyZzb44AZn6wtMuqyW0XyPWIs7icsVLu4IPO2N8jmgyHuA feJmaQgh3D127XMyxwe6aJUk4MU+IKS2wIolJplXJuK6CE8f+kQRR70GM2BGMN5gStS1 3oIPaFKIuffbBbWb/Eh3Cs+AEyFMAi+qb/VCvbiqfOEGz8eAKC4bKU4Ub14lAzNpKnLp DdWcnigb4Tu4MvstGC10p0Hw+memx3e0BWcXpHAMX3GXN5myYqXJbV73xY4G+PSF0Aa0 Lqgx6hDSYpRkfME3R/FIbqMTqHnoKhFBdNG9YCuF9s71X3wHF1dX1glUClT5+aRjcfNT jGIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=8AG/bzCJgEz6GEVF1nU7di2f8LR4Gx3s6fer9BRm0TA=; b=aKKmxrjveu801UA0hm3cwD3DLhqHGLBon21j+Dl8VGSMz8F8Oieu9yXkK3U52ZqSNM AQQOiyNoWEh3GLJ1xtVsMBrgUV+1U+rNTEokwMU/sZW6xzsvbWKfM8HlDJyvDNZW+Wzu KhQakvC6ah5DQP493dE4A4XYZjKL9Zmm3VKRnTQ3t2Zh09jrX180ByREOn5pZaOORCPo GjCwKVS5Qpdcr43hE9M8n4rda4xFzM9cVJ4EXo7YEF/eSRZL+oHAuQha3xREOXnm3P9K VYr/B5yHikCmW2LidgEVLMzESps7fD4ssnCCUy7H9pGw/6fPWotfdSzm6H9QM0czhiK+ L+bg== X-Gm-Message-State: AOAM531l/gGBO4+9mBBXYVEqiUibRy62p/53odDxcNEaVzlOZZsGD1ua V8ZUwY2Uv8XIuwCbsZhEExon16L6KkzoWrCFKlD1wIIZdj0= X-Google-Smtp-Source: ABdhPJyiC2mwvP4wRC4f5Simqhp7rM/ovSH5MLHXBHurCcPASMDkyEaq4fXMQBOgvHewu4l73XhNYWtEbZ6n4NWpRZ8= X-Received: by 2002:ac8:1942:: with SMTP id g2mr7003598qtk.107.1592037695015; Sat, 13 Jun 2020 01:41:35 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?Q?Carl_Winb=C3=A4ck?= Date: Sat, 13 Jun 2020 10:41:24 +0200 Message-ID: Subject: Logging in a web server context To: supervision@list.skarnet.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi folks! Is it possible when using s6-svscan/s6-supervise to somehow arrange so that a daemon=E2=80=99s stdout is sent to one logdir and stderr to another logdir? Or must I use s6-rc in order to achieve this? My premises are the following: I want to run nginx under s6, on a mainstream Linux distro such as Debian/Ubuntu/CentOS. My plan is currently to use s6 only for nginx and not any other daemons. I want to collect the web server access logs in order to generate visitor statistics[1]. One tricky aspect of logging that is specific to web servers is that they emit two different categories of messages: a) Errors and warnings b) Info about page requests[2] For many other kinds of daemons, one only needs to arrange for logging stderr and then call it a day. With web servers it=E2=80=99s not quite so simple. I am very interested to hear from others on the list what your thoughts are about this scenario. The reason I=E2=80=99m weary about s6-rc is that I think it might not play = so well with the distros I mentioned earlier. If this concern is not correct, please let me know. [1] An alternative to collecting access logs could be to use Google Analytics instead, but I want to avoid that since I don=E2=80=99t feel comfortable about handing over my visitors=E2=80=99 personal data over to Google. [2] I.e. lines like this '10.131.214.101 - - [20/Nov/2017:18:52:17 +0000] "GET / HTTP/1.1" 401 188 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0"'