It would be useful to have a pipeline step to send arbitrary data with a specifiable endpoint and a specifiable map.
something like logstashMapSend map: "somemap" index: somerandomindex failBuild: true maxLines: blah
Looks similar to https://github.com/jenkinsci/logstash-plugin/pull/71 you might want to check it out.
I don't expect to have time to work on this myself. PRs are welcome
implementing an arbitrary endpoint would only work es but not for the other implementations. So this doesn't make sense in this plugin