# Filebeat6.6启动报错

**URL:** <https://discuss.elastic.co/t/filebeat6-6/170108>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 27, 2019, 6:12am UTC](https://discuss.elastic.co/t/filebeat6-6/170108 "2019-02-27T06:12:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ctinm](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@ctinm](https://discuss.elastic.co/u/ctinm)\
**Post date:** [February 27, 2019, 6:12am UTC](https://discuss.elastic.co/t/filebeat6-6/170108/1 "2019-02-27T06:12:11Z")

</div>

Exiting: error unpacking config data: can not convert 'string' into 'object' accessing 'output.logstash' (source:'filebeat.yml') accessing 'output' (source:'filebeat.yml')

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [February 27, 2019, 8:29am UTC](https://discuss.elastic.co/t/filebeat6-6/170108/2 "2019-02-27T08:29:08Z")

</div>

Could you please share your configuration file formatted using `</>`?

---

<div class="post-metadata">

**Author:** ![ctinm](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@ctinm](https://discuss.elastic.co/u/ctinm)\
**Post date:** [February 27, 2019, 9:14am UTC](https://discuss.elastic.co/t/filebeat6-6/170108/4 "2019-02-27T09:14:01Z")

</div>

filebeat.inputs:

- type: log  
enabled: true  
paths:
  - /inm/app/tengine/logs/\*.log

output.logstash:  
hosts:["xx.xx.xx.xx:5044"]

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [February 27, 2019, 12:49pm UTC](https://discuss.elastic.co/t/filebeat6-6/170108/5 "2019-02-27T12:49:50Z")

</div>

Could you please format your configuration? Based on the error message you have pasted here, it seems like there is an indentation problem in the file. If your format it, all whitespaces are preserved, thus it lets me see the error.

---

<div class="post-metadata">

**Author:** ![ctinm](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@ctinm](https://discuss.elastic.co/u/ctinm)\
**Post date:** [February 28, 2019, 12:24pm UTC](https://discuss.elastic.co/t/filebeat6-6/170108/6 "2019-02-28T12:24:32Z")

</div>

filebeat.inputs:

```
- type: log

 
  enabled: true

  paths:
    - /inm/app/tengine/logs/*.log

```

output.logstash:

```
  hosts:["xx.xx.xx.xx:5044"]
```

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [March 1, 2019, 9:36am UTC](https://discuss.elastic.co/t/filebeat6-6/170108/7 "2019-03-01T09:36:35Z")

</div>

I could not really validate your config, because the formatting is not correct. But this should be working:

```auto
filebeat.inputs:
- type: log
  enabled: true
  paths:
    - /inm/app/tengine/logs/*.log

output.logstash:
  enabled: true
  hosts: ["172.16.70.29"]

```

Let me know if that works.

---

<div class="post-metadata">

**Author:** ![ctinm](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@ctinm](https://discuss.elastic.co/u/ctinm)\
**Post date:** [March 6, 2019, 9:01am UTC](https://discuss.elastic.co/t/filebeat6-6/170108/8 "2019-03-06T09:01:12Z")

</div>

```
filebeat.inputs:
- type: log
  enabled: true
  paths:
       - /inm/app/tengine/logs/*.log
output.logstash:
   hosts: ["xx.xx.xx.xx:5044"]

```

Now working properly, the format problem has been bothering me for a long time. thank you for your help

---

<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:** [April 3, 2019, 9:11am UTC](https://discuss.elastic.co/t/filebeat6-6/170108/9 "2019-04-03T09:11:11Z")

</div>

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