Logstash pipeline with Auditbeat and Filebeat

I think this doc from elastic covers it fairly well -

You’ll just need to change the output to opensearch and make sure logstash has the opensearch output plugin.

If you are running a logstash version that doesnt support the opensearch plugin you would need an intermediary sink (output) like redis or similar and then an input on the logstash side to pull from redis ie: (auditbeat → redis → logstash)