trim events larger than 1mb /issue #114