Hi @mcol:
I hope you are fine.
For moving Wazuh logs, you can simply set up a cronjob like the following for:
# crontab -e
0 0 * * * find /var/ossec/logs/alerts/ -type f -mtime +90 -exec mv -f /path/to/NAS {} \;
0 0 * * * find /var/ossec/logs/alerts/ -type f -mtime +90 -exec mv -f /path/to/NAS {} \;
This will run at 00 hs every day to move all "alerts" and "archives" logs older than 90 days to your NAS.
For Elasticsearch, the recommendation is to set Lifecycles policies in order to change your data to a different phase reducing the header size and remove older data.
For detailed information about this configuration, please visit:
Please, note that the first part of the document is devoted to Elasticsearch Basic License config and second one to Opendistro.
I hope this helps.
Thanks