From nobody Thu Jan 13 19:04:54 2022 X-Original-To: bugs@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 2F79D1942A71 for ; Thu, 13 Jan 2022 19:04:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JZYlT6sZ6z3rwH for ; Thu, 13 Jan 2022 19:04:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C6CCB25776 for ; Thu, 13 Jan 2022 19:04:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 20DJ4rjk060346 for ; Thu, 13 Jan 2022 19:04:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 20DJ4rrB060345 for bugs@FreeBSD.org; Thu, 13 Jan 2022 19:04:53 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 261155] syslogd not logging programs with '.' Date: Thu, 13 Jan 2022 19:04:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsd-ports@charlieroot.de X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642100694; h=from:from: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; bh=AZYuf0XLfm3mmorWL2ltRDa/8ngWLU7SobL58/ZpHG4=; b=pp1RceFX7k3QsvP2KjaQUqShQ9OkhbbBby1Q6pFYLzp1KDp5ROFFZ/Lv/m4kwysJBNeeoO BlXkEL7U04AQTX2InkCmw0iIUbMJIECOyYNvgaPA1nZtBaOkzkX1kNwjsLcFr9rTrvacl5 3X8sDoZsWQD6BwvmVl7UnNj2Bxf2xvJkFVBmR7Gw+qnn0LBiOOSZRR/XHooRcV2BE9JNOG C1MwFrDko44dvaGcgYa/6PTz9IbtoYNypql+P+nbBLGsrVBmjYj3/wrpXcgxIAe8HOgcIw 8MDlv88+Q8EVH+Jre5Kd7Xg+0VKsCzPLNA6bBDorqTj1tz7NVN1jLoxmIYxTiw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642100694; a=rsa-sha256; cv=none; b=rUEttSSvLrxmjEzJ3oLjNc4VszuWZX8bK60D0NoVRBPSLgwN3WPk77qWbBRTrXsW25JdTW xtdPgK3hc/dTALF+Ca4tp36qGRc5a1IuiZaE8jgGYJ5FDutLveeb8cF6pfxiTBHUZWDJFA IOkGNonNfDfO+9Q86mYANKQVQsY0ePksp8snwwOrF4tsUSl8mUa3K3cLWwl7oZYDghC1KM NWbsJM+e9xdc74EdzGWpbnfyls0a//CNatk+bqmmSQMGWzP4K2yN1guyBXhtMtaYvqKCM/ bgM2NWGXRAV9YrKnc35BvhncHWPihffVeS3mo3wZpcjONz4ZEVXKM96UqnA5oA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261155 --- Comment #2 from Helmut Ritter --- [helmut@BSDHelmut ~]$ sudo cat /etc/syslog.d/30-daemon.conf !-fail2ban,fail2ban.actions,fail2ban.database,fail2ban.filter,fail2ban.jail= ,fail2ban.utils daemon.* /var/log/daemon.log [helmut@BSDHelmut ~]$ sudo cat /etc/syslog.d/40-fail2ban.conf !fail2ban,fail2ban.actions,fail2ban.database,fail2ban.filter,fail2ban.jail,= fail2ban.utils *.* /var/log/fail2ban.log [helmut@BSDHelmut ~]$ received sa_len =3D 16 logmsg: pri 35, flags 0, from BSDHelmut, msg fail2ban.actions[98772]: NOTICE [fail2ban] Restore Ban xx.yy.zz.138 Logging to FILE /var/log/messages Logging to FILE /var/log/all.log Logging to FILE /var/log/daemon.log received sa_len =3D 16 From syslog.conf(5): A program specification is a line beginning with `#!prog' or `!prog' (the former is for compatibility with the previous syslogd, if one is shari= ng syslog.conf files, for example) and the following blocks will be assoc= i- ated with calls to syslog(3) from that specific program. A program sp= ec- ification for `foo' will also match any message logged by the kernel w= ith the prefix `foo: '. The `#!+prog' or `!+prog' specification works just like the previous one, and the `#!-prog' or `!-prog' specification will match any message but the ones from that program. Multiple programs m= ay be listed, separated by commas: `!prog1,prog2' matches messages from e= i- ther program, while `!-prog1,prog2' matches all messages but those from `prog1' or `prog2'. This seems to fail with a prog with a '.' in its name though it works fine (here) with progs without a '.' in the name: [helmut@BSDHelmut ~]$ cat /etc/syslog.d/30-daemon.conf !-fail2ban,fail2ban.actions,fail2ban.database,fail2ban.filter,fail2ban.jail= ,fail2ban.utils,openvpn daemon.* /var/log/daemon.log [helmut@BSDHelmut ~]$ cat /etc/syslog.d/40-openvpn.conf !openvpn *.* /var/log/openvpn.log [helmut@BSDHelmut ~]$ logmsg: pri 35, flags 0, from BSDHelmut, msg config =3D '/usr/local/etc/openvpn/server-charlieroot.de.conf' Logging to FILE /var/log/messages Logging to FILE /var/log/all.log Logging to FILE /var/log/openvpn.log received sa_len =3D 16 --=20 You are receiving this mail because: You are the assignee for the bug.=