Troubleshooting 502 Errors During Elasticsearch Indexing

Hi

welcome to the forum

is an ongoing thread around a similar issue.

How large is your large document?

And is there anything in the Elasticsearch log itself?

Are you using a local cluster, or via Elastic Cloud? (versions?)