(#22662) create a logstash_event logger

Simplify code. no need to interate over the datastructure.