How to Optimize Wazuh Archive Storage on Manager and Indexer
Hi Wazuh Community,
We have enabled the following settings on our Wazuh Manager:
<logall>yes</logall>g
<logall_json>yes</logall_json>
We also enabled archive forwarding in Filebeat:
archives:
enabled: true
As I understand it, all events are stored locally on the Wazuh Manager under /var/ossec/logs/archives/, and Filebeat also sends the archive events to the Wazuh Indexer as wazuh-archives-*.
Our concern is that the archive files on the Manager can grow very quickly and eventually fill the Manager disk.
What is the recommended way to optimize this setup?
- Can we keep only a short retention period (for example, 7 days) for archive files on the Wazuh Manager after confirming they have been successfully indexed?
- Can the Wazuh Indexer be used as the main long-term storage for
wazuh-archives-*? - What is the recommended method to automatically clean up old archive files on the Manager without affecting Filebeat or losing events?
- What is the recommended retention method for
wazuh-archives-*on the Indexer to prevent the Indexer disk from becoming full as well?
We want to keep archive collection enabled while preventing both the Manager and Indexer storage from filling up.
Thank you.