hey guys
i wonder if it is possible to set a tag within the cidr filter depending on what ip (src or dst) matched the network.
this is my code so far.
cidr {
address => [ "%{src_ip}", "%{dst_ip}" ]
network => ['10.1.1.0/24']
add_tag => [ 'match_src' ]
}
So basically, i want the tag "match_src" if the source ip matched the network and "matched_dst" if the destination ip matched the network.
Is this possible? I know i could just use the cidr code 2 times, but i am worried about performance, since a large set of data will run through the filter.
many thanks in advance!!