From nobody Tue Sep 17 12:09:03 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 4X7LDN5VTdz59DJc for ; Tue, 17 Sep 2024 12:09:08 +0000 (UTC) (envelope-from SRS0=vk1u=QP=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4X7LDN22qbz4Nj5 for ; Tue, 17 Sep 2024 12:09:08 +0000 (UTC) (envelope-from SRS0=vk1u=QP=quip.cz=000.fbsd@elsa.codelab.cz) Authentication-Results: mx1.freebsd.org; none Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 597B1D78A8; Tue, 17 Sep 2024 14:09:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quip.cz; s=private; t=1726574945; bh=EINHgKmNf6zhdevHhTfP+NdpvpEzu623uTyUUO87Nms=; h=Date:Subject:To:References:From:In-Reply-To; b=Y81UGETSDc5EcUZjjRLftzts25DgRW4LG3fOPyWfCcFTpZJ1B/8vONvylLDa4gvMV fRVue4wzW/6pQB2LVRcLSkzXRA6/fRRtBXfmd/igZ4PrK+Gd69L04CNGTcNsoXY1M+ nmNmzDEGgssQxgHO8/thE0RDxWQOTDUie8IoYqhI= Received: from [192.168.145.49] (ip-89-177-27-225.bb.vodafone.cz [89.177.27.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id A1464D78A3; Tue, 17 Sep 2024 14:09:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quip.cz; s=private; t=1726574944; bh=EINHgKmNf6zhdevHhTfP+NdpvpEzu623uTyUUO87Nms=; h=Date:Subject:To:References:From:In-Reply-To; b=pLdv7ic/yTQ/jDIZNp54yIz+40wIkQd3Fho+iCn+/xNrEFMtsN4p87aII91WQmsTT Hl30y5inBJpn6mDC4V9rI8MNJaoZpN1ElHyXqz9wPREHsj1uR8u+jQKpBQ3TIEYzeR jP+LfE2jlGGqomtsn/Jgd79doHzoe4M6qQzt45+4= Message-ID: Date: Tue, 17 Sep 2024 14:09:03 +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 To: fuxjez , freebsd-stable@freebsd.org References: Content-Language: en-US From: Miroslav Lachman <000.fbsd@quip.cz> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:42000, ipnet:94.124.104.0/21, country:CZ] X-Rspamd-Queue-Id: 4X7LDN22qbz4Nj5 On 17/09/2024 13:06, fuxjez wrote: [..] > and have since attempted to redirect the "wg0" logs to > /var/ramdisk_log/wireguard.log by using these syslog includes: > > :msg, contains, ".*wg0: .*" > *.*                                /var/ramdisk_log/wireguard.log > > and > > :msg, regex, "wg[0-9]{1,2}\:\ " > *.*                                /var/ramdisk_log/wireguard.log > > Unfortunately, the includes are not redirecting the wg0 logs to my > preferred location (the includes are placed in > /etc/syslog.d/wireguard.conf which is parsed by syslogd) and I'm out of > ideas / logs on how to further troubleshoot why the logstream doesn't > get redirected :( I never used property based filters in syslog.conf. Is it possible for you to use just classic style? For example I use following to have separate log file for messages from pkg (install / upgrade / delete): !-pkg,pkg-static *.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages !pkg,pkg-static *.* /var/log/pkg.log But I don't know how your wg0 debug entries are identified in the messages log. Kind regards Miroslav Lachman