Debu messages in ISC???
Edward DeLargy
eddelargy at gmail.com
Fri Mar 30 13:12:21 UTC 2012
The last post seems like the fix but you could try a tag inside the
dhcpd.conf file. I have never done it and i don't think it would work but
the manipulation of syslog seems to be a best fix. I have looked to see if
anyone has tried and came up with an opensuse post:
*filter f_dhcpd { facility(daemon) and match('dhcpd:'); };
destination dhcpmessages { file(/var/log/dhcpd.log); };
log { source(src); filter(f_dhcpd); destination(dhcpmessages);}; *
*You have to the edit the filter f_messages to exclude DHCP messages. *
Hope this helped...
Ed
On Thu, Mar 29, 2012 at 9:57 AM, Gerald Vogt <vogt at spamcop.net> wrote:
> On 29.03.2012 15:42, ameen.shajahan at wipro.com wrote:
> > Hi Edward,
> >
> > I have DHCP conf file(dhcpd.conf) in /etc/ path with
> > log-facility local7; option enabled.
> >
> > And i have run the dhcp server as mentioned below
> >
> > ./dhcpd -4 –cf /etc/dhcpd.conf –lf /var/db/dhcpd.leases eth0 (with no
> > –d option).So it write all the debug messages to /var/log/messages.
> >
> > But i need the debug messages tp print in separate file called
> > /var/log/dhcpd.log.
> >
> > So i have done some change in /etc/syslog.conf file with local7.*
> > /var/log/dhcpd.log
> >
> > But still dhcp server writing the debug messages to /var/log/messages.
>
> Did you restart the syslog server after changing syslog.conf?
>
> And remember, unless you add a "local7.none" to the log line for
> /var/log/messages everything will also be logged into /var/log/messages.
>
> Gerald
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20120330/89c9f5bc/attachment.html>
More information about the dhcp-users
mailing list