Although the item log[XXX] is working fine and storing info in the history_log database table - I am wondering how to setup a trigger for the log file.
I tried using the str(XXX) but that did not appear to work - can anyone give me an example of a valid trigger on a log file?
FYI I've tried syntax such as this:
{hostnameX:log[/var/log/rsync.log].str(writefd)}=1
{hostnameX:log[/var/log/rsync.log].str(writefd)}=0
Thanks!
I tried using the str(XXX) but that did not appear to work - can anyone give me an example of a valid trigger on a log file?
FYI I've tried syntax such as this:
{hostnameX:log[/var/log/rsync.log].str(writefd)}=1
{hostnameX:log[/var/log/rsync.log].str(writefd)}=0
Thanks!
Comment