# Convert curl command to logstash-output-http

**URL:** <https://discuss.elastic.co/t/convert-curl-command-to-logstash-output-http/94871>\
**Category:** Logstash\
**Created:** [July 27, 2017, 10:07pm UTC](https://discuss.elastic.co/t/convert-curl-command-to-logstash-output-http/94871 "2017-07-27T22:07:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lynchnf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lynchnf/32/19260_2.png) [@lynchnf](https://discuss.elastic.co/u/lynchnf)\
**Post date:** [July 27, 2017, 10:07pm UTC](https://discuss.elastic.co/t/convert-curl-command-to-logstash-output-http/94871/1 "2017-07-27T22:07:51Z")

</div>

I'm trying to replicate a curl command with Logstash 5.2.2 on a computer running Windows.

The curl command is:

`curl -k -u "lynchnf:swordfish" https://mycompany.com:9998/some/service -d '{"event": {"some":"random","json":"data"}}'`

The -k flag means the connection is insecure, the -u parameter is username and password, and the -d parameter is the data.

Any help you would be appreciated.

-- Norman Lynch

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 5, 2017, 6:15pm UTC](https://discuss.elastic.co/t/convert-curl-command-to-logstash-output-http/94871/2 "2017-08-05T18:15:28Z")

</div>

I'm afraid the http output doesn't yet support authentication.

> <https://github.com/logstash-plugins/logstash-output-http/issues/37>

---

<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:** [September 2, 2017, 6:15pm UTC](https://discuss.elastic.co/t/convert-curl-command-to-logstash-output-http/94871/3 "2017-09-02T18:15:44Z")

</div>

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