Federico,
I'm sending this reply again since I think I hit the "reply to author" button instead of "reply to all".
First, you need to set up your "localfile" block on the Agent's config file as follows:
<localfile>
<location>Application</location>
<log_format>eventchannel</log_format>
</localfile>
For all of the Application channel events to be forwarded to the Wazuh Manager.
Afterwards, you will need to enable logging of all incoming events to /var/ossec/logs/archives/archives.json by setting the "logall_json" variable to "yes" in /var/ossec/etc/ossec.conf.
Whenever you modify the ossec.conf file you need to restart the Manager by running:
systemctl restart wazuh-manager
With these two settings in place, any new events coming in from the Symantec Endpoint Protection software should be logged in raw form to the archives.json file.
You will need to trigger an event from the software on your endpoint, making sure it is visible in the Windows Event viewer. If it is, you will also need to make sure it's reaching archives.json.
With that, you will know we are pulling the logs correctly.
At this stage, these events may trigger one of our default Symantec rules:
If you don't see any alerts, you will need to write custom rules for this application.
The process is documented in the following links:
Basically you will have to take the json lines from archives.json and use the json fields within to create the conditions under which the new rules will be triggered.
You can share the pertinent archives.json lines with me if you need help setting up those new rules. I can provide some example custom rules based on your sample data for you to understand how to build your own.
Hopefully this will point you in the right direction. Let me know if anything needs clarifying.
Regards,
Federico
On Tuesday, December 13, 2022 at 9:25:37 AM UTC-3 Federico Lozan wrote:
Hello, how do I get wazuh to raise the "Symantec" events?
Add the following code so it doesn't work for me:<localfile>
<location>Symantec Endpoint Protection Manager</location>
<log_format>eventchannel</log_format>
</localfile>
The events are here:
Thanks