thias / puppet-bind

Puppet BIND DNS server module
Other
26 stars 108 forks source link

implement optional logging w/ custom_logging option #92

Open alexconrey opened 6 years ago

alexconrey commented 6 years ago
Reason

When adding data collectors (ie. prometheus exporters) - its nice to have segregated logging as an option. Cuts down on the amount of data the collector must parse as well as allows for easier debugging when applied properly (YMMV.)

Example configuration

This is my current setup (with all of the fun stuff redacted)

bind::server::conf {'/etc/named.conf':
custom_logging => {
channel => {
security_log => {
file => '"/var/log/named/security.log" versions 3 size 30m',
severity => 'dynamic',
print-time => 'yes',
},
}, 
category => {
security => { 
security_log => '', 
},
},
},
}