From the shared details, the <localfile> configuration looks fine. Please ensure that the file path mentioned in the <location> tag is the complete file path.
On the Wazuh agent, check whether the log file is being monitored properly:
cat /var/ossec/logs/ossec.log | grep -iE "Analyzing file"After running the above command, if the log file is being monitored, it should show output similar to:
In your case, it should also show the /nsm/suricata/eve-*.json file path in the output.
If it is not showing, then check whether there are any error or warning logs:
If there are any errors, please share the full output of the above commands with us for further analysis.
If there are no errors and the logs show that the file is being analyzed, then the next step is to verify whether the logs are reaching the Wazuh manager.
For that, we need to enable archives.json logging on the Wazuh manager. By default, it is disabled.
This helps confirm whether the events are being ingested into the Wazuh manager.
Note: - When archives.json logging is enabled, Wazuh will start logging all raw events ingested by the manager, which can significantly increase disk usage. After troubleshooting, please disable it again to avoid unnecessary disk consumption.
Replace <related string> with a relevant value from the log.
If the command returns logs, it confirms that the events are being ingested into the Wazuh manager for analysis.
After collecting the logs, disable logall_json in the ossec.conf file to avoid excessive disk usage.
Please share a sample log collected from archives.json. This will help verify whether the logs match the default Wazuh decoders and rules or whether custom decoders and rules are required.
Also, please share the Wazuh manager /var/ossec/logs/ossec.log file so we can check whether there are any analysis or ingestion errors on the manager side.
You can also refer to the Wazuh documentation for creating custom decoders and rules.
--
You received this message because you are subscribed to a topic in the Google Groups "Wazuh | Mailing List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wazuh/tQ72FfpnKdk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wazuh+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wazuh/c3935276-8619-4402-878f-bf9bd258e21bn%40googlegroups.com.
Hi,
From the shared details, there does not seem to be any error on the agent side related to monitoring. I replicated the same configuration on my end, and it is working fine. I have attached a screenshot for your reference.
Could you please follow the steps I shared earlier to check the archives.json file and verify whether the events are being ingested into the Wazuh manager?
This will help us confirm whether the events are reaching the manager. If they are being ingested, please share the sample logs with us so we can test them on our end and confirm whether any default rules are triggering for those events.
Also, please share some sample logs from the /nsm/suricata/eve-*.json file. Using those logs, we can verify the decoder and rules more accurately.
