Sending all elasticsearch logs to a diode

Hi there,

I am completing some dev work and trying to input all of the ingested elasticsearch data from my system, into logstash (on the same server as elasticsearch) and output this to a one way data diode to allow the concept of an air gapped environment.

Typically the diode allows http or tcp so i would assume i have to use the tcp output module or http output module.

i guess my question is, how? how do i ingest all of the data from elasticsearch and how do i output all of that data to the diode.

many thanks