From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id eHTWHgBmu2bKPAAAe85BDQ:P1 (envelope-from ) for ; Tue, 13 Aug 2024 13:56:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id eHTWHgBmu2bKPAAAe85BDQ (envelope-from ) for ; Tue, 13 Aug 2024 15:56:16 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=E+XMtUQM; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723557376; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=CzPuHRex+qX+RCVa+mFB9qT0euAg9lZbREsMRvGHHhg=; b=TySl+7BlcXYhldRkHoMJ0yc0Rs7yK9OKZMF63aie/3n8DuYJICnrPBrpKC3YM8xYmck2Yq h2DKWouO25DI6CjlkNd/CHrUBuFuTjmy7osBd+e1Hu+2ciCiD/x4sdSZdEHldLVDjTooo+ WJcCQxeHIiBiQkfREOiRr8BxhMu3dQtLvtynbbtwJ8g7237kmFnYHLbCBO0yqHIVlNp1sg yIA4Qj+9LFUaYNPbgYIOqP4rvzW0+BZH8OWi23QD77AwuqVbL8EMj10vKAKNo/VFqUmMhr 9tS42yZ0M/LnxKNq+AsljtBYh9apVY83kZMUYcVSuPDYsJlZY4CCc4XcIfdOWA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723557376; a=rsa-sha256; cv=none; b=ocSoNqAnCSBwknlhOfUwS8X3WYd92w9HPuaWdxdTigy34ZERL5GCsBtTW/JxGl52sMvnII +6oUgTVUqVvwjoGTS8nAqipoOreaiI0LAslEBIdTjo9zT24oQkhzcUhb/YKn2wn8Dn7Ure JuLKRUs9UWrw9hJqwBp981yoPQPFi+fjF8Kut8TLEQcrd5OQTOzGJ16t5VFojaKbz0gUYE PN1VwZqZknQeKY83ylna9/d1332CiNK/F5qMr8dt6OlC3NYx3MA07yprTJL+UhSCjKTS0a jS3VHm3IL+AmQVS+gj9lRqzfNWUSiev7dFmkfY3fyW/59r3VqyRoKcL2/7mAJg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=E+XMtUQM; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3490B66E9E for ; Tue, 13 Aug 2024 15:56:16 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sds05-0002uj-0C; Tue, 13 Aug 2024 09:55:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sdrzz-0002fu-M6 for guix-devel@gnu.org; Tue, 13 Aug 2024 09:55:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sdrzz-0008Cw-DH for guix-devel@gnu.org; Tue, 13 Aug 2024 09:55:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=CzPuHRex+qX+RCVa+mFB9qT0euAg9lZbREsMRvGHHhg=; b=E+XMtUQMc4//dOemDMz1 3KQeIBQbYsENspsS2utt57I3p28WCW17Cgusqsl6StZQGhheHY31UuaEO9iytu5Zmta1sD9uBMpIj UHG/4B3Fb2koxPUJ0KHWi6mVkLN1TsrUWJ4XqGv2ATAgRUK25O45Qkr6i7nfVyq2n2FCfsZOQWN8T JDQytQk/qMYjqsTBaSrAXHUAYeb+JoUAqSadfU/sNZPd8dM9TSSO0bF9DBXB1R/t08sCBQ4S6QeUp gYTHy+Tb8LLUVIMW8jceYUMN117FuLzDlby8IFzXyGnSBmNuLejJGhqN6iC1H4vvDHZiu9t6tEu9f iH7Q47rJWQ8X7A==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: guix-devel Subject: Re: System log (syslogd) for the Shepherd In-Reply-To: <87a5ianad0.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Sun, 21 Jul 2024 15:27:39 +0200") References: <87a5ianad0.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Septidi 27 Thermidor an 232 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour du Colza X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 13 Aug 2024 15:55:40 +0200 Message-ID: <87mslga5nn.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.19 X-Spam-Score: -8.19 X-Migadu-Queue-Id: 3490B66E9E X-Migadu-Scanner: mx11.migadu.com X-TUID: 7FRCxGdnqiON Hello! Ludovic Court=C3=A8s skribis: > I recently pushed a =E2=80=98wip-syslogd=E2=80=99 branch in the Shepherd,= which should > be ready to merge in =E2=80=98devel=E2=80=99 in the coming days. It impl= ements an > in-process =E2=80=9Csystem log=E2=80=9D service that does the same job as= good=E2=80=99ol > syslogd as currently used in Guix System (info "(inetutils) syslogd > invocation"). This is now part of the =E2=80=98devel=E2=80=99 branch. This is pretty muc= h the last feature I wanted to have for 1.0. If you want to use this new =E2=80=98system-log=E2=80=99 service instead of= syslogd, here=E2=80=99s how you can change your system configuration: --8<---------------cut here---------------start------------->8--- (define system-log-service-type (shepherd-service-type 'shepherd-system-log (const (shepherd-service (documentation "Shepherd's built-in system log (syslogd).") (provision '(system-log syslogd)) (modules '((shepherd service system-log))) (free-form #~(system-log-service)))) #t (description "Shepherd's built-in system log (syslogd)."))) (operating-system ;; =E2=80=A6 (services (cons* (service system-log-service-type) ;; =E2=80=A6 (modify-services %desktop-services ;; =E2=80=A6 (delete syslog-service-type))))) ;replaced by the Shep= herd's --8<---------------cut here---------------end--------------->8--- You need to be using the Shepherd from the =E2=80=98devel=E2=80=99 branch o= f course; see the instructions in the Shepherd=E2=80=99s =E2=80=98README=E2=80=99 for thi= s. Once running, it gives something like this: --8<---------------cut here---------------start------------->8--- $ sudo /run/current-system/profile/bin/herd status syslogd Status of system-log: It is running since Sun 11 Aug 2024 11:23:40 PM CEST (40 hours ago). Running value is "#". It is enabled. Provides: system-log syslogd. Will not be respawned. Log files: /var/log/messages /dev/tty12 /var/log/debug /var/log/secure. Recent messages: 2024-08-13 14:47:29 localhost shepherd[1]: service names: 72; heap: 36.89= MiB; file descriptors: 47 2024-08-13 15:00:00 localhost shepherd[1]: Timer 'gc' spawned process 164= 27. 2024-08-13 15:00:00 localhost shepherd[1]: Registering new logger for gc. 2024-08-13 15:00:00 localhost shepherd[1]: [guix] guix gc: already 10699.= 16 MiBs available on /gnu/store, nothing to do 2024-08-13 15:00:00 localhost shepherd[1]: Process 16427 of timer 'gc' te= rminated with status 0 after 0 seconds. 2024-08-13 15:07:29 localhost shepherd[1]: service names: 72; heap: 36.89= MiB; file descriptors: 47 2024-08-13 15:27:29 localhost shepherd[1]: service names: 72; heap: 36.89= MiB; file descriptors: 47 2024-08-13 15:47:29 localhost shepherd[1]: service names: 72; heap: 36.89= MiB; file descriptors: 47 2024-08-13 15:50:53 localhost sudo: ludo : TTY=3Dpts/0 ; PWD=3D/home/= ludo/src/guix ; USER=3Droot ; COMMAND=3D/run/current-system/profile/bin/her= d status syslogd 2024-08-13 15:50:53 localhost sudo: pam_unix(sudo:session): session opene= d for user root(uid=3D0) by (uid=3D1000) --8<---------------cut here---------------end--------------->8--- And it=E2=80=99s now integrated with the new =E2=80=98log-rotation=E2=80=99= service: --8<---------------cut here---------------start------------->8--- $ sudo herd files log-rotation /var/log/mcron.log mcron /var/log/messages system-log /dev/tty12 system-log /var/log/debug system-log /var/log/secure system-log /var/log/guix-publish.log guix-publish /var/log/avahi-daemon.log avahi-daemon /var/log/dbus-daemon.log dbus-system /var/log/ntpd.log ntpd /var/log/guix-daemon.log guix-daemon --8<---------------cut here---------------end--------------->8--- Ludo=E2=80=99.