Hi.
For example, given configuration:
processors:
- dns:
type: reverse
success_cache:
min_ttl: 2000m
Results with default SuccessCache MinTTL (1m):
DEBUG [processor.dns] dns/dns.go:67 DNS processor config: {CacheConfig:{SuccessCache:{TTL:0s MinTTL:1m0s InitialCapacity:1000 MaxCapacity:10000} FailureCache:{TTL:1m0s MinTTL:1m0s InitialCapacity:1000 MaxCapacity:10000}} Nameservers:[] Timeout:500ms Type:reverse Action:append TagOnFailure:[] Fields:null Transport:udp reverseFlat:map[]} {"instance_id": 1}
The point is that this piece of code (see
):
// Config defines the configuration options for the DNS processor.
type Config struct {
CacheConfig
Nameservers []string `config:"nameservers"`
...
}
// CacheConfig defines the success and failure caching parameters.
type CacheConfig struct {
SuccessCache CacheSettings `config:"success_cache"`
FailureCache CacheSettings `config:"failure_cache"`
}
should work like:
// Config defines the configuration options for the DNS processor.
type Config struct {
SuccessCache CacheSettings `config:"success_cache"`
FailureCache CacheSettings `config:"failure_cache"`
Nameservers []string `config:"nameservers"`
...
}
But it doesn't.
Hi.
For example, given configuration:
Results with default SuccessCache MinTTL (1m):
The point is that this piece of code (see
beats/libbeat/processors/dns/config.go
Line 31 in bf3eace
should work like:
But it doesn't.