# How to use CURL command as Logstash input

**URL:** <https://discuss.elastic.co/t/how-to-use-curl-command-as-logstash-input/71414>\
**Category:** Logstash\
**Created:** [January 12, 2017, 5:21pm UTC](https://discuss.elastic.co/t/how-to-use-curl-command-as-logstash-input/71414 "2017-01-12T17:21:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://discuss.elastic.co/u/Dan)\
**Post date:** [January 12, 2017, 5:21pm UTC](https://discuss.elastic.co/t/how-to-use-curl-command-as-logstash-input/71414/1 "2017-01-12T17:21:45Z")

</div>

CURL command is my input and Elastic search is my output plugin in logstash configuration file.

How can give CURL as input plugin.

I tried http input plugin, its not worked for me.  
Please suggest me which plugin i can use input as CURL command in logstsh and give me some example configuration.

Bellow is my CURL command.

curl -u user:password [http://example.org/](http://example.org/)

Thanks in Advance.......

---

<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:** [January 12, 2017, 6:27pm UTC](https://discuss.elastic.co/t/how-to-use-curl-command-as-logstash-input/71414/2 "2017-01-12T18:27:51Z")

</div>

> I tried http input plugin, its not worked for me.

What's the problem?

> Please suggest me which plugin i can use input as CURL command in logstsh and give me some example configuration.

Have a look at the exec input plugin.

---

<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:** [February 9, 2017, 6:28pm UTC](https://discuss.elastic.co/t/how-to-use-curl-command-as-logstash-input/71414/3 "2017-02-09T18:28:17Z")

</div>

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