Hello,
Thank you for using Wazuh!
When you mention logs, do you mean the alerts in Elasticsearch Indices or the alerts in your Wazuh manager?
I'll explain a little about how it works:
The alerts are stored in two locations, in your Wazuh manager in the directory /var/ossec/logs/alerts by Day/Month/Year. These alerts are not automatically rotated and in case of a problem with Elasticsearch they could be re-indexed. This is what we call "Cold storage alerts".
On the other hand, we have the alerts already indexed to Elasticsearch. These alerts are located in Indices/shards and take up space on your Elasticsearch server. These are the alerts you see in your Kibana or Wazuh UI. We call this "Hot Storage".
These alerts/indexes can be configured to be deleted every certain period of time with retention policies:
https://wazuh.com/blog/wazuh-index-management/
I hope this information helps. Please let me know if you have any other questions.