It is easy to OOM logstash with lines that are too long. This can happen if the user inadvertently sends a very large file to logstash without the right delimiter. We should set a default of perhaps 20MB for a max document line size and raise a specific error if that happens.