Wazuh by default stores its alerts in two files,
alerts.json and
alerts.log, in
/var/ossec/logs/alerts folder that
contains only the alerts of the current day. It is not advised to delete these files, as you may incur in data loss. However, files located in the
/var/ossec/logs/archives/ folder are no longer used and can be safetly be deleted (
keep in mind the historic backup files will be permanently lost).
Additionally, the option
logall or
logall.json on the manager's
ossec.conf Wazuh will store the archives in
/var/ossec/logs/archives with the same structure of the alerts logs. These logs contains every log that has reached the manager, regardless if an alert was generated or not, and for that reason they will use more space than the alert logs. It is recommended to disable the
logall or
logall_json options unless you need them, to reduce the storage requirements of the Manager.
More info:
https://documentation.wazuh.com/current/user-manual/reference/ossec-conf/global.html#logallhttps://documentation.wazuh.com/current/user-manual/manager/wazuh-archives.html#enabling-the-wazuh-archivesHope it helps!