Logstash compressed data

Hi Sir,

I have used the HTTP input plugin and the OpenSearch output plugin. I am receiving compressed data from the app to the HTTP input. Can I send the compressed data directly to OpenSearch, or should I handle decompression in the filter part?