Hi Wazuh community,
I am facing an issue with the Wazuh API connection. The dashboard shows the API status as Offline with an error message: “The API connections could be down or inaccessible.”
Host: https://172.18.0.5
Port: 55000
Status: Offline
Updates status: Error checking updates
Can someone please guide me on how to resolve this issue?
Thanks in advance for your support!
If it is listening, you will see output.
If not, there will be no output.
You can also verify which process is using port 55000:
ps -fp <pid>Hi Bony,
Thank you for the guidance. I have run the commands you provided and attached the full output in a text file for your reference.
Could you please advise the next steps based on these results?
Thanks in advance.
From the shared Wazuh manager status check, it shows that all the daemons are inactive, including the wazuh-apid. Also, the ossec.log indicates that there is an incorrect decoder configuration in the local_decoder.xml file and an incorrect configuration in the Wazuh manager ossec.conf file.
First, check the local_decoder.xml file for any syntax errors in the decoder located at:
/var/ossec/etc/decoders/local_decoder.xml
You can also refer to the Wazuh decoder syntax documentation to validate the decoder syntax.
After resolving the decoder issue, verify if there are any syntax errors in the Wazuh manager ossec.conf file located at:
/var/ossec/etc/ossec.conf
Check if there is any element called api that is incorrectly configured in the ossec.conf file.
You can refer to the Wazuh configuration file documentation for guidance.
After fixing the above issues, restart the Wazuh manager and check the status:
/var/ossec/bin/wazuh-control restart
/var/ossec/bin/wazuh-control status
Check and confirm that all services are running properly.
If you need further assistance in analyzing the decoder and configuration files, please share the complete local_decoder.xml file and ossec.conf file with us for further review.
Hi Bony,
Thank you for your response. I have attached the text document containing the details for your reference.
Currently:
FortiGate log integration is working fine.
Seqrite logs are still not being ingested.
The Wazuh dashboard issue is also persisting.
Please review the attached file and advise on the next steps to resolve the Seqrite log integration and dashboard issues.
Best regards,
There is no <decoders> tag in Wazuh decoder syntax.
For child decoders, you should use the <order> tag to map the field values to field names.
To extract fields, you must use <regex> instead of <prematch>.
I recommend going through the Wazuh decoder syntax documentation for detailed guidance.
You can also refer to the Wazuh regex documentation to correctly build regex patterns.
There is no <group_config> tag in Wazuh rules syntax.
In your first custom rule (id="100201"), you set rule 18106 as the parent. This is incorrect because rule 18106 is designed for Windows logon events and cannot be used as a parent for Fortigate events.
For Fortigate events, you should use rules from: /var/ossec/ruleset/rules/0391-fortigate_rules.xml
or any other relevant custom rules.
Please refer to the Wazuh rules syntax documentation for more details.
Remove both the custom decoder and rule files from the Wazuh Manager.
Restart the Wazuh Manager service: