From owner-freebsd-questions@freebsd.org Mon Sep 20 17:16:00 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AB5EF6AA2B6 for ; Mon, 20 Sep 2021 17:16:00 +0000 (UTC) (envelope-from dan@langille.org) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (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 4HCrmv3R0Xz4c9K; Mon, 20 Sep 2021 17:15:59 +0000 (UTC) (envelope-from dan@langille.org) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D41B05C019A; Mon, 20 Sep 2021 11:07:42 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 20 Sep 2021 11:07:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=langille.org; h= to:from:subject:cc:message-id:date:mime-version:content-type :content-transfer-encoding; s=fm2; bh=K+IJH0QYmjrXTi8hUbV6R63slY sM8AqehpYHByUEn5k=; b=cS3Br1UYqt1JRfCOlIGdM6PSUfVjG5a8qU5CEMdbl8 Aidv/mciz0Xxv5NVKuF09aHvI1gmuzHEOLiKHpOxlZbHoA0wT7sCp45FJCAAjefc oywVF6aE7gJ4JCSrJ+ONZ58gM+sCt5y3Z+A5Fm0+PcVuUutB2iRm/uubrUsBYJDG HWfMtte2QolzuZZ0z0JKVWvLf1wwhDgqxBS+Wc41htTj9EnkDMZjT2NWKwknp0ws YiMDbWTMl6Q78a1sxU0MYvCR4VlkEUXVaMzXrno/2wvQuH6XX1JIZGDlOhOp7RLb r0pwNqq6BG60w0jRFEBkQsnV9M/kC08wOl7gaq+yXa4w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=K+IJH0 QYmjrXTi8hUbV6R63slYsM8AqehpYHByUEn5k=; b=s7/SKQ8tCw0E8VbqV+406t p+h9JHVq/SFJ1QCfgg0n9j7ZVjJX8cOSyqoDF3LharerpVGB3lnXzAufn98Bbe61 +Gk/RZt2cUqS4VoWn6O/xJHVp4rfjhNUAiyOV8qk1qXINi/cOkmwDsdnmsXw+L3f yTHE9Cc421/07lgOfkp4pIpWB4XAVgQQC/yVy2+n0BXLjHQpOk6kstZVrSf3gYM5 0h58MYguKgRJd3K0Lvb2fbOToJ3dk3hgdZyOU50Xn6/8LtgexSij4us252x68czk y1cPbMVRssDmgeJNJs0QfAUxgR1gdgadYxdxIoH3JXyve9cVKTOMcH9xOTtGtQ8g == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudeivddgkeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefvhffukffffgggtgfgsehtkeertd dtfeejnecuhfhrohhmpeffrghnucfnrghnghhilhhlvgcuoegurghnsehlrghnghhilhhl vgdrohhrgheqnecuggftrfgrthhtvghrnhepfeevfffhudevveduhfejtefgueekueevvd elkeehgfefffeufeeuleethfehveejnecuffhomhgrihhnpehlrghnghhilhhlvgdrohhr ghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegurg hnsehlrghnghhilhhlvgdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Sep 2021 11:07:36 -0400 (EDT) To: "freebsd-questions@freebsd.org" From: Dan Langille Subject: auditdistd - audit trail file retntion Cc: Pawel Jakub Dawidek Message-ID: Date: Mon, 20 Sep 2021 11:07:34 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:52.0) Gecko/20100101 PostboxApp/7.0.49 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4HCrmv3R0Xz4c9K X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=langille.org header.s=fm2 header.b=cS3Br1UY; dkim=pass header.d=messagingengine.com header.s=fm3 header.b="s7/SKQ8t"; dmarc=pass (policy=none) header.from=langille.org; spf=pass (mx1.freebsd.org: domain of dan@langille.org designates 66.111.4.26 as permitted sender) smtp.mailfrom=dan@langille.org X-Spamd-Result: default: False [-5.10 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.26]; RWL_MAILSPIKE_GOOD(0.00)[66.111.4.26:from]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[langille.org:+,messagingengine.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[langille.org,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:11403, ipnet:66.111.0.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.26:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[langille.org:s=fm2,messagingengine.com:s=fm3]; FREEFALL_USER(0.00)[dan]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Sep 2021 17:16:00 -0000 Hello, I am using auditdistd on FreeBSD 11.4 and 12.2 - I write about audit trail files retention. Is there an option to dispose of older logs in /var/audit/dist ? So far, it seems like a custom cronjob is in order. Something like:     /usr/bin/find /var/audit/dist -type f -mtime +7 -exec rm {} \; FYI: I have read up about auditd, /etc/security/audit_control, and the audit -e option. They do not apply to auditdistd. Thank you. -- Dan Langille - dan@langille.org https://langille.org/