Hi German,
Consider that the regular way for processing data is MANAGER (Filebeat) → INDEXER (OpenSearch) → DASHBOARD. The audit logs are specific from OpenSearch (because the only way to log who accesses the dashboard is from the indexer that holds users' credentials, etc.), which is part of the Indexer component. The data moves from the manager to the dashboard and not the opposite. Considering this is an OpenSearch option that is created in the indexer stage and that the data flow doesn't go backward, it's hardly possible to do this.
The only way that might work is by retrieving the data through an
OpenSearch API call and pasting it into a file. Using a
localfile block in the manager
/var/ossec/etc/ossec.conf file and then ingest that data. The problem here is that it could be necessary to parse the data first before ingesting it in the manager. Being this the case, you will also need a script to do this after obtaining these events and then it's also possible that you should create decoders and rules. Hence, this is really a complex process.
Additionally, it depends on what you are planning to do with these events. If you need to send them through email, for example, you can use the
OpenSearch Alerting module. Maybe, as explained before, with a custom query created, you can monitor what you need. It's important to focus on the objective of the request.