I have been trying to pass captured log to a perl script, however I can not seem to find the right way. Do you have any suggestions for correct way of sending captured log to a script for further processing?
I can activate this script with this but, I can't pass the captured message:
$ModLoad omprog
$template MyTemplateName,"some\n"
if $programname == 'arpwatch' and $msg contains 'new station' then {
action(type="omprog" binary="/tmp/somescript.pl" template="MyTemplateName")
}