Hi Chappie,
Hope you are doing well. Thank you for using Wazuh.
Can you share the output of this command
cat /var/log/suricata/suricata.log | grep -i -E "Error"
tail -n 20 /var/log/suricata/suricata.log
From the endpoint where you have installed Suricata.
Also share the output of this command from Wazuh manager to find for there is any relevant error log in ossec.log
cat /var/ossec/logs/ossec.log | grep -i -E "error|warn"
Let me know the update on the issue.
Regards
Md. Nazmur Sakib
Hi Chappie,
To help me find the root cause.
Can you share the output of this command
cat /var/log/suricata/suricata.log | grep -i -E "Error"
tail -n 20 /var/log/suricata/suricata.log
From the endpoint where you have installed Suricata.
Also share the output of this command from Wazuh manager to find for there is any relevant error log in ossec.log
cat /var/ossec/logs/ossec.log | grep -i -E "error|warn"
Regards
Md. Nazmur Sakib
Hi Chappie,
Hope you are doing well today. Sorry for the late response.
- <Error> - [ERRCODE: SC_ERR_AFP_CREATE(190)] - Unable to find iface eth0: No such device
- <Error> - [ERRCODE: SC_ERR_AFP_CREATE(190)] - Couldn't init AF_PACKET socket, fatal error
- <Error> - [ERRCODE: SC_ERR_FATAL(171)] - thread W#01-eth0 failed
This indicates that the interface is not configured correctly. interface represents the network interface you want to monitor. Replace the value with the interface name of the Ubuntu endpoint. For example, enp0s1.
To solve this issue, check the name of your network interface and configure it accordingly in the /etc/sysconfig/suricata and /etc/suricata/suricata.yaml files.
# Linux high speed capture support
af-packet:
- interface: enp0s3
I hope this solves your issue. Let me know if you need any further help.
Regards
Md. Nazmur Sakib
--
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/4iEzz57tTlw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/6a77b168-1c5b-425e-9fc5-62b216e324f1n%40googlegroups.com.
Hi Chappie,
Have you added the configuration in agent’s ossec.conf or agent group configuration?
<localfile>
<log_format>json</log_format>
<location>/var/log/suricata/eve.json</location>
</localfile>
If you are still facing the issue, also share the current output of this command.
cat /var/ossec/logs/ossec.log | grep -i -E "error|warn"
Let me know the update on the issue.
Regards
Md. Nazmur Sakib
Hi Chappie,
The JSON decoder extracts each field from the log data for comparison against the rules for Suricata log.
It seems that the problem comes from a log with too many fields.
In the internal_options file, you can modify the maximum number of fields in a decoder.
Can you edit the /var/ossec/etc/internal_options.conf file and modify this entry? ~30 line
# Maximum number of fields in a decoder (order tag) [32..1024] analysisd.decoder_order_size=256
Can you change the value to 1024?.
Remember to restart the manager to apply this configuration.
If you want to see more information about this file, you can consult it here:
https://documentation.wazuh.com/current/user-manual/reference/internal-options.html
Regards
Md. Nazmur Sakib