Hi German,
This is normal behavior. Here's what is happening:
Wazuh maintains logs in two locations simultaneously. First, you have the active logs in /var/ossec/logs/alerts/ which include alerts.json and alerts.log, these are the current day's alerts being written in real-time. Second, you have the archived logs organized by year and month in /var/ossec/logs/alerts/YYYY/MMM/ which contain files like ossec-alerts-19.json and ossec-alerts-19.log. and the reason they appear to have the same size is because during the current day, Wazuh writes alerts to both locations simultaneously.
Please tell me if you have more questions!
-Juan
Hi German,
To migrate your Wazuh alert history to a new indexer on a different machine, you'll need to copy the archived alert logs and then reindex them.
Files to copy from the old machine:
Copy the entire alerts directory structure from /var/ossec/logs/alerts/ (the ones in your old Wazuh).
*This includes all the dated subdirectories (like /var/ossec/logs/alerts/2026/Jan/, /var/ossec/logs/alerts/2025/Dec/, etc.)
and here comes some steps:
Let me know if that help!
Best regards
-Juan