# I get the error during setup of the filebeat

**URL:** <https://discuss.elastic.co/t/i-get-the-error-during-setup-of-the-filebeat/177871>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 22, 2019, 3:33pm UTC](https://discuss.elastic.co/t/i-get-the-error-during-setup-of-the-filebeat/177871 "2019-04-22T15:33:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Burak\_Cayir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/burak_cayir/32/44575_2.png) [@Burak\_Cayir](https://discuss.elastic.co/u/Burak_Cayir)\
**Post date:** [April 22, 2019, 3:33pm UTC](https://discuss.elastic.co/t/i-get-the-error-during-setup-of-the-filebeat/177871/1 "2019-04-22T15:33:14Z")

</div>

Hello , I installed filebeat 7.0.0 in my ubuntu vm. I did all necessary config. But , when I enter "sudo filebeat setup" command in terminal I get this output :  
Index setup complete.  
Loading dashboards (Kibana must be running and reachable)  
Loaded dashboards  
Exiting: 1 error: error loading config file: invalid config: yaml: line 10: did not find expected key

It's my filebeat.yaml file

```
filebeat.inputs:
- type: log

  enabled: true

  paths:
    - /var/log/apache2/*.log
    #- c:\programdata\elasticsearch\logs\*

#============================= Filebeat modules ===============================

filebeat.config.modules:
  path: ${path.config}/modules.d/*.yml

  reload.enabled: false

#==================== Elasticsearch template setting ==========================

setup.template.settings:
  index.number_of_shards: 1

#================================ General =====================================

#============================== Dashboards =====================================
setup.dashboards.enabled: true

#============================== Kibana =====================================

setup.kibana:
  host: "http://192.168.73.131:5601"

#============================= Elastic Cloud ==================================

#================================ Outputs =====================================

#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["192.168.73.131:9200"]
  username: "user"
  password: "hUyyIcR5rSQ6"

#----------------------------- Logstash output --------------------------------
#output.logstash:
  # The Logstash hosts
  # hosts: ["192.168.73.131:5044"]

#================================ Processors =====================================

# Configure processors to enhance or manipulate events generated by the beat.

processors:
  - add_host_metadata: ~
  - add_cloud_metadata: ~

#================================ Logging =====================================

#============================== Xpack Monitoring ===============================

#================================= Migration ==================================

# This allows to enable 6.7 migration aliases
#migration.6_to_7.enabled: true

```

thanks in advance.

---

<div class="post-metadata">

**Author:** ![Burak\_Cayir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/burak_cayir/32/44575_2.png) [@Burak\_Cayir](https://discuss.elastic.co/u/Burak_Cayir)\
**Post date:** [April 22, 2019, 8:22pm UTC](https://discuss.elastic.co/t/i-get-the-error-during-setup-of-the-filebeat/177871/2 "2019-04-22T20:22:09Z")

</div>

Hello,

I am using same configuration in another host (ubuntu 16.04) and filebeat setup completed without error.

---

<div class="post-metadata">

**Author:** ![Debashis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/debashis/32/45290_2.png) [@Debashis](https://discuss.elastic.co/u/Debashis)\
**Post date:** [April 23, 2019, 6:45am UTC](https://discuss.elastic.co/t/i-get-the-error-during-setup-of-the-filebeat/177871/3 "2019-04-23T06:45:07Z")

</div>

@Burak_Cayir, I have also tested your config in Redhat but it has no problem. Everything is executing fine.

The error you have mentioned is mainly occurs due to indentation problem or missing parameter in filebeat.yml file. There is no such syntax related problem in your shared filebeat.yml file.

---

<div class="post-metadata">

**Author:** ![Burak\_Cayir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/burak_cayir/32/44575_2.png) [@Burak\_Cayir](https://discuss.elastic.co/u/Burak_Cayir)\
**Post date:** [April 23, 2019, 9:36am UTC](https://discuss.elastic.co/t/i-get-the-error-during-setup-of-the-filebeat/177871/4 "2019-04-23T09:36:22Z")

</div>

@Debashis , thanks.

---

<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:** [May 21, 2019, 9:36am UTC](https://discuss.elastic.co/t/i-get-the-error-during-setup-of-the-filebeat/177871/5 "2019-05-21T09:36:26Z")

</div>

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