How to limit Logstash message size?

Hi all! I’m using the logstash-oss-with-opensearch-output-plugin. The nginx server fronting the OpenSearch server is rejecting the logstash message because it’s too large (over 1MB).

How can I configure my logstash.conf to make the messages smaller?

Thanks! :slight_smile:

Hi @McJava1967 in this case the issue is related to Nginx. In most cases you need to increase the client_max_body_size setting in Nginx. Most of the time approx 10 Mb should be sufficient.

For reference here Filebeat setup errors - payload

I just figured that out, and did exactly that. AND IT WORKED!!!

Thank you so much for responding!

:slight_smile: