frequency of evaluation of functions

Tags:

#1 marko

if we setup a function to identify the IP of the client server and based on that answer, to then forward logs based on that IP info

how many times would this logic be evaluated?
 
does it evaluate each time a log is processed? or just upon application start?
#2 b0ti Nxlog ✓
#1 marko
if we setup a function to identify the IP of the client server and based on that answer, to then forward logs based on that IP info how many times would this logic be evaluated?   does it evaluate each time a log is processed? or just upon application start?

The Exec directive is evaluated once for each event record.