useful for managed/custom logs beyond puppet scope (separate config file)
useful for admins that wish to disable logging
defaults to true
adds custom_logging hash
relies on hash format of: { 'channel|category' => { name => {key => val} } }
named.conf equillivent
channel name {
key val;
};
category name {
key val;
};
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)
logging
adds
custom_logging
hash{ 'channel|category' => { name => {key => val} } }
named.conf
equilliventcategory name { key val; };
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