Hi,
Wazuh generates several internal log files, including alerts.log, archives.log, alerts.json, and archives.json, which are located under /var/ossec/logs/. You can refer to
this document.
It is not recommended to change the default log path, since these files are part of the Wazuh internal architecture and expected in their default location.
A best practice is to configure
LVM for /var, so that /var/ossec/logs/ benefits from a dedicated volume. This way, you can resize the LVM at any time if log growth requires more space.
By default, these logs are compressed daily. Refer to this
link for more info. This is mainly for backup purposes. If needed, you can create a cron job to move older compressed logs to external storage such as a NAS, S3 bucket, or other backup location. Also, you can configure
rotate_interval or max_output_size, in global configuration Refer to this
document.
Eg:
<rotate_interval>10m</rotate_interval>
</global>
Also, you can follow the
document for creating a retention policy for wazuh indexes.
I hope it helps. Please let us know if you have any further queries or issues here.
Regards,