How do I find which event is generating this error

I have thousands of event coming from metricbeat to logstash. then I do some parsing.
but every on/off I getting following errors.

is there a easy way to find out which event is it?

An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception. Connection reset by peer