How to Perform a Data Backup for Collected Information.

130 views
Skip to first unread message

ocerna0721

unread,
Aug 8, 2023, 11:03:50 AM8/8/23
to Wazuh mailing list
Hello,

I would like to understand how I can set up an automatic backup of the collected data to an alternate storage location when the local storage becomes low.

Thank you for your guidance.
Message has been deleted

Nicolas Stefani

unread,
Aug 8, 2023, 4:37:00 PM8/8/23
to ocerna0721, Wazuh mailing list

--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/6027830a-4a73-41f5-b0f7-f48cdfdb74e8n%40googlegroups.com.


--
Wazuh Nicolás Stefani
Software Engineer

ocerna0721

unread,
Aug 8, 2023, 6:23:09 PM8/8/23
to Wazuh mailing list
Thank you, the following link has been helpful: https://documentation.wazuh.com/current/user-manual/files-backup/creating/wazuh-central-components.html

I was able to perform the backup, but I would like to delete at least 30 days of data collected by Wazuh, is this possible?

Nicolas Stefani

unread,
Aug 9, 2023, 6:42:49 AM8/9/23
to ocerna0721, Wazuh mailing list

ocerna0721

unread,
Aug 9, 2023, 8:04:18 PM8/9/23
to Wazuh mailing list
Thank you for your responses, but I'm looking for something more specific. I found this in the frequently asked questions section you directed me to: "How long are the logs stored on the server?
Archived logs are not automatically deleted by default. However, you can choose when to manually or automatically (e.g., cron job) delete logs according to your own legal and regulatory requirements.
"
, but I don't see an indication of how to do it, commands, or anything that needs to be configured in the ossec file.

Nicolas Stefani

unread,
Aug 10, 2023, 9:27:09 AM8/10/23
to ocerna0721, Wazuh mailing list
Hi,

For example, you can use rsync to send the archives to a remote location and schedule this process with cron, every 30 days. Here you can find a general guide on how to do it.
The backup process is independent of Wazuh, so you don't need to add any configuration in the ossec.conf.

ocerna0721

unread,
Aug 10, 2023, 9:48:51 AM8/10/23
to Wazuh mailing list
Thank you so much Nicolas!
Reply all
Reply to author
Forward
0 new messages