# Logstash-filter-rest throws client\_error

**URL:** <https://discuss.elastic.co/t/logstash-filter-rest-throws-client-error/105307>\
**Category:** Logstash\
**Created:** [October 25, 2017, 10:28pm UTC](https://discuss.elastic.co/t/logstash-filter-rest-throws-client-error/105307 "2017-10-25T22:28:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahsa\_b](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@mahsa\_b](https://discuss.elastic.co/u/mahsa_b)\
**Post date:** [October 25, 2017, 10:28pm UTC](https://discuss.elastic.co/t/logstash-filter-rest-throws-client-error/105307/1 "2017-10-25T22:28:13Z")

</div>

Hi ,  
I installed the logstash-filter-rest plugin and tried to run this config:  
logstash --debug --path.data=/tmp/mahsa-test -e 'input { stdin {} } filter { rest { request =\> { url =\>  
"[http://www.google.se/](http://www.google.se/)" } target =\> 'rest' json =\> false }} output {stdout { codec =\> rubydebug }}'

and I get this  
Http error received {:code=\>nil, :body=\>nil, :client\_error=\>#\<Manticore::SocketException: Network is unreachable  
(connect failed)\>}

but when I do this curl command curl [http://www.google.se](http://www.google.se) I recieve the good response.  
any idea why I am getting this error?

---

<div class="post-metadata">

**Author:** ![mahsa\_b](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@mahsa\_b](https://discuss.elastic.co/u/mahsa_b)\
**Post date:** [October 27, 2017, 5:51pm UTC](https://discuss.elastic.co/t/logstash-filter-rest-throws-client-error/105307/2 "2017-10-27T17:51:17Z")

</div>

ok I find out I can use proxy inside the request. it is fixed now.

---

<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:** [November 24, 2017, 5:51pm UTC](https://discuss.elastic.co/t/logstash-filter-rest-throws-client-error/105307/3 "2017-11-24T17:51:21Z")

</div>

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