# Logstash showing error: connect timed out

**URL:** <https://discuss.elastic.co/t/logstash-showing-error-connect-timed-out/128455>\
**Category:** Logstash\
**Created:** [April 18, 2018, 4:39am UTC](https://discuss.elastic.co/t/logstash-showing-error-connect-timed-out/128455 "2018-04-18T04:39:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarang](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@sarang](https://discuss.elastic.co/u/sarang)\
**Post date:** [April 18, 2018, 4:39am UTC](https://discuss.elastic.co/t/logstash-showing-error-connect-timed-out/128455/1 "2018-04-18T04:39:44Z")

</div>

Hi ,  
I want data from table from servicenow(ITSM tool) into elasticsearch. So I am using http\_poller plugin to get the data from servicenow REST API. I am executing command **logstash -f D:\ELK\Input\http\_poller.conf** :

After this, Index is getting generated in elasticsearch but there is not table data. and in debug mode , it showing this log:

[2018-04-18T11:48:10,343][DEBUG][logstash.pipeline] filter received {"event"=\>{"@version"=\>"1", "tags"=\>["\_http\_request\_failure"], "http\_request\_failure"=\>{"error"=\>"connect timed out", "backtrace"=\>nil, "runtime\_seconds"=\>10.01, "request"=\>{"headers"=\>{"Accept"=\>"application/json"}, "auth"=\>{"eager"=\>true, "pass"=\>"abc", "user"=\>"abc"}, "method"=\>"get", "url"=\>"[https://dev](https://dev)\*\*\*\*.service-now.com/api/now/table/mytable"}, "name"=\>"test"}, "@timestamp"=\>2018-04-18T06:18:10.240Z}}  
[2018-04-18T11:48:10,345][DEBUG][logstash.pipeline] output received {"event"=\>{"@version"=\>"1", "tags"=\>["\_http\_request\_failure"], "http\_request\_failure"=\>{"error"=\>"connect timed out", "backtrace"=\>nil, "runtime\_seconds"=\>10.01, "request"=\>{"headers"=\>{"Accept"=\>"application/json"}, "auth"=\>{"eager"=\>true, "pass"=\>"abc", "user"=\>"abc"}, "method"=\>"get", "url"=\>"[https://dev](https://dev)\*\*\*\*.service-now.com/api/now/table/mytable"}, "name"=\>"test"}, "@timestamp"=\>2018-04-18T06:18:10.240Z}}  
2018-04-18T06:18:10.240Z %{host} %{message}

My http\_poller.conf file:  
input {  
http\_poller {  
urls =\> {  
test =\> {  
method =\> get  
user =\> "abc"  
password =\> "abc"  
url =\> "[https://dev](https://dev)\*\*\*\*.service-now.com/api/now/table/mytable"  
proxy =\> { host =\> "myhost" port =\> 8080}  
headers =\> {  
Accept =\> "application/json"  
}  
}  
}  
request\_timeout =\> 300  
schedule =\> { cron =\> "\*/02 \* \* \* \* UTC"}

}  
}  
output  
{  
elasticsearch {  
hosts =\> ["localhost:9200"]  
index =\> "new\_data"  
}  
stdout{}  
}

Please provide any possible solution. Thank you!

---

<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 16, 2018, 4:39am UTC](https://discuss.elastic.co/t/logstash-showing-error-connect-timed-out/128455/2 "2018-05-16T04:39:58Z")

</div>

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