# Need help to configure http output plugin for https

**URL:** <https://discuss.elastic.co/t/need-help-to-configure-http-output-plugin-for-https/306773>\
**Category:** Logstash\
**Created:** [June 9, 2022, 9:03am UTC](https://discuss.elastic.co/t/need-help-to-configure-http-output-plugin-for-https/306773 "2022-06-09T09:03:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![guillaumeV](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@guillaumeV](https://discuss.elastic.co/u/guillaumeV)\
**Post date:** [June 9, 2022, 9:03am UTC](https://discuss.elastic.co/t/need-help-to-configure-http-output-plugin-for-https/306773/1 "2022-06-09T09:03:24Z")

</div>

Hello i would like to send data via http output plugin ([Http output plugin | Logstash Reference [8.19] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-http.html)) to a https url . I have a very simple example with "[https://www.google.com](https://www.google.com)" which is not working is it possible to know what's the problem ?  
output {  
http {  
url =\> "[https://www.google.fr](https://www.google.fr)"  
http\_method =\> "get"

# for debug

stdout {}  
}  
I have the following output from logstash  
[2022-06-09T11:02:47,803][ERROR][logstash.outputs.http][main][4811562b3a9d0e71e85ecd54b9b911ea920186a034823835f8843588f7bcb611] Encountered non-2xx HTTP code 400 {:response\_code=\>400, :url=\>"[https://www.google.fr](https://www.google.fr)", :event=\>#LogStash::Event:0x7470b923}

---

<div class="post-metadata">

**Author:** ![guillaumeV](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@guillaumeV](https://discuss.elastic.co/u/guillaumeV)\
**Post date:** [June 9, 2022, 2:17pm UTC](https://discuss.elastic.co/t/need-help-to-configure-http-output-plugin-for-https/306773/2 "2022-06-09T14:17:00Z")

</div>

Ok I identified my problem which is not due to https but due to the fact i use the get method which always pass a body in the plugin implementation. Our output endpoint answer 400 when body is sent on get method (a querystring is wanted)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 7, 2022, 2:17pm UTC](https://discuss.elastic.co/t/need-help-to-configure-http-output-plugin-for-https/306773/3 "2022-07-07T14:17:30Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
