The content length (938946807) is bigger than the maximum allowed string (536870888) sending logstash-plain.log to elasticsearch

Currently elasticsearch jvm options is set to 2g. And logstash jvm options is set to 2g. Is that ok ?