# Filebeat not indexing data to elasticsearch

**URL:** <https://discuss.elastic.co/t/filebeat-not-indexing-data-to-elasticsearch/147134>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 4, 2018, 4:05am UTC](https://discuss.elastic.co/t/filebeat-not-indexing-data-to-elasticsearch/147134 "2018-09-04T04:05:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandhyap](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@sandhyap](https://discuss.elastic.co/u/sandhyap)\
**Post date:** [September 4, 2018, 4:05am UTC](https://discuss.elastic.co/t/filebeat-not-indexing-data-to-elasticsearch/147134/1 "2018-09-04T04:05:01Z")

</div>

Hi,

I use beat 6.4.0... Beats not indexing data to elastic search. filebeat.yml looks like below

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

Output Section

output.elasticsearch:

# Array of hosts to connect to.

#hosts: ["localhost:9200"]  
hosts: ["34.214.250.107:9200"]  
filebeat.registry\_file: /var/lib/filebeat/registry  
#index: "filebeat-%{[beat.version]}-%{+yyyy.MM.dd}"  
#setup.template.name: "filebeat"  
#setup.template.pattern: "filebeat-\*"

# Optional protocol and basic auth credentials.

#protocol: "https"  
#username: "elastic"  
#password: "changeme"

Please help to fix

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [September 4, 2018, 7:40am UTC](https://discuss.elastic.co/t/filebeat-not-indexing-data-to-elasticsearch/147134/2 "2018-09-04T07:40:22Z")

</div>

> [@sandhyap](#):
>
> ```
> # Change to true to enable this input configuration.
> enabled: false
> 
> ```

You probably want to set `enabled: true` in the log input.

---

<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:** [October 2, 2018, 7:40am UTC](https://discuss.elastic.co/t/filebeat-not-indexing-data-to-elasticsearch/147134/3 "2018-10-02T07:40:24Z")

</div>

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