From nobody Wed Sep 18 09:35:33 2024 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X7tmn6VBNz5Wp30 for ; Wed, 18 Sep 2024 09:35:37 +0000 (UTC) (envelope-from mail@osfux.nl) Received: from vm1982.osfux.nl (vm1982.osfux.nl [IPv6:2a03:5500:1724:55:79:99:187:212]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4X7tmn1Vm0z4Yck for ; Wed, 18 Sep 2024 09:35:37 +0000 (UTC) (envelope-from mail@osfux.nl) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=osfux.nl header.s=default header.b=Sy9eFibz; dmarc=pass (policy=reject) header.from=osfux.nl; spf=pass (mx1.freebsd.org: domain of mail@osfux.nl designates 2a03:5500:1724:55:79:99:187:212 as permitted sender) smtp.mailfrom=mail@osfux.nl Received: from vm1982.osfux.nl (localhost [127.0.0.1]) by vm1982.osfux.nl (Postfix) with ESMTP id 8F1147F; Wed, 18 Sep 2024 11:35:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=osfux.nl; s=default; t=1726652134; bh=1cWcrSeKjUIGOSvzLQrEgUDV3Y7X10hhbE0yFEs1JmQ=; h=Date:Subject:From:To:References:In-Reply-To; b=Sy9eFibztZBPBFLnZDjuuMHrWFUf2haiCpzgNuEyaKL9a+AwNNfaqj4ttmVSxce3Q B6HVwIQCl4z6mFmBRSbAFA/MexUItWEceI0eDKtINIDgUYjIfGNsR0uaIDrsb0Z5Oe ji0UZoHbBgJB/4BF0RZxL71J3pPQLY+q8lGit1fQJk+aeratfOSgnIODllEpE0bklU P5VNhgJNt9jup25c8f6lTBpFS1KLjkik3dFGyw0y7nQ8L+h7ld64kp/DgizcC5PJ9+ F9P1nyJmLGi+azOjJe8lTQ15HjdE4prLAd4Oqcqss3vBGj734XY0djG4kQhhsKEmPC LR4PoGWPEt1y7MrInUvpK2mXu2XUOSBTCevTbVFVcyzkiT96VXN+p51mGVAqdrDUdv wEsmTeTdMxCoU3Rto1Wc9RvVu/aqdctmhGLL3GSRH8DkWuZPBKj9LceWeJ6yX2uxnv F8GmG4NnmyYeT5ow+ILJs36SAWH4oS9F00X6e4rVx0eFeTMYkZ6SVTdEmvaRN4yCRW f3V4CcIN64WYF2O90Vw/6MbCvX6lMw5DYw+PrQNc7eocIHm0FGndrFFAIduGhaE7A0 pI2JQblEbzIVBXnaaUyz+F5ZWZ08yakJXw2Hz1l98qhMbOEAa99SOC7RyphGVC5ED6 CWAMZzPCD/B2f03Lfc9jifQ8= X-Spam-Status: No, score=0.0 required=5.0 tests=none shortcircuit=no X-Spam-Checker-Version: SpamAssassin 4.0.0 Received: from [0.0.0.0] (unknown [193.187.128.159]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by vm1982.osfux.nl (Postfix) with ESMTPSA; Wed, 18 Sep 2024 11:35:34 +0200 (CEST) Message-ID: <0019d1f0-0b84-448d-8ecd-5b1619103139@osfux.nl> Date: Wed, 18 Sep 2024 11:35:33 +0200 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: issues with syslogd include redirecting wg0 output to custom location From: fuxjez To: Miroslav Lachman <000.fbsd@quip.cz>, freebsd-stable@freebsd.org References: <4250c967-61c7-419a-b542-455a8f655dd1@osfux.nl> Content-Language: en-US In-Reply-To: <4250c967-61c7-419a-b542-455a8f655dd1@osfux.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[osfux.nl,reject]; R_DKIM_ALLOW(-0.20)[osfux.nl:s=default]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:8315, ipnet:2a03:5500::/31, country:NL]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[osfux.nl:+] X-Rspamd-Queue-Id: 4X7tmn1Vm0z4Yck Hi, I ended up replacing : *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages with !-wg0 *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages !wg0 in /etc/syslog.conf and placing this: # Log wgX messages :msg, ereregex, "wg[0-9]{1,2}\:\ " *.* /var/ramdisk_log/wireguard.log in /etc/syslog.d/wireguard.conf (TnX Bob for pointing out the issues with my previous attempts). I'm probably filtering out too much information with the "!-wg0 construction" (regular, non-debug information regarding wgX interfaces for instance) but at this point I'm satisfied with the construction. Thank you for your feedback Miroslav / Bob! Regards, ruben