[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dhcp-users
Subject:    Re: Debu messages in ISC???
From:       Edward DeLargy <eddelargy () gmail ! com>
Date:       2012-03-30 13:12:21
Message-ID: CAJKFPBhJDaK+s7qJfJhRR6U6BnzkN1eGpVsCW5kajhLqPb0_Fw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@spamcop.net> wrote:

> On 29.03.2012 15:42, ameen.shajahan@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 =96cf /etc/dhcpd.conf =96lf /var/db/dhcpd.leases eth0  (with=
 no
> > =96d 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@lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>

[Attachment #5 (text/html)]

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&#39;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:<br> <br>
			
				<i><b>filter f_dhcpd { facility(daemon) and match(&#39;dhcpd:&#39;); };<br>
destination dhcpmessages { file(/var/log/dhcpd.log); };<br>
log { source(src); filter(f_dhcpd); destination(dhcpmessages);};
			
		</b></i><br><br><i><b>You have to the edit the filter f_messages to exclude DHCP \
messages.  </b></i><br><br>Hope this helped...<br><br>Ed<br><br><div \
class="gmail_quote">On Thu, Mar 29, 2012 at 9:57 AM, Gerald Vogt <span \
dir="ltr">&lt;<a href="mailto:vogt@spamcop.net">vogt@spamcop.net</a>&gt;</span> \
wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div class="im">On 29.03.2012 15:42, <a \
href="mailto:ameen.shajahan@wipro.com">ameen.shajahan@wipro.com</a> wrote:<br> &gt; \
Hi Edward,<br> &gt;<br>
&gt;                 I have DHCP conf file(dhcpd.conf) in /etc/ path with<br>
&gt; log-facility local7;   option enabled.<br>
&gt;<br>
&gt;                 And i have run the dhcp server as mentioned below<br>
&gt;<br>
&gt; ./dhcpd -4 –cf /etc/dhcpd.conf –lf /var/db/dhcpd.leases eth0  (with no<br>
&gt; –d option).So it write all the debug messages to /var/log/messages.<br>
&gt;<br>
&gt; But i need the debug messages tp print in  separate file called<br>
&gt; /var/log/dhcpd.log.<br>
&gt;<br>
&gt; So i have done some change in /etc/syslog.conf file with  local7.*<br>
&gt;  /var/log/dhcpd.log<br>
&gt;<br>
&gt; But  still dhcp server writing the debug messages to /var/log/messages.<br>
<br>
</div>Did you restart the syslog server after changing syslog.conf?<br>
<br>
And remember, unless you add a &quot;local7.none&quot; to the log line for<br>
/var/log/messages everything will also be logged into /var/log/messages.<br>
<span class="HOEnZb"><font color="#888888"><br>
Gerald<br>
</font></span><div class="HOEnZb"><div \
class="h5">_______________________________________________<br> dhcp-users mailing \
list<br> <a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" \
target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br> \
</div></div></blockquote></div><br>



_______________________________________________
dhcp-users mailing list
dhcp-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic