I would like to try a reverse-dns before storing the firewall logs. I know this is possibile in logstash but i don't know if syslog-ng can be configured to do the same. Actually my logs coming from pfsense are parsed with a csv parser:
parser p_pfsense {
csv-parser(
columns("PFSENSE.Rule_Number","PFSENSE.Sub_rule_number",...)
delimiters(",")
);
};
Then I already have all firewall fields such as ${PFSENSE.sourceip}, but I don't know if a fields can be processed by external script before storing it.
Please mind that I'm not asking for the hostname (${HOST}) of the sender, but of a ip field inside the log message.