I'm working on a filter for pfSense and would like to put the reverse resolved DNS name for the destination IP in a separate field. I've got it working partly, but not the way I want it to.
This works, but appends the resolved name to the dest_ip field which is not pretty:
Code: Select all
# dest_ip comes from a grok filter of the %{IP:dest_ip} type
dns {
reverse => [ "dest_ip" ]
}Code: Select all
dns {
add_field => [ "dest_fqdn", "%{dest_ip}" ]
reverse => [ "dest_fqdn" ]
action => [ "replace" ]
}The "action" parameter is mentioned in different syntax around the web. I've tried the following:
Code: Select all
action => "replace"
action => [ "replace" ]Am I missing something?
Lars