From nobody Mon Mar 27 06:46:47 2023 X-Original-To: freebsd-questions@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 4PlNdl5Hytz41r7t for ; Mon, 27 Mar 2023 06:46:51 +0000 (UTC) (envelope-from clopmz@outlook.com) Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03olkn2092.outbound.protection.outlook.com [40.92.59.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PlNdk1qsTz4329 for ; Mon, 27 Mar 2023 06:46:50 +0000 (UTC) (envelope-from clopmz@outlook.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=outlook.com header.s=selector1 header.b=E83weXaz; spf=pass (mx1.freebsd.org: domain of clopmz@outlook.com designates 40.92.59.92 as permitted sender) smtp.mailfrom=clopmz@outlook.com; dmarc=pass (policy=none) header.from=outlook.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GSPht6bZVxjCMqWD2hCDSL2R51AvyttSGUcY+kZ/qG7441Onx+DeEg1/M+IqrvIhtCbA1qiDNaVejtbSqBENGZXvSfYhm9RvMGNlt6EcTrlO73vot6wXjNVzxLVaWVY01l0bZ383BAIpEUb959w1oaSAYFYqRG04vHECDzKF+6z9P9T112qyCDclxOyxeog40K/NsyZfeNMjCsW3vxYqkgr7nIkVI6GEG6oeWmNG4zFf6MplSLf6Zw1RYMUWZPBMMLYxRmsSgGPiKbrpnD+fKWORvzs4ZKM5RoUyvk1n50S4PGYmJNxWV5UYHvKcWs+GM4qb4qfuXTxtKc+SuMeJSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=uedIT5BowwYx2Cbzexn2aoj1yjDgWBKOmhOxf6pw9A8=; b=PQkpe+X+j8UeQQ88BCL5g4n4Wb6jvsIJfR9sdl1nM+Vd6Qvlfx9ZM+NE+TwHkFlSko18uxXbfdNL3R2lUgDu+7b1RzczOHqVfeiFX3qx0uOMppeVbbMPVmZgm9pm9gwYneb5lwARik5e2wVkSaIuvobHfA+mYwiRGPfTW8+z7uTgCVpVRNUZGZIfzX6RaYLxfMKtPmA5ZeiS8dEamrb0gmNkk8nY3cx0V65vVV13cVc61ka+GeqSBIq2Y2gCjwlS4n4NCFuBQeptm3d2r8MpAMWEOSrVvUxXXqHzGzM/NMGFA0j/KKbdeC22WDRrH5M1Zvlhmj3WnrUB8tsz7LTZMQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uedIT5BowwYx2Cbzexn2aoj1yjDgWBKOmhOxf6pw9A8=; b=E83weXaz2cBT0zUBDrrg6k70VNz58xk/Kwwyvgu8wOjesJbjT627EtIZVzwLnfYJPg2mG342mvo56ZxTQxPrZfhcTc8f9Qibq5ea+DSo2OqiqB4w4bAvqdIePrpc2+uq9uF14IGRp5kmhEd1bHeJBCkh88SYuhT1dyjnzs2RjY/69GXIXZa1RKgYT5cG1TiqGR4yaWQ5mGzCaIuXijXR+ukLFjCT+jUTKe5k7HiC4xCg23AVqNS5XDIEp3Ngt5sA7vmYZk40Dfh+8Du9p7wbbwboTgcYLa/TGlwtAd1x8cWhIPqDef1nLduLxpDSuweBPMpXMd6rjUPLnLwbNbEqXg== Received: from PRAP251MB0567.EURP251.PROD.OUTLOOK.COM (2603:10a6:102:29a::16) by AS4P251MB0848.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:517::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.41; Mon, 27 Mar 2023 06:46:47 +0000 Received: from PRAP251MB0567.EURP251.PROD.OUTLOOK.COM ([fe80::ed49:726b:1153:87ee]) by PRAP251MB0567.EURP251.PROD.OUTLOOK.COM ([fe80::ed49:726b:1153:87ee%9]) with mapi id 15.20.6178.041; Mon, 27 Mar 2023 06:46:47 +0000 From: Carlos Lopez To: Polytropon CC: "'freebsd-questions@freebsd.org'" Subject: RE: Remove newsyslog messages from logs Thread-Topic: Remove newsyslog messages from logs Thread-Index: AdlfRDa37KwYMgINQfSN1VXsCUYH8wAB3ycAAEsITdA= Date: Mon, 27 Mar 2023 06:46:47 +0000 Message-ID: References: <20230325195752.6184c295.freebsd@edvax.de> In-Reply-To: <20230325195752.6184c295.freebsd@edvax.de> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-tmn: [L1dbBf6JZaJZt8518f0NjSir3XTd0EEa] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PRAP251MB0567:EE_|AS4P251MB0848:EE_ x-ms-office365-filtering-correlation-id: 58fab19d-ab74-4967-00c8-08db2e8f0995 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: oba50zcIj8ts3l5EXqTE/eykVkE1aOSCL80XfGkQG+u22VMMM9LbndFwEs+bBw3Wr/GHr18HShxic03a47ulPG2M+zumLbRqbczUHHvOvX+M6oX+c6G0TZEi3kpGeXochKtV8yR+yEBDxdgYxYj6QIzudlGUTpn4sUH9FsnZi4/okhTlDet2gIEfm704N8t92vpjAl7chVAi35swjdy4B/lOHpmwNaSwzLBpUMBNdGrZNYE7Gp4aGYBdZKprE0gJbWScNgY3wQWLutwQw4mop3fDcPSyCn/aeJnO1RIkl8zVha45ft79HwLHzzc/FivrwjtVppxWuAv2PQqyodT3EI4Oi1Ia1zdgX3U9NfK2kVIwXGeyAFUrA192jumvuOjCIIQgEVyIEWjNTpQhyJQjkZTO/wYe/TefLihifgI5/nusGE2wKrqI8Ked9c7njEwTa0Afgn2ft+gfyfOgEpyZHc9hiwbDUzrlTCTJh+Cs0dCbzwmGuuD/qtuFVpLzlkWEuTyG8jUI9Mqy+S6B8vUjn67vPJ8Xv2+er/hfYDwbNgiMI97Yt7hJMIvAfczMagiGNa5Vv+8Nrls6mXzUHosokTR71iXW1O8xdLdhOdcNadJxzOm6XfQvDLR3PSWnddSM x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?zizyIofzxCl1OaP6Oabitm1kOePxmXEUySSM4ZwCQygjE341LmhFCGndlcTH?= =?us-ascii?Q?GjYPx95u5IB4VJkl4kevWuiqtMhQaRPv6YJKxuuoTO/jzVCuxJMpEZhIuirZ?= =?us-ascii?Q?zPC+/ASk/NrJiiAS9LyF0mahg/5l8HblonRMKMH1ul1apyZWJO782ir4U3cj?= =?us-ascii?Q?NQ6sLXn/YiDBXJA+VHJp/TFJCMtpRqv5Lg2HNLzcE9c2AQskZD1KDUc6AwL3?= =?us-ascii?Q?62onNCJuYnlcfR+cF9R25Hz3m3IZNnbrGHFLXpFnL/GZ81JO0t4pQlKYxiBe?= =?us-ascii?Q?bpSiaK65s+4Wz5nJ2qKTaJ5DaGkP4CF8KkPRXsfdYTH7McVudZS8S7ZrLTJL?= =?us-ascii?Q?EiiJ44soSXbk2yt9i2pk8ZwWxcOj9NbUDLaHiapJf21Ebb4AMHt7/RFdti8m?= =?us-ascii?Q?GwnkIFDE6nfPWkQnW876inadSile5A2aing+8NYLEKmWnmkYpggUln5Z3fnc?= =?us-ascii?Q?puQFWfFHTWvD2qeTPMcNFZwQzKLNEmqjP14JX2ZjvDrKzk6iskbfp5TZGFQN?= =?us-ascii?Q?LauP9lGJMeoTMPogoz47FItJOlzjXMGTxtZ/5ROBoCFwKbe5SnOq6XO8Y9zh?= =?us-ascii?Q?JoxlVxrXhD8plQCHlgLD+/tybu05sfP++Ay44KhPHdIaNZp8QDLCVH5ApmO/?= =?us-ascii?Q?WV/S91D8AeeJjX4guIm8JCzSRvB7VmzPOkYYePDiYpGpKVnCm9HJCuSUAJ6A?= =?us-ascii?Q?t5leSC9LgaFNf9hbXUWMsRJO0kTmCUb1X2C6/6qq2YaW2FQzScblNmXNOh9K?= =?us-ascii?Q?g901dlznm80QZNZe4QeRat/8AqZK3zAU34Wd3+x84qgxYXDRZiAmRp+haaF5?= =?us-ascii?Q?JKvryucxw7mhmFbzHSWvYQNfqeqaxrq5Sr3c0NsSrRHcd1GPILUwAcKEBNUV?= =?us-ascii?Q?Tf/kQS4SJuchWyDIfbmd6dK2C2pgiGtnJ1vC6i85rD5orKi1x7yZEN+ICY8A?= =?us-ascii?Q?X4b5tY783TCOMPbwNJbWmdKa3fsCqto2TioIG6l/I+XCjnSAMc9mBLn+D1hs?= =?us-ascii?Q?WYjGuj6GPwcUb6FzuRJcgoDz4/3sbVT9dCQ9Opqgo0vc7PaDSFwhNf8Q4zxq?= =?us-ascii?Q?jGQb+7ADA6yhjv41ovMGYgeWgNkVn1d5rc7vN38cTEV0SIi1W5ZUBbL7/mW3?= =?us-ascii?Q?HiXJbREcR2o2iEJN85bfyL1kG3JIe/MvH0NyLlo1shjWpM2CoGGuEGL9ZX34?= =?us-ascii?Q?2T8HQL/jl7NEfSgibmYDlfe7TuFQ7opW6xaimQ=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PRAP251MB0567.EURP251.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 58fab19d-ab74-4967-00c8-08db2e8f0995 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Mar 2023 06:46:47.8548 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4P251MB0848 X-Spamd-Result: default: False [-4.44 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_MEDIUM(-0.97)[-0.966]; DMARC_POLICY_ALLOW(-0.50)[outlook.com,none]; NEURAL_HAM_SHORT(-0.48)[-0.479]; R_DKIM_ALLOW(-0.20)[outlook.com:s=selector1]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/15]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-questions@FreeBSD.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; FREEMAIL_ENVFROM(0.00)[outlook.com]; DKIM_TRACE(0.00)[outlook.com:+]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[outlook.com]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[40.92.59.92:from]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; DWL_DNSWL_NONE(0.00)[outlook.com:dkim] X-Rspamd-Queue-Id: 4PlNdk1qsTz4329 X-Spamd-Bar: ---- X-ThisMailContainsUnwantedMimeParts: N Many thanks Polytropon .... Works perfectly!! Regards, C. L. Martinez -----Original Message----- From: Polytropon =20 Sent: Saturday, March 25, 2023 19:58 To: Carlos Lopez Cc: 'freebsd-questions@freebsd.org' Subject: Re: Remove newsyslog messages from logs On Sat, 25 Mar 2023 18:07:11 +0000, Carlos Lopez wrote: > Maybe it is a stupid question, [...] Not at all. > [...] but would it be possible to > delete/avoid "newsyslog[1137]: logfile turned over due to > size>..." messages generated by newsyslog every time it > rotates a log file? Yes, this is supported. Just have newsyslog pretend the log file in questio= n is a binary log file, so the insertion of the message will be suppressed.= Set the `B' flag (field #7) in /etc/newsyslog.conf, for example: /var/log/messages 644 5 100 * JCB ^ Files that typically have this flag are /var/log/pflog, /var/log/sendmail.s= t, or /var/log/wtmp, as they are binary files. But it should work with text= files, too. See "man 5 newsyslog.conf" for details. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...