Hello,
Thank you Nicolas for your reply.
In the last days I managed to complete the powershell script that gets the Defender logs I'm interested in from Microsoft Graph in JSON format. Now I'm trying to send these logs to Wazuh but I found a new problem. At the moment I'm trying to do that using the Windows Agent. I changed the agent's configuration including the following lines:
<localfile>
<log_format>json</log_format>
<location>C:\Users\my_user\Documents\LatestIncidents</location>
</localfile>
I've also changed the logall_json to yes on manager's side and restarted it. But on my agent's log I see the following messages:
2023/06/16 10:39:25 wazuh-agent: ERROR: (1103): Could not open file 'C:\Users\my_user\Documents\LatestIncidents' due to [(5)-(Access is denied.)].
2023/06/16 10:39:25 wazuh-agent: INFO: (1950): Analyzing file: 'C:\Users\my_user\Documents\LatestIncidents'.
There's a file with json extension on this folder but it's not mentioned on the logs. I tried to give full control permission on this folder for everyone but the result was the same.
What would be the necessary permissions for the agent to be able to read these logs?
Also, if there's a better way to send these logs to Wazuh please let me know. This is the only idea I had so far.
Thanks in advance.