Hello!
Well, there is no configuration from the Wazuh side to change the storage location, but there is a workaround, you could move the directory to the desired location and create a mount binding from that new location to the original dir. Let me explain it a bit better with steps:
- Stop the wazuh server ---> systemctl stop wazuh-manager
- Move the content from the original dir to the new one
---> mv /var/ossec/logs/* /your_new_path
- Create a mount binding among the dirs
---> mount --bind /your_new_path /var/ossec/logs
- Make these changes permanent to not lose it on restarts ---> echo "/your_new_path /var/ossec/logs/ none defaults,bind 0 0" >> /etc/fstab
- Start the wazuh server
---> systemctl start wazuh-manager
I hope it helps, any feedback is welcome! Have a nice day!
Regards,