Greetings Wazuh Team,
We are encountering an issue on RHEL 7 systems where Wazuh logs are not being generated beyond a single entry. The ossec.log file only contains the following line:
Upon verifying the archived logs under /var/ossec/logs/wazuh/2026/Apr/, we observe the same behavior, with no additional log entries being recorded.
Restarting the Wazuh agent service temporarily resolves the issue and normal logging resumes. However, performing service restarts across hundreds of agents is not a feasible long-term solution.
Could you please help identify the possible cause of this issue and recommend a scalable solution?
Thank you.
Hello,
From the information you provided, the Wazuh agent is running normally. All the agent processes are active, and the service has been running for more than two weeks. The daily log rotation is also happening correctly.
The line you see in the log:
2026/04/14 00:00:10 wazuh-agentd: INFO: Starting new log after rotation.
is expected. This message appears when the agent rotates its internal logs.
It is important to note that /var/ossec/logs/ossec.log only stores internal agent messages. It does not have the security alerts or events that are sent to the Wazuh manager. If the agent is running without warnings or errors, the log file can remain almost empty and may only show rotation messages.
The rotated logs you checked under /var/ossec/logs/wazuh/2026/Apr/ also show normal rotation behavior.
Since restarting the agent temporarily shows new log entries, first verify whether the agent continues sending events to the manager while the log file looks empty.
If alerts are still visible on the Wazuh manager
/var/ossec/logs/alerts/alerts.json or dashboard, then the agent is working correctly, and the behavior is simply due to very low internal logging.
You can verify the agent status from the manager with:
/var/ossec/bin/agent_control -i <agent_id>
If you want to confirm that logging is still working, you can temporarily increase the debug level on the agent. Edit the file:
/var/ossec/etc/local_internal_options.conf
and add:
logcollector.debug=2
Then restart the agent:
systemctl restart wazuh-agent
This will increase the logging level, and you should see more entries in ossec.log.
Also, there is a GitHub discussion about logcollector behavior after log rotation:
https://github.com/wazuh/wazuh/issues/26778
However, that discussion refers to changes planned for Wazuh 5.x, so it is not directly related to environments running Wazuh 4.x like yours.
If possible, please confirm whether the agent is still sending alerts to the manager while the log file shows only the rotation entry. That will help determine whether this is only a logging verbosity issue or something else.
Additionally, there is a warning related to tag syntax in the command module. Please remove the tag syntax, and to know/learn about command monitoring configuration, please refer to https://documentation.wazuh.com/current/user-manual/capabilities/command-monitoring/configuration.htmlThere are no log entries present in /var/ossec/logs/alerts/alerts.json on the associated manager. The agent details have been verified using /var/ossec/bin/agent_control -i <agent_id>.
The primary objective of this case is to address that the agents are not only failing to generate logs, but are also not visible in the Wazuh console. Despite this, the agent.conf contains the correct server configuration.
During initial troubleshooting to determine why the agents are not appearing in the console, it was observed that the ossec.log file is empty.
Please note that restarting the Wazuh agent service must be avoided, as multiple agents are experiencing the same issue.
Given that the required ports (1514/1515) are open, guidance is requested on the next steps to identify why the agents are not reporting to Wazuh