# I am using elk stack repo locally and using filebeat, i have configured filebeat but still saying "hosting provider type not detected"

**URL:** <https://discuss.elastic.co/t/i-am-using-elk-stack-repo-locally-and-using-filebeat-i-have-configured-filebeat-but-still-saying-hosting-provider-type-not-detected/308247>\
**Category:** Elasticsearch\
**Created:** [June 27, 2022, 12:20pm UTC](https://discuss.elastic.co/t/i-am-using-elk-stack-repo-locally-and-using-filebeat-i-have-configured-filebeat-but-still-saying-hosting-provider-type-not-detected/308247 "2022-06-27T12:20:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tech\_Byte](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tech_byte/32/79281_2.png) [@Tech\_Byte](https://discuss.elastic.co/u/Tech_Byte)\
**Post date:** [June 27, 2022, 12:20pm UTC](https://discuss.elastic.co/t/i-am-using-elk-stack-repo-locally-and-using-filebeat-i-have-configured-filebeat-but-still-saying-hosting-provider-type-not-detected/308247/1 "2022-06-27T12:20:10Z")

</div>

here is my configuration

```auto
  output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["localhost:9200", "localhost:5601"]

  # Protocol - either `http` (default) or `https`.
  #protocol: "https"

  # Authentication credentials - either API key or username/password.
  #api_key: "id:api_key"
  username: "elastic"
  password: "changeme"

```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 28, 2022, 12:46am UTC](https://discuss.elastic.co/t/i-am-using-elk-stack-repo-locally-and-using-filebeat-i-have-configured-filebeat-but-still-saying-hosting-provider-type-not-detected/308247/2 "2022-06-28T00:46:15Z")

</div>

Welcome to our community! 😃  
Please format your code/logs/config using the `</>` button, or markdown style back ticks. It helps to make things easy to read which helps us help you.

It'd also be helpful if you could show us the full error you are receiving here.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [June 28, 2022, 2:31am UTC](https://discuss.elastic.co/t/i-am-using-elk-stack-repo-locally-and-using-filebeat-i-have-configured-filebeat-but-still-saying-hosting-provider-type-not-detected/308247/3 "2022-06-28T02:31:35Z")

</div>

> [@Tech\_Byte](#):
>
> hosts: ["localhost:9200", "localhost:5601"]

Remove the Kibana endpoint above That should only be the elasticsearch endpoint

`hosts: ["localhost:9200"]`

Please format your code in the future it's easy.. and helps

---

<div class="post-metadata">

**Author:** ![Tech\_Byte](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tech_byte/32/79281_2.png) [@Tech\_Byte](https://discuss.elastic.co/u/Tech_Byte)\
**Post date:** [June 28, 2022, 4:30am UTC](https://discuss.elastic.co/t/i-am-using-elk-stack-repo-locally-and-using-filebeat-i-have-configured-filebeat-but-still-saying-hosting-provider-type-not-detected/308247/4 "2022-06-28T04:30:52Z")

</div>

Thanks, Stephen Brown for the reply but the issue didn't get resolved I am assuming that's the reason why filebeat is not shipping logs to the elasticsearch.

---

<div class="post-metadata">

**Author:** ![Tech\_Byte](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tech_byte/32/79281_2.png) [@Tech\_Byte](https://discuss.elastic.co/u/Tech_Byte)\
**Post date:** [June 28, 2022, 4:36am UTC](https://discuss.elastic.co/t/i-am-using-elk-stack-repo-locally-and-using-filebeat-i-have-configured-filebeat-but-still-saying-hosting-provider-type-not-detected/308247/5 "2022-06-28T04:36:31Z")

</div>

Hi Mark! Thanks for the reply, Let me just brief you on what I am trying.  
I have done the setup for elk stack locally and I am using filebeat to ship the logs to Elasticsearch, but for some reason, I am not able to push logs to the Elasticsearch and I am getting this error when I start filebeat

```auto
{
  "log.level": "info",
  "@timestamp": "2022-06-27T17:41:26.369+0530",
  "log.logger": "add_cloud_metadata",
  "log.origin": {
    "file.name": "add_cloud_metadata/add_cloud_metadata.go",
    "file.line": 101
  },
  "message": "add_cloud_metadata: hosting provider type not detected.",
  "service.name": "filebeat",
  "ecs.version": "1.6.0"
}

```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 28, 2022, 4:53am UTC](https://discuss.elastic.co/t/i-am-using-elk-stack-repo-locally-and-using-filebeat-i-have-configured-filebeat-but-still-saying-hosting-provider-type-not-detected/308247/6 "2022-06-28T04:53:24Z")

</div>

What modules do you have enabled?

---

<div class="post-metadata">

**Author:** ![Tech\_Byte](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tech_byte/32/79281_2.png) [@Tech\_Byte](https://discuss.elastic.co/u/Tech_Byte)\
**Post date:** [June 28, 2022, 6:26am UTC](https://discuss.elastic.co/t/i-am-using-elk-stack-repo-locally-and-using-filebeat-i-have-configured-filebeat-but-still-saying-hosting-provider-type-not-detected/308247/7 "2022-06-28T06:26:24Z")

</div>

Hey Mark! it's working now 🥳 I made a mistake in filebeat config file.

---

<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:** [July 26, 2022, 6:27am UTC](https://discuss.elastic.co/t/i-am-using-elk-stack-repo-locally-and-using-filebeat-i-have-configured-filebeat-but-still-saying-hosting-provider-type-not-detected/308247/8 "2022-07-26T06:27:04Z")

</div>

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