From owner-freebsd-questions@FreeBSD.ORG Fri Mar 27 00:32:57 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 63AEF7C6 for ; Fri, 27 Mar 2015 00:32:57 +0000 (UTC) Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2AA43347 for ; Fri, 27 Mar 2015 00:32:57 +0000 (UTC) Received: by igbud6 with SMTP id ud6so7430917igb.1 for ; Thu, 26 Mar 2015 17:32:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:from:date:message-id:subject:to :content-type; bh=nJhJM2S6XEYMY73Qr4UAzQK82bAUSiNiAxL2h12zpeo=; b=yULVJWoBFBQsAuink4zkGrGHbz8p7GLToyT1H6Fz7jeKLsqYXn2bjKT7F+nc8qZ7fB SAR4gbqH/P7ZV25lc9s/2pRhrA7rR4yXPHmBBnR/y9prJnAvOAEGqoTogewEdHrMzkvX 2AjXQCf6jNjE9HQ9agsNKtamf0gKw/sy6bvy/+gFIfmkeuO7g8N0O1GCEyMChl61m+mw bZhdTdcUYy1lI0YjyQZnqKJC8EnOrShTifcrE+ipJdL9KLwQmOb/ms4c3cbNFHZiqVxL tLsshhYNiO13rIP/sivDEMABikje+KCs4egiba8rXZe8P+AqQp/UiWVg/H6E2xlQpqoH keCg== X-Received: by 10.107.13.144 with SMTP id 138mr25278399ion.24.1427416376477; Thu, 26 Mar 2015 17:32:56 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <55144D86.2080105@paz.bz> From: Ben Woods Date: Fri, 27 Mar 2015 00:32:55 +0000 Message-ID: Subject: Re: dhcpd logging To: Jim Pazarena , freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2015 00:32:57 -0000 Why not continue to use syslog, but tell it to log dhcpd to a separate log file? Just add these two lines at the bottom of your /etc/syslog.conf (above the !* line): !dhcpd *.* /var/log/dhcpd.log More information is in syslog.conf(5) man page, or here: https://www.freebsd.org/doc/en/books/handbook/configtuning-syslog.html Regards, Ben On Fri, 27 Mar 2015 at 2:23 am Jim Pazarena wrote: > I want to place dhcpd log messages in a file rather than the > syslog facility LOG_DAEMON. > So I see that with the command line flag "-d" I can direct messages > to stderr. > > How can I adjust the normal rc.conf to actually TELL the system > the file name? Is there a way? Also, I would want to append to the > file via ">>" rather than clobber it every time I reload dhcpd. > > Thanks ! > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe > @freebsd.org" >