# Http-poller input-plugin "Connection timed out: connect"

**URL:** <https://discuss.elastic.co/t/http-poller-input-plugin-connection-timed-out-connect/121024>\
**Category:** Logstash\
**Created:** [February 22, 2018, 10:17am UTC](https://discuss.elastic.co/t/http-poller-input-plugin-connection-timed-out-connect/121024 "2018-02-22T10:17:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![priti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priti/32/13828_2.png) [@priti](https://discuss.elastic.co/u/priti)\
**Post date:** [February 22, 2018, 10:17am UTC](https://discuss.elastic.co/t/http-poller-input-plugin-connection-timed-out-connect/121024/1 "2018-02-22T10:17:04Z")

</div>

Hi,

When i am hitting URL from my local machine it is giving 200 response but same http\_poller input when i tried to run from server, I am getting "Connection timed out: connect" error. Please help me to solve this issue.

Thanks,  
Priti

---

<div class="post-metadata">

**Author:** ![priti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priti/32/13828_2.png) [@priti](https://discuss.elastic.co/u/priti)\
**Post date:** [February 22, 2018, 10:21am UTC](https://discuss.elastic.co/t/http-poller-input-plugin-connection-timed-out-connect/121024/2 "2018-02-22T10:21:31Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/5/2/52da47a5c2402c0ed1fcee75c66af973bf8aa0a3.png)

This is my configuration file.

---

<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:** [February 22, 2018, 10:53am UTC](https://discuss.elastic.co/t/http-poller-input-plugin-connection-timed-out-connect/121024/3 "2018-02-22T10:53:02Z")

</div>

Seems like your server has network connectivity issues that your own machine doesn't have. That doesn't strike me as a Logstash problem.

---

<div class="post-metadata">

**Author:** ![priti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priti/32/13828_2.png) [@priti](https://discuss.elastic.co/u/priti)\
**Post date:** [February 23, 2018, 6:12am UTC](https://discuss.elastic.co/t/http-poller-input-plugin-connection-timed-out-connect/121024/4 "2018-02-23T06:12:47Z")

</div>

How can we verify, this issue happen due to network connectivity?  
because when i open URL through browser on my local machine & Server both giving same response.

---

<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:** [February 23, 2018, 6:50am UTC](https://discuss.elastic.co/t/http-poller-input-plugin-connection-timed-out-connect/121024/5 "2018-02-23T06:50:44Z")

</div>

> How can we verify, this issue happen due to network connectivity?

Use a lowlevel tool outside of Logstash, e.g. telnet or netcat.

> because when i open URL through browser on my local machine & Server both giving same response.

Your browsers might be configured to use a proxy.

---

<div class="post-metadata">

**Author:** ![priti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priti/32/13828_2.png) [@priti](https://discuss.elastic.co/u/priti)\
**Post date:** [February 27, 2018, 12:21pm UTC](https://discuss.elastic.co/t/http-poller-input-plugin-connection-timed-out-connect/121024/6 "2018-02-27T12:21:56Z")

</div>

There is no proxy set on the server.Is there any way where we get detail information(logs) about error? what causing for "Connection timed out" error?

---

<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:** [February 27, 2018, 1:32pm UTC](https://discuss.elastic.co/t/http-poller-input-plugin-connection-timed-out-connect/121024/7 "2018-02-27T13:32:26Z")

</div>

You could use e.g. Wireshark to capture the network traffic. Then you'll see exactly which host it's trying to connect to and you can compare it to your own successful attempts.

---

<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:** [March 27, 2018, 1:32pm UTC](https://discuss.elastic.co/t/http-poller-input-plugin-connection-timed-out-connect/121024/8 "2018-03-27T13:32:37Z")

</div>

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