# Filebeat.yml can not convert String into Object

**URL:** <https://discuss.elastic.co/t/filebeat-yml-can-not-convert-string-into-object/290622>\
**Category:** Kibana\
**Created:** [December 1, 2021, 3:49am UTC](https://discuss.elastic.co/t/filebeat-yml-can-not-convert-string-into-object/290622 "2021-12-01T03:49:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mangeshmj1992](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mangeshmj1992](https://discuss.elastic.co/u/mangeshmj1992)\
**Post date:** [December 1, 2021, 3:49am UTC](https://discuss.elastic.co/t/filebeat-yml-can-not-convert-string-into-object/290622/1 "2021-12-01T03:49:19Z")

</div>

Hello team,  
I am getting below error in filebeat.yml.  
I have commented all other lines and just added output.Elasticsearch  
Can anyone please help me here.

```auto
output.elasticsearch:
  hosts => ["10.115.6.288:9200"]

```

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [December 1, 2021, 3:59am UTC](https://discuss.elastic.co/t/filebeat-yml-can-not-convert-string-into-object/290622/2 "2021-12-01T03:59:43Z")

</div>

That configuration is wrong, it should be:

```auto
output.elasticsearch:
  hosts: ["10.115.6.288:9200"]

```

---

<div class="post-metadata">

**Author:** ![mangeshmj1992](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mangeshmj1992](https://discuss.elastic.co/u/mangeshmj1992)\
**Post date:** [December 1, 2021, 4:29am UTC](https://discuss.elastic.co/t/filebeat-yml-can-not-convert-string-into-object/290622/3 "2021-12-01T04:29:40Z")

</div>

Thank you so much for your quick help. I just copy past from logstash pipeline that's why i missed it.

---

<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:** [December 29, 2021, 4:29am UTC](https://discuss.elastic.co/t/filebeat-yml-can-not-convert-string-into-object/290622/4 "2021-12-29T04:29:42Z")

</div>

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