logstash-plugins / logstash-output-elasticsearch

https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html
Apache License 2.0
220 stars 306 forks source link

Add `x-elastic-product-origin` header to all places that make requests to Elasticsearch #1191

Open jsvd opened 2 weeks ago

jsvd commented 2 weeks ago

The Logstash Elasticsearch output plugin makes HTTP requests to the following Elasticsearch endpoints:

GET /
HEAD /
GET /_license
POST _bulk?filter_path=..
HEAD /_index_template/<index_name>
PUT /_index_template/<index_name>
HEAD /<index_name>
PUT /<index_name>
GET /_ilm/policy/logstash-policy
PUT /_ilm/policy/logstash-policy
GET /_nodes/http (sniffing)

Notes:

parent setting no longer works (probably hasn't for a long time)

Each of these calls should include the x-elastic-product-origin header to the HTTP request made to Elasticsearch

robbavey commented 6 days ago

Updated to correct the header name to x-elastic-product-origin