Henry,
Gracias por avisarnos de su problema. Le voy a responder en Inglés de forma que la comunidad entera se beneficie de nuestro intercambio.
Me avisa si necesita que traduzca alguna parte.
I've tried generating a csv report myself from the Discover view, where in my case, ~31k documents were visible, but the csv ended up with just ~14k lines.
I will conduct some research on this issue, as it is very likely an OpenSearch bug, and get back to you in time.
In the meantime you may want to try grabbing alert data directly off the Wazuh Manager's output at /var/ossec/logs/alerts/alerts.json
These files are rotated daily and they get compressed after a week, but they provide pretty much the same information as the exported csv would.
Anyway, let me circle back to you as soon as get further insight into the actual issue.
Regards,
Fede