(#22662) create a logstash_event logger

This commit should address the issues with the previous commit
such as less invasive sourcing of data in to_hash method and
improved spec tests.