Thanks for using wazuh.
Yes, it is possible to store all the Wazuh logs in an external location.
In the indexer, you can create snapshots and store them in an external repository, and then remove the indices from the indexer.
- Determine the IP address or hostname of the on-premises server that you want to send logs to.
- Configure the on-premises server to receive logs. This typically involves installing a log collection agent or a syslog server, such as rsyslog or syslog-ng, on the server. The exact configuration steps will depend on the log collection tool you choose. Please refer to this
documentation.
- Configure the Wazuh server to send logs to the on-premises server. Edit the configuration file for the Wazuh log collector, which is located at /var/ossec/etc/ossec.conf on the Wazuh server. Specifically, you'll need to add a new rule to the log collector configuration that tells it to send logs to the on-premises server. Refer to this
documentation.
<syslog_output>
<server>ip_address</server>
<port>port_num</port>
<format>default</format>
<level>level_num</level>
</syslog_output>
- After you've modified the configuration file, you'll need to restart wazuh log-collector and Wazuh managerfor the changes to take effect.
systemctl restart wazuh-logcollector
systemctl restart wazuh-manager
Hope this helps you.
Regards.