[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dhcp server log einstellungen



am 27.07.2010 06:18 schrieb b.hausmann:
> Elimar Riesebieter schrieb:
>> * b.hausmann [100726 21:22 +0200]:
>>>
>>> Wie kann ich dem DHCP Server abgewöhnen auf Daemon seine logs zu schieben?
>> 
>> dhcpd.conf(5)
>> 
>> /log-facility
>> 
> genau das hab ich ja gemacht
>> 
>>> log-facility local7;
> 
> Und er schreibt mir ja wie schon geschrieben die startinfos in die dhcpd.log nur den rest halt nicht.
> Deshalb bin ich ja so ratlos weil es auf der einen seite ja funktioniert nur halt nicht komplett. 

Habe mich an den Hinweis in der dhcpd.conf gehalten und alles in
Richtung "local7" umgebogen.

dhcpd.conf:
,----------------------------------------------------------------
| # Use this to send dhcp log messages to a different log file
| # (you also have to hack syslog.conf to complete the redirection).
|
| log-facility            local7;
`----------------------------------------------------------------

In der syslog.conf habe ich erst "local7" in meine gewünschte
Logfile umgelenkt und dann mit "local7.none" verhindert, dass die
globale syslog-File etwas abbekommt.

syslog.conf:
,----------------------------------------------------------------
| local7.* /var/log/dhcp.log
| local7.none
`----------------------------------------------------------------

Jedenfalls sind bei mir nun alle dhcp-Einträge *nur* in
"/var/log/dhcp.log".

HTH,
Peter


Reply to: