Hello!
Could you share more information about the issue?
Specifically, what type of data are you trying to ingest? a JSON file o Windows events? Could you share a sample of it?
Can you share the configuration you added for this in your Agent's configuration
- C:\Program Files (x86)\ossec-agent\ossec.conf
- C:\Program Files (x86)\ossec-agent\shared\agent.conf if using centralized configuration.
The agent's log file (
C:\Program Files (x86)\ossec-agent\ossec.log) should also mention it "reads" the file or if there's an issue with it (You can enable logging to
debug mode in the agent's
internal_options.conf).
Also, most of the times you'll need some
custom rule/s for these events. Have you added any? Could you share it?
In case you wanted to ingest a JSON file with log collector, you would need to add a module similar to next one:
<localfile>
<log_format>json</log_format>
<location>C:\Path\to\file.json</location>
</localfile>
Now if you need to ingest Windows events (configuration set by default on the Windows Wazuh agent), you need to have at least next modules:
<!-- Log analysis -->
<localfile>
<location>Application</location>
<log_format>eventchannel</log_format>
</localfile>
<localfile>
<location>Microsoft-Windows-Windows Defender/Operational</location>
<log_format>eventchannel</log_format>
</localfile>
<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]</query>
</localfile>
<localfile>
<location>System</location>
<log_format>eventchannel</log_format>
</localfile>
You can add other Windows Events channels by setting the Windows event channel of your choice in
location and
eventchannel in
log_format. You can also set a
query to filter Windows events.
Now, once this is set, you'll need to add some
custom rules for these events you're ingesting. Specially if you're ingesting a custom JSON file.
In case of Windows events, although Wazuh includes many rules for them, you might need to add rules for some specific Windows channels. In some case your event might end up triggering a level = 0 rule.
There's related information next:
I hope this helps! Let us know!