[Kea-users] Logging configuration not working
Ruben d'Arco
cyclops-kea at prof-x.net
Wed Jan 27 14:09:02 UTC 2016
Hi,
Below is my current configuration file. With that configuration file, the logging still seems to provide debug output.
It's kea-1.0.0 build from the tar source.
Output of the logging:
2016-01-27 14:07:00.340 INFO [kea-dhcp4.dhcp4/28871] DHCP4_STARTED Kea DHCPv4 server version 1.0.0 started
2016-01-27 14:07:00.340 DEBUG [kea-dhcp4.packets/28871] DHCP4_BUFFER_WAIT waiting for next DHCPv4 packet with timeout 1000 ms
2016-01-27 14:07:10.339 DEBUG [kea-dhcp4.dhcpsrv/28871] DHCPSRV_TIMERMGR_RUN_TIMER_OPERATION running operation for timer: reclaim-expired-leases
2016-01-27 14:07:10.339 DEBUG [kea-dhcp4.alloc-engine/28871] ALLOC_ENGINE_V4_LEASES_RECLAMATION_START starting reclamation of expired leases (limit = 100 leases or 250 milliseconds)
2016-01-27 14:07:10.339 DEBUG [kea-dhcp4.dhcpsrv/28871] DHCPSRV_MEMFILE_GET_EXPIRED6 obtaining maximum 101 of expired IPv6 leases
2016-01-27 14:07:10.339 DEBUG [kea-dhcp4.alloc-engine/28871] ALLOC_ENGINE_V4_LEASES_RECLAMATION_COMPLETE reclaimed 0 leases in 0.077 ms
2016-01-27 14:07:10.339 DEBUG [kea-dhcp4.alloc-engine/28871] ALLOC_ENGINE_V4_NO_MORE_EXPIRED_LEASES all expired leases have been reclaimed
2016-01-27 14:07:10.339 DEBUG [kea-dhcp4.dhcpsrv/28871] DHCPSRV_TIMERMGR_START_TIMER starting timer: reclaim-expired-leases
2016-01-27 14:07:10.339 DEBUG [kea-dhcp4.packets/28871] DHCP4_BUFFER_WAIT_INTERRUPTED interrupted wait for the next packet due to timeout, signal or external socket callback (timeout value is 1000)
2016-01-27 14:07:10.340 DEBUG [kea-dhcp4.packets/28871] DHCP4_BUFFER_WAIT waiting for next DHCPv4 packet with timeout 1000 ms
2016-01-27 14:07:20.340 DEBUG [kea-dhcp4.dhcpsrv/28871] DHCPSRV_TIMERMGR_RUN_TIMER_OPERATION running operation for timer: reclaim-expired-leases
2016-01-27 14:07:20.340 DEBUG [kea-dhcp4.alloc-engine/28871] ALLOC_ENGINE_V4_LEASES_RECLAMATION_START starting reclamation of expired leases (limit = 100 leases or 250 milliseconds)
2016-01-27 14:07:20.340 DEBUG [kea-dhcp4.dhcpsrv/28871] DHCPSRV_MEMFILE_GET_EXPIRED6 obtaining maximum 101 of expired IPv6 leases
2016-01-27 14:07:20.340 DEBUG [kea-dhcp4.alloc-engine/28871] ALLOC_ENGINE_V4_LEASES_RECLAMATION_COMPLETE reclaimed 0 leases in 0.067 ms
2016-01-27 14:07:20.340 DEBUG [kea-dhcp4.alloc-engine/28871] ALLOC_ENGINE_V4_NO_MORE_EXPIRED_LEASES all expired leases have been reclaimed
2016-01-27 14:07:20.340 DEBUG [kea-dhcp4.dhcpsrv/28871] DHCPSRV_TIMERMGR_START_TIMER starting timer: reclaim-expired-leases
2016-01-27 14:07:20.340 DEBUG [kea-dhcp4.packets/28871] DHCP4_BUFFER_WAIT_INTERRUPTED interrupted wait for the next packet due to timeout, signal or external socket callback
My configuration file:
{"Dhcp4": {
"interfaces-config": {
"interfaces": [ "p1p1" ]
},
"lease-database": {
"type": "memfile"
},
"valid-lifetime": 4000,
"dhcp-ddns": {
"enable-updates": true,
"qualifying-suffix": "lnd.prof-x.net",
"override-no-update": true,
"override-client-update": true,
"replace-client-name": false,
"max-queue-size": 1024
},
"subnet4": [{
"subnet": "192.168.0.0/24",
"reservation-mode": "out-of-pool",
"pools": [ { "pool": "192.168.0.150 - 192.168.0.200" } ],
"option-data" : [
{
"name": "domain-name-servers",
"code": 6,
"space": "dhcp4",
"csv-format": true,
"data": "192.168.0.100"
},
{
"name": "routers",
"code": 3,
"space": "dhcp4",
"csv-format": true,
"data": "192.168.0.1"
}],
"reservations": [{
"hw-address": "02:0f:b5:a2:66:bc",
"ip-address": "192.168.0.10",
"hostname": "wifi-extender"
},
{
"hw-address": "00:05:cd:2b:5e:45",
"ip-address": "192.168.0.11",
"hostname": "denon"
}]
}]
},
"DhcpDdns":
{
"tsig-keys": [],
"forward-ddns" : {
"ddns-domains": [{
"name": "lnd.prof-x.net.",
"dns-servers": [{ "ip-address": "127.0.0.1" }]
}]
},
"reverse-ddns" : {
"ddns-domains": [{
"name": "0.168.192.in-addr.arpa.",
"dns-servers": [{ "ip-address": "127.0.0.1" }]
}]
}
},
# Logging configuration starts here. It tells Kea servers to store
# all log messages (on severity INFO or more) in a file.
# debuglevel variable is used on DEBUG level only.
"Logging":
{
"loggers": [
{
"name": "kea-dhcp4",
"output_options": [
{
"output": "/usr/local/var/log/kea-dhcp4.log"
}
],
"severity": "INFO"
},
{
"name": "kea-dhcp6",
"output_options": [
{
"output": "/usr/local/var/log/kea-dhcp6.log"
}
],
"severity": "INFO",
"debuglevel": 0
},
{
"name": "kea-dhcp-ddns",
"output_options": [
{
"output": "/usr/local/var/log/kea-ddns.log"
}
],
"severity": "INFO",
"debuglevel": 0
}
]
}}
Kind regards,
Ruben d'Arco
More information about the Kea-users
mailing list