# Newbie question about adding data files to elasticsearch

**URL:** <https://discuss.elastic.co/t/newbie-question-about-adding-data-files-to-elasticsearch/184354>\
**Category:** Elasticsearch\
**Created:** [June 5, 2019, 12:20pm UTC](https://discuss.elastic.co/t/newbie-question-about-adding-data-files-to-elasticsearch/184354 "2019-06-05T12:20:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KathyTheGreat](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@KathyTheGreat](https://discuss.elastic.co/u/KathyTheGreat)\
**Post date:** [June 5, 2019, 12:20pm UTC](https://discuss.elastic.co/t/newbie-question-about-adding-data-files-to-elasticsearch/184354/1 "2019-06-05T12:20:41Z")

</div>

I am trying to import tab delimited log files into elasticsearch. I will be using some kind of powershell to move the files to the server where elasticsearch is installed. I already have created the mapping and an index. When I import a file, how do I tell elasticsearch to use the mapping and index that I have already created? I'm assuming there is some kind of api command that I can use to do this.

---

<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:** [July 3, 2019, 12:20pm UTC](https://discuss.elastic.co/t/newbie-question-about-adding-data-files-to-elasticsearch/184354/2 "2019-07-03T12:20:55Z")

</div>

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