Throttle incoming logs in a smart way

Might be better to keep the discussion in the one thread, see Prevent Elasticsearch from message flood for ongoing talks.