Hi,
I am testing to enrich logs based on host-metadata from filebeat agent (v. 7.7.0).
Logstash version in this test env. is 7.7.0 and cidr plugin version is 3.1.3.
Although array field support for address input is added to cidr plugin in v. 3.1.3 as https://github.com/logstash-plugins/logstash-filter-cidr/issues/19 issue is closed, logstash/cidr still fails with Invalid IP address, skipping {:address=>"%{[host][ip]}
.
I am aware of using address => [ "%{[host][ip][0]}" , "%{[host][ip][1]}", ... ]
as a workaround but it is messy.
Has anyone experienced this issue and have a solution for this?
Logstash configuration file:
input {
beats {
port => 5044
host => "127.0.0.1"
ssl => false
}
}
filter {
cidr {
add_tag => [ "privat-nett" ]
address => [ "%{[host][ip]}" ]
network => [ "10.0.2.0/24" ]
}
}
output {
file {
path => "/var/log/logstash/test.log"
}
}