Hello Moosemaimer,
Thanks for using Wazuh!
Since your alerts were accidentally not indexed there is a guide that covers how to recover Wazuh alerts in Elasticsearch:
Basically, it is a script that allows you to re-index the alerts from your Wazuh manager to Elasticsearch. The script will look for the alerts in the path /var/ossec/logs/alerts/ based on the time range that you define in the execution of the script.
If you have the alerts available in this path, it is only necessary to follow the steps in the mentioned blog.
You'll need to load the script in your Wazuh manager, assign it execution permissions, and also ownership "root:ossec". Once you have the script you must modify the filebeat configuration at: /usr/share/filebeat/module/wazuh/alerts/manifest.yml to something like the following based on the guide steps:
module_version: 0.1
var:
- name: paths
default:
- /var/ossec/logs/alerts/alerts.json
- /tmp/recovery.json
- name: index_prefix
default: wazuh-alerts-4.x-
input: config / alerts.yml
ingest_pipeline: ingest / pipeline.json
Then, by running the script following the instructions in the blog. The alerts will be sent to the recovery.json file, Filebeat will read it and send these alerts to Elasticsearch based on the defined time range.
I hope this information helps. Please let me know if you have any other questions!