Hi,
The .gz files you're seeing are archived logs that remain on disk even after deleting their indexes from the dashboard. This is expected behavior, as Wazuh does not automatically remove log files when indexes are deleted.
Yes, it's safe to delete them manually if you're sure they're no longer needed and not being used.
Here is more information about these .gz logs:
Alternatively, you can move them to a backup location if you want to keep them.
Additionally, if the indexes are being deleted manually from the dashboard, it would be advisable to implement a retention policy to automate this process and avoid having to clean up old files manually.
Another option is to configure a crontab on the Wazuh server to automatically remove archived logs after a certain number of days. For example:
This will run daily at 12:45 AM for the alerts folder and at 1:45 AM for the archives folder, deleting files older than 366 days. The number of days (-mtime +366) can be adjusted according to retention needs. After adding the lines to the crontab file, simply save the changes and the cleanup will be executed automatically.