# Unable to collect data in elastic cloud using internet proxy

**URL:** <https://discuss.elastic.co/t/unable-to-collect-data-in-elastic-cloud-using-internet-proxy/133125>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [May 24, 2018, 10:57am UTC](https://discuss.elastic.co/t/unable-to-collect-data-in-elastic-cloud-using-internet-proxy/133125 "2018-05-24T10:57:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gauti](https://avatars.discourse-cdn.com/v4/letter/g/cdc98d/32.png) [@Gauti](https://discuss.elastic.co/u/Gauti)\
**Post date:** [May 24, 2018, 10:57am UTC](https://discuss.elastic.co/t/unable-to-collect-data-in-elastic-cloud-using-internet-proxy/133125/1 "2018-05-24T10:57:01Z")

</div>

Hey Guys,

I have been cracking my head from past three days.  
Got my elastic cloud instance, when i'm trying to send data to elastic cloud from my servers i'm getting error like it was not able to resolve the elastic cloud host name.

My servers doesn't have a direct internet, i have configured internet proxy in my servers, i was not able to send any of the data to elastic cloud through http\_poller method. I have even tried installing metric beat as well...but no luck..

There was no issue at all wen i was doing it on premise, this cloud instance is killing me.... somebody please help me.... What setting i'm missing here???

Output test fyr

**PS C:\Program Files\metricbeat\> .\metricbeat.exe test output**  
**elasticsearch: [http://120bf473d8e57f32e5de3f7713d8c0e9.ap-southeast-1.aws.found.io:9243](http://120bf473d8e57f32e5de3f7713d8c0e9.ap-southeast-1.aws.found.io:9243)...**  
\*\* parse url... OK\*\*  
\*\* connection...\*\*  
\*\* parse host... OK\*\*  
\*\* dns lookup... ERROR lookup [120bf473d8e57f32e5de3f7713d8c0e9.ap-southeast-1.aws.found.io](http://120bf473d8e57f32e5de3f7713d8c0e9.ap-southeast-1.aws.found.io): getaddrinfow: This is usual\*\*  
**ly a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.**

Thanks  
Gautham

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [May 26, 2018, 2:12am UTC](https://discuss.elastic.co/t/unable-to-collect-data-in-elastic-cloud-using-internet-proxy/133125/2 "2018-05-26T02:12:45Z")

</div>

What kind of proxy are you using? How is it configured? What version of Metricbeat? What OS+Version?

The [config](https://www.elastic.co/guide/en/beats/metricbeat/current/elasticsearch-output.html#_literal_proxy_url_literal) for a proxy is like this:

```auto
output.elasticsearch:
  hosts: ["https://elastic-cloud:9243"]
  proxy_url: squid:3128

```

And you will see a log message like:

```auto
2018-05-25T22:10:08.161-0400	INFO	elasticsearch/elasticsearch.go:109	Using proxy URL: http://localhost:3128

```

---

<div class="post-metadata">

**Author:** ![Gauti](https://avatars.discourse-cdn.com/v4/letter/g/cdc98d/32.png) [@Gauti](https://discuss.elastic.co/u/Gauti)\
**Post date:** [May 29, 2018, 3:27pm UTC](https://discuss.elastic.co/t/unable-to-collect-data-in-elastic-cloud-using-internet-proxy/133125/3 "2018-05-29T15:27:03Z")

</div>

Thanks @andrewkroh after using the proxy config u sent it started working.

Thanks  
Gautham

---

<div class="post-metadata">

**Author:** ![Gauti](https://avatars.discourse-cdn.com/v4/letter/g/cdc98d/32.png) [@Gauti](https://discuss.elastic.co/u/Gauti)\
**Post date:** [May 30, 2018, 7:57am UTC](https://discuss.elastic.co/t/unable-to-collect-data-in-elastic-cloud-using-internet-proxy/133125/4 "2018-05-30T07:57:36Z")

</div>

Got an another issue @andrewkroh .  
it is working properly if if execute with below command  
**metricbeat -e -E cloud.id="" -E cloud.auth="\<cloud.auth\>"**

if i enter the cloud id and authentication details on metricbeat.yml i'm getting the same error like unable to resolve

Error FYI:  
PS E:\metricbeat-6.2.3\> .\metricbeat.exe setup  
Loaded index template  
Exiting: Error importing Kibana dashboards: fail to create the Kibana loader: Error creating Kibana client: fail to get  
the Kibana version:HTTP GET request to /api/status fails: fail to execute the HTTP GET request: Get [https://eda9d69a1aaf](https://eda9d69a1aaf)  
[7252e823276e9c884b70.ap-southeast-1.aws.found.io:443/api/status:](http://7252e823276e9c884b70.ap-southeast-1.aws.found.io:443/api/status:) lookup eda9d69a1aaf7252e823276e9c884b70.ap-southeast-1.  
[aws.found.io](http://aws.found.io): getaddrinfow: This is usually a temporary error during hostname resolution and means that the local server  
did not receive a response from an authoritative server.. Response: .

Thanks  
Gautham

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [May 30, 2018, 6:23pm UTC](https://discuss.elastic.co/t/unable-to-collect-data-in-elastic-cloud-using-internet-proxy/133125/5 "2018-05-30T18:23:04Z")

</div>

Perhaps the setup code for talking to Kibana is not honoring the proxy settings?

Can you try setting and environment variable like `HTTP_PROXY=squid:3128` before running the `setup` command. My guess is that the Kibana code doesn't actually honor that setting, but as a workaround it might be reading that environment variable because it's the default behavior for Go's http library.

---

<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:** [June 27, 2018, 6:23pm UTC](https://discuss.elastic.co/t/unable-to-collect-data-in-elastic-cloud-using-internet-proxy/133125/6 "2018-06-27T18:23:19Z")

</div>

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