Hi
ismailctest,
If new log files are created inside the directory, take a look at this documentation on using wildcards for localfile:
However, I see some cons with the script proposed in the Mimecast documentation regarding its use with
localfile. For example, you should lower the
log_file_threshold variable within the script since
localfile only allows the monitoring of 1000 files at a time. In addition, new files created are scanned every 64 seconds by default, so there could be some delay compared to your previous behavior. Given this and since your script managed to forward syslogs before, I think it's better to continue investigating why this doesn't work anymore.
Could you check if any errors are displayed when executing the Mimecast script? Is it possible that the IP of the syslog_server variable (in the script) does not match the one of the manager now (in case it is not localhost)? Do you find any error about it in the ossec.log of your manager?
Regards,
Selu.