From owner-freebsd-questions@FreeBSD.ORG Sat Oct 11 16:33:43 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E4E1106569D for ; Sat, 11 Oct 2008 16:33:43 +0000 (UTC) (envelope-from kelly.terry.jones@gmail.com) Received: from hs-out-0708.google.com (hs-out-0708.google.com [64.233.178.240]) by mx1.freebsd.org (Postfix) with ESMTP id 5F8AC8FC22 for ; Sat, 11 Oct 2008 16:33:43 +0000 (UTC) (envelope-from kelly.terry.jones@gmail.com) Received: by hs-out-0708.google.com with SMTP id 54so445906hsz.11 for ; Sat, 11 Oct 2008 09:33:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=BL/LK6GM83Y80yzg8R/gMVQxlMZbZjzTWfekQIbYhJg=; b=KAHHZQmoyYOpXxaPLCU22SDVfOn1JqdKvjHhu8h/hkV8g5CE05q750Cifw/TCPWgUw sur6/YKsNTyJ0PN+ldbF62k+KptuMLxnLlZ8kPLvQqv+0Wh/GRsmHWgrU4ovG/1sQ76F eMmDmy/aV6PGCtpbfS/fi4L2mIDM+e9T9v6Rs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=HRMWYKNWog8YjwYQvm0X2Gdg5OvH89IdSyISBACg/eRWRcxdZVaGJWBkzspfuBbJcw wdsBkJuaYP7YHeA6hcuaNsfl8pO6rHmKMCbhbZpi/135qMvM1nkg/dgo24GAyEjfOpwB wWFh6kJ8ndSwzkTa+oImrBTH8PNV3hKSQreoM= Received: by 10.64.204.13 with SMTP id b13mr5798717qbg.46.1223742822307; Sat, 11 Oct 2008 09:33:42 -0700 (PDT) Received: by 10.65.103.7 with HTTP; Sat, 11 Oct 2008 09:33:42 -0700 (PDT) Message-ID: <26face530810110933o1403705o625586ac53b309fb@mail.gmail.com> Date: Sat, 11 Oct 2008 09:33:42 -0700 From: "Kelly Jones" To: freebsd-questions@freebsd.org, techtalk@linuxchix.org, nmlug@nmlug.org, nmosug-l@mailman.swcp.com MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: newsyslog naming scheme could be improved? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Oct 2008 16:33:43 -0000 newsyslog rotates logfiles so that messages.0.gz is yesterday's file, messages.1.gz is the day before's, etc. This is ugly. If I tell my fellow sysadmins that I ran this command: zfgrep 'bad thing' /var/log/messages.4.gz and found stuff, they may run it the next day and get different results because the file is now messages.5.gz Improving my cow-orkers intelligence would be the ideal solution, but has anyone considered tweaking newsyslog to name files messages.2008-10-05-12-00-00.gz or something. IE, give them a constant name that doesn't change and then delete them after how many ever days? -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile.