# ERROR	instance/beat.go:933	Exiting: Error reading config file: required 'object', but found 'string' in field 'filebeat.inputs.1' (source:'filebeat.yml')

**URL:** <https://discuss.elastic.co/t/error-instance-beat-go-933-exiting-error-reading-config-file-required-object-but-found-string-in-field-filebeat-inputs-1-source-filebeat-yml/225074>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 25, 2020, 10:13pm UTC](https://discuss.elastic.co/t/error-instance-beat-go-933-exiting-error-reading-config-file-required-object-but-found-string-in-field-filebeat-inputs-1-source-filebeat-yml/225074 "2020-03-25T22:13:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hemant\_472](https://avatars.discourse-cdn.com/v4/letter/h/6bbea6/32.png) [@hemant\_472](https://discuss.elastic.co/u/hemant_472)\
**Post date:** [March 25, 2020, 10:13pm UTC](https://discuss.elastic.co/t/error-instance-beat-go-933-exiting-error-reading-config-file-required-object-but-found-string-in-field-filebeat-inputs-1-source-filebeat-yml/225074/1 "2020-03-25T22:13:04Z")

</div>

Hi, i am getting this error and not able to access my log file

`'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''  
filebeat.inputs:

# Each - is an input. Most options can be set at the input level, so

# you can use different inputs for various configurations.

# Below are the input specific configurations.

- type: log

- /home/hemantkumar/elastic search training/elasticsearch-7.6.0/logs/logex/\*

#-------------------------- Elasticsearch output ------------------------------  
#output.elasticsearch:

# Array of hosts to connect to.

#hosts: ["localhost:9200"]

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

#protocol: "https"

# Authentication credentials - either API key or username/password.

api\_key: "id:api\_key"  
username: "elastic"  
password: "12345678"

#----------------------------- Logstash output --------------------------------

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

# Optional SSL. By default is off.

# List of root certificates for HTTPS server verifications

#ssl.certificate\_authorities: ["/etc/pki/root/ca.pem"]

# Certificate for SSL client authentication

#ssl.certificate: "/etc/pki/client/cert.pem"

# Client Certificate Key

#ssl.key: "/etc/pki/client/cert.key"  
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''`

Please let me know if there is something wrong in my filebeat.yml

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [March 27, 2020, 1:03am UTC](https://discuss.elastic.co/t/error-instance-beat-go-933-exiting-error-reading-config-file-required-object-but-found-string-in-field-filebeat-inputs-1-source-filebeat-yml/225074/2 "2020-03-27T01:03:20Z")

</div>

Hi @hemant_472, welcome to the Elastic community forums!

Could you please edit your post and enclose your Filebeat configuration file contents in ``` delimiters? That will format them and make it easier to read them.

Thanks,

Shaunak

---

<div class="post-metadata">

**Author:** ![hemant\_472](https://avatars.discourse-cdn.com/v4/letter/h/6bbea6/32.png) [@hemant\_472](https://discuss.elastic.co/u/hemant_472)\
**Post date:** [March 27, 2020, 8:50am UTC](https://discuss.elastic.co/t/error-instance-beat-go-933-exiting-error-reading-config-file-required-object-but-found-string-in-field-filebeat-inputs-1-source-filebeat-yml/225074/3 "2020-03-27T08:50:43Z")

</div>

Hi @shaunak please let me know if it is ok

```auto
filebeat.inputs:

- type: log

```

```auto
  enabled: true

  paths:

- /home/hemantkumar/elastic search training/elasticsearch-7.6.0/logs/logex/*

```

```auto
#-------------------------- Elasticsearch output ------------------------------
#output.elasticsearch:

```

#hosts: ["localhost:9200"]

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

```

```auto
  api_key: "id:api_key"
  username: "elastic"
  password: "12345678"

```

```auto
#----------------------------- Logstash output --------------------------------

```

```auto
output.logstash:
  #The Logstash hosts
  hosts: ["localhost:5044"]

 

```

Please let me know if there is something wrong in my filebeat.yml

---

<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 24, 2020, 8:50am UTC](https://discuss.elastic.co/t/error-instance-beat-go-933-exiting-error-reading-config-file-required-object-but-found-string-in-field-filebeat-inputs-1-source-filebeat-yml/225074/4 "2020-04-24T08:50:52Z")

</div>

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