I’m collecting dns logs from packetbeat on a dns windows server and really often I receive the 1000 filed limit error on one custom index, I have an output to forward these messages to another system. I would drop all unnecessary fields like packetbeat_dns_additionals_N_type where ‘N’ is a increasing number.
I have a rule that is dropping some fields but I don’t know if it possible to drop all messages with a wildcard like this:
rule “function removeFields”
when
has_field(“beats_type”)
then
remove_field(“packetbeat_dns_additionals_*”);
end
I’ve checked to increase the 1000 fields limit but I tought to filter out fields because I need only few,
there’s a way to drop all field and index only the few needed for my purpose ?