Generating alerts from ossec ( server- agent ) model

Posted by batman on Server Fault See other posts from Server Fault or by batman
Published on 2012-08-28T09:16:42Z Indexed on 2012/08/28 9:40 UTC
Read the original article Hit count: 279

Filed under:
|

I'm very new to OSSEC. I use a server-agent model. I wish to generate alert for the following actions ( in agent side ):

1) Sample Alert for delation of logs

I added the rules for these in agent's ossec.conf using <localfile> tags. Like this :

  <localfile>
    <log_format>syslog</log_format>
    <location>/var/log/syslog</location>
  </localfile>

In my server's ossec.conf. I added the following :

<global>
    <email_notification>yes</email_notification>
    <email_to>xxxx@xxxxxx</email_to>
    <smtp_server>smtp.gmail.com</smtp_server>
    <email_from>xxxx@xxx</email_from>
  </global>

And I restarted my server. Now I tried to delete the agents syslog file using rm syslog. But no alerts has been triggered.

Where I'm making the mistake?

© Server Fault or respective owner

Related posts about ubuntu

Related posts about ossec