Good afternoon,
I was trying to follow the article about implementation scheduled task use case for Wazuh, however even though I have input all needed configuration described, the triggered scheduled task does not even appear in the Wazuh console.
I think it failed somewhere when I try to create Active response script and after that active response log should be generated (but it's not generating by itself in my case/ partially generating main schema at times):
I put the Active response script manually as it is to the specified file path: C:\Program Files (x86)\ossec-agent\active-response\bin\analyze-scheduled-task.cmd
The following log sample is gotten in the active response log file (C:\Program Files (x86)\ossec-agent\logs\scheduled-tasks.log) proving that the script works. (However it is not generating in my case/ partially generating schema), I have created the same file manually as empty initially.
What could be the issue that the response script is not generating/ partially generating?
I have tried the following:
- checked the script permissions
- could it be a version conflict? I am currently running Wazuh server 4.7 however this article describes how it's done on the Wazuh server 4.3.3.
- changed the configuration on the wazuh agent and wazuh server to the following (identical on both). Is this configuration correct?
<!-- Wazuh Test based on Wazuh Community Advice -->
<command>
<name>analyze-scheduled-task</name>
<executable>C:\Program Files (x86)\ossec-agent\active-response\bin\analyze-scheduled-task.cmd</executable>
<timeout_allowed>yes</timeout_allowed>
</command> <active-response>
<command>analyze-scheduled-task</command>
<location>local</location>
<level>7</level>
<timeout>600</timeout>
</active-response>
However, it does not seem to work. It does not generate the alerts on the dashboard. However, I have noticed the following even before the change that I did above ( Please see the attached file):
The scheduled-task.log (that I created) file was initially empty, but it started to fill up with the information. I am not sure if my change has broken anything. Or how can I further proceed.
Thank you.