But the Logstash output is different because it uses a custom protocol sent over TCP. There's nowhere in the protocol to write the headers, and even it it did you would need a custom proxy that understood the protocol. I would use TLS mutual authentication to secure the traffic to Logstash.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.