merge this with handleLogstashMessage