** Alert 1299088508.45319: - syslog,sudo
2011 Mar 02 09:55:08 vmg035->/var/log/auth.log
Rule: 5402 (level 3) -> 'Successful sudo to ROOT executed'
Src IP: (none)
User: root
Mar 2 09:55:07 vmg035 sudo: root : TTY=pts/1 ;
PWD=/opt/splunk/etc/apps/ossec/bin ; USER=root ;
COMMAND=/var/ossec/bin/agent_control -l
-Satish
<rule id="SOME_ID" level="0">
<if_sid>5402</if_sid>
<user>root</user>
<match>/opt/splunk/etc/apps/ossec/bin</match>
<description>Ignore splunk.</description>
</rule>
5402 or 5400
because before i used 5402 which didn't work than after i changed it
to 5400 and it resolved. still confused
created rules to ignore keywords in /var/ossec/rules/local_rules.xml
<rule id="100002" level="0">
<if_sid>5400</if_sid>
<match>agent_control</match>
<description>Events ignored for splunk</description>
</rule>
On Wed, Mar 2, 2011 at 1:01 PM, satish patel <sati...@gmail.com> wrote:
On Wed, Mar 2, 2011 at 3:57 PM, Nate Woodward
<nate.w...@the-connection.com> wrote:
> Looks to me like your original rule (with id_sid=5402) is only matching
> when the user executes sudo from the /opt/splunk/etc/apps/ossec/bin
> directory. Maybe try removing the <match> part?
>
>> -----Original Message-----
>> From: satish patel [mailto:sati...@gmail.com]
>> Sent: Wednesday, March 02, 2011 2:33 PM
>> To: ossec...@googlegroups.com