Hey, everybody. I am just starting to learn wazooh and I am unable to add to the agent configuration exceptions for two windows log events. When saving the agent configuration I get the following error: wazuh-agent: ERROR: Could not EvtSubscribe() for (Security) which returned (15001).
Windows events:
....{
"agent": {
"ip": "10.*.*.*",
"name": "agent019",
"id": "019"
},
"manager": {
"name": "wazuhsrv"
},
"data": {
"win": {
"eventdata": {
"targetLogonId": "0x3930b325",
"targetUserName": "MAIN-RU$",
"targetDomainName": "DOMAIN",
"targetUserSid": "S-1-5-18",
"logonType": "3"
},
"system": {
"eventID": "4634",
"keywords": "0x8020000000000000",
"providerGuid": "{54849625-5478-4994-A5BA-3E3B0328C30D}",
"level": "0",
"channel": "Security",
"opcode": "0",
"message": ..........
and......{ "agent": {
"ip": "10.*.*.*",
"name": "agent019",
"id": "019"
},
"manager": {
"name": "wazuhsrv"
},
"data": {
"win": {
"eventdata": {
"targetLogonId": "0x3930b2ed",
"targetUserName": "LDAPAuthTest",
"targetDomainName": "DOMAIN",
"targetUserSid": "S-1-5-21-2607927850-10554458-353216286-7239",
"logonType": "3"
},
"system": {
"eventID": "4634",
"keywords": "0x8020000000000000",
"providerGuid": "{54849625-5478-4994-A5BA-3E3B0328C30D}",
"level": "0",
"channel": "Security",
"opcode": "0",
"message": ......
Agent Configuration:
<localfile>
<location>Security</location>
<log_format>eventchannel</log_format>
<query>Event/System[EventID != 5145 and EventID != 5156 and EventID != 5447 and
EventID != 4656 and EventID != 4658 and EventID != 4663 and EventID != 4660 and
EventID != 4670 and EventID != 4690 and EventID != 4703 and EventID != 4907 and
EventID != 5152 and EventID != 5157] or Event/Eventdata[TargetUserName != LDAPAuthTest and TargetUserName != MAIN-RU$]</query>
</localfile>