You can use the command "logger" in a bash script to write to the system syslog (for example like /var/log/messages). From there it's trivial to make an ossec rule.

Hope that helps.

Artien Bel
Security Engineer

+31 (0)6 200 302 34
+31 (0) 570 767 381

Wilt u mij vertrouwelijke of gevoelige data sturen, gebruik encryptie via SSL (S/MIME) of PGP.
Mijn public PGP key kunt u vinden op de PGP server en MIT server.

If you want to send me confidential or sensitive data, please use encryption via SSL (S/MIME) or PGP.
My publick PGP key is available on the PGP server and the MIT server.

On 03/19/2014 07:23 AM, Siddharth Deo wrote:
Hi everyone.I have a situation where i have configured some cron jobs to run every 30 minutes.It is important for me to know that these jobs get executed on their scheduled time.Is it possible to write a log to the 'data' table for this event of 'cron job getting executed'. FYI,the cron job will execute a shell script.
--

---
You received this message because you are subscribed to the Google Groups "ossec-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to