# Elasticsearch index creation

**URL:** <https://discuss.elastic.co/t/elasticsearch-index-creation/204632>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 22, 2019, 10:53am UTC](https://discuss.elastic.co/t/elasticsearch-index-creation/204632 "2019-10-22T10:53:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![france](https://avatars.discourse-cdn.com/v4/letter/f/e480ec/32.png) [@france](https://discuss.elastic.co/u/france)\
**Post date:** [October 22, 2019, 10:53am UTC](https://discuss.elastic.co/t/elasticsearch-index-creation/204632/1 "2019-10-22T10:53:53Z")

</div>

I have problems with elasticsearch index creation with filebeat.  
I installed all the other beats on ubuntu 19.04 server and all theese beats created the index in elasticsearch. I installed in the same way filebeat and the index has not been created.  
I created manually the index using the command  
filebeat setup --index-management -E output.logstash.enabled=false -E 'output.elasticsearch.hosts=["localhost:9200"]'  
the index has been created but it rremains empty.

I'am not able to solve the problem.

---

<div class="post-metadata">

**Author:** ![faec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/faec/32/46988_2.png) [@faec](https://discuss.elastic.co/u/faec)\
**Post date:** [October 23, 2019, 3:30pm UTC](https://discuss.elastic.co/t/elasticsearch-index-creation/204632/2 "2019-10-23T15:30:16Z")

</div>

Welcome! The index isn't created until the first time Filebeat writes to it, so it sounds like the problem you're encountering is that Filebeat is never (successfully) writing anything. There's several reasons this could be happening, for example it might not find any files matching its input pattern, it might be unable to connect to the elasticsearch server, etc. Could you share your configuration (`filebeat.yml`) and the output logs when you run Filebeat (they're probably in the same place as filebeat, in the `logs/` subdirectory)?

---

<div class="post-metadata">

**Author:** ![france](https://avatars.discourse-cdn.com/v4/letter/f/e480ec/32.png) [@france](https://discuss.elastic.co/u/france)\
**Post date:** [October 24, 2019, 8:58am UTC](https://discuss.elastic.co/t/elasticsearch-index-creation/204632/3 "2019-10-24T08:58:14Z")

</div>

Thanks a lot for your quick answer.  
Now it works properly.

---

<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:** [November 21, 2019, 8:58am UTC](https://discuss.elastic.co/t/elasticsearch-index-creation/204632/4 "2019-11-21T08:58:19Z")

</div>

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