Hello All,
First i would like to thank you about responding to my previous question i apprecaite your help and support.
Please i have an issue my wazuh storage is full of log i try to keep just log retention of 2 months i try to delete the logs and alertes older than 2 months with the 2 commands :
find /var/ossec/logs/alerts/ -name "*.gz" -type f -mtime +60 -exec rm -f {} \;
find /var/ossec/logs/archives/ -name "*.gz" -type f -mtime +60 -exec rm -f {} \;
but when i verify in discover tap i found the log older that 4 months still exist
Please there other method or command to delete logs older than 2 months and keep just the retention of 2 months :
Thanks in advance for your support and help:
Regards