# Http Input Plugin - basic question

**URL:** https://discuss.elastic.co/t/http-input-plugin-basic-question/229108
**Category:** Logstash
**Created:** [April 21, 2020, 5:39pm UTC](https://discuss.elastic.co/t/http-input-plugin-basic-question/229108 "2020-04-21T17:39:46Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Karanbir\_Mann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karanbir_mann/32/66787_2.png) [@Karanbir\_Mann](https://discuss.elastic.co/u/Karanbir_Mann)
#### Post date: [April 21, 2020, 5:39pm UTC](https://discuss.elastic.co/t/http-input-plugin-basic-question/229108/1 "2020-04-21T17:39:46Z")

</div>

Hello team,

I am very new to to ELK stack and this is my first task which I am trying to do:

I am not understand a part of Http Input Plugin documentation here: [https://www.elastic.co/blog/introducing-logstash-input-http-plugin](https://www.elastic.co/blog/introducing-logstash-input-http-plugin)

```auto
  http {
    host => "127.0.0.1" # default: 0.0.0.0
    port => 31311 # default: 8080
  }
} 

```

Question 1: What is the host? Is the host where the request is coming from?  
Question 2: What is the REST URL I have to call if I am calling this plugin from another application. My LogStash is currently sitting on a windows server.  
Documentation mentions: `curl -XPUT 'http://127.0.0.1:8080/twitter/tweet/1' -d 'hello'` this would work, and it works if I use this command from the server powershell. Which REST API to call if I am calling it from outside of my LogStash server.

I am very confused about it, any help would be appreciated.

Thank you,  
Karanbir

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [April 21, 2020, 6:43pm UTC](https://discuss.elastic.co/t/http-input-plugin-basic-question/229108/2 "2020-04-21T18:43:56Z")

</div>

> [@Karanbir\_Mann](#):
>
> Question 1: What is the host? Is the host where the request is coming from?

No, it is the IP address to which the http listener binds. If you want to be able to call it remotely do not use 127.0.0.1. The default (0.0.0.0) means it will bind to the IP address of your server.

---

<div class="post-metadata">

### Author: ![Karanbir\_Mann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karanbir_mann/32/66787_2.png) [@Karanbir\_Mann](https://discuss.elastic.co/u/Karanbir_Mann)
#### Post date: [April 21, 2020, 7:40pm UTC](https://discuss.elastic.co/t/http-input-plugin-basic-question/229108/3 "2020-04-21T19:40:52Z")

</div>

Thanks @Badger for your response 🙂  
Got it, if I bind it to 0.0.0.0 it means it will be binded to my server.  
So, then I can directly put my server's hostname in my postman request? Should it work? Currently it doesn't seem to work ATM.  
What do you think should go in the URI here?

```auto

```

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [April 21, 2020, 9:25pm UTC](https://discuss.elastic.co/t/http-input-plugin-basic-question/229108/4 "2020-04-21T21:25:14Z")

</div>

> [@Karanbir\_Mann](#):
>
> So, then I can directly put my server's hostname in my postman request? Should it work?

I would expect that to work.

---

<div class="post-metadata">

### Author: ![Karanbir\_Mann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karanbir_mann/32/66787_2.png) [@Karanbir\_Mann](https://discuss.elastic.co/u/Karanbir_Mann)
#### Post date: [April 22, 2020, 7:39pm UTC](https://discuss.elastic.co/t/http-input-plugin-basic-question/229108/5 "2020-04-22T19:39:21Z")

</div>

Thank you @Badger , your suggestion was really helpful! 🙂

---

<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: [May 20, 2020, 7:48pm UTC](https://discuss.elastic.co/t/http-input-plugin-basic-question/229108/6 "2020-05-20T19:48:00Z")

</div>

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