# Importing data files into already created index

**URL:** <https://discuss.elastic.co/t/importing-data-files-into-already-created-index/204675>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 22, 2019, 3:02pm UTC](https://discuss.elastic.co/t/importing-data-files-into-already-created-index/204675 "2019-10-22T15:02:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![computer\_engineer](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@computer\_engineer](https://discuss.elastic.co/u/computer_engineer)\
**Post date:** [October 22, 2019, 3:02pm UTC](https://discuss.elastic.co/t/importing-data-files-into-already-created-index/204675/1 "2019-10-22T15:02:44Z")

</div>

I have been having issues getting filebeat to work and opted to import the data using files into elasticsearch. However it looks like it is not possible to import into an existing created index. Is this true or is there a workaround for this? Would like to have all the data in one index or else will have to use the same file.

---

<div class="post-metadata">

**Author:** ![pmercado](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@pmercado](https://discuss.elastic.co/u/pmercado)\
**Post date:** [October 23, 2019, 4:06pm UTC](https://discuss.elastic.co/t/importing-data-files-into-already-created-index/204675/2 "2019-10-23T16:06:56Z")

</div>

I would say that's possible, here are the parameters you would need to configure:

[https://www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html#index-option-es](https://www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html#index-option-es)

I guess you will also need to apply the index mapping to your index, not sure if beats will create it if not present.

---

<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 20, 2019, 4:07pm UTC](https://discuss.elastic.co/t/importing-data-files-into-already-created-index/204675/3 "2019-11-20T16:07:04Z")

</div>

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