Hello Javier,
Thanks for the quick reply.
For the tasklist command :
Output is in french :
ossec: output: 'tasklist':
Nom de l'image PID Nom de la sessio Num�ro de s Utilisation
========================= ======== ================ =========== ============
System Idle Process 0 Services 0 8 Ko
System 4 Services 0 32 Ko
Registry 92 Services 0 14�300 Ko
smss.exe 308 Services 0 244 Ko
csrss.exe 424 Services 0 1�844 Ko
wininit.exe 500 Services 0 456 Ko
The rule for this is :
<rule id="100042" level="3">
<if_sid>530</if_sid>
<match>^ossec: output: 'tasklist'</match>
<description>running procs</description>
</rule>
The same template is used for quser :
<rule id="100043" level="3">
<if_sid>530</if_sid>
<match>^ossec: output: 'quser'</match>
<description>open sessions</description>
</rule>
This isn't the only command that doesn't work, I've had this problem before and had to search for other replacements to achieve what I wanted.
Thanks.