Here is an official tool but seems old: https://github.com/elastic/logstash-benchmark-tools
Google provides a way but for security: https://cloud.google.com/blog/prod