# Unable to create index and store data to es

**URL:** <https://discuss.elastic.co/t/unable-to-create-index-and-store-data-to-es/208084>\
**Category:** Logstash\
**Created:** [November 15, 2019, 1:44pm UTC](https://discuss.elastic.co/t/unable-to-create-index-and-store-data-to-es/208084 "2019-11-15T13:44:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akshay\_Sadawarte](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akshay_sadawarte/32/46143_2.png) [@Akshay\_Sadawarte](https://discuss.elastic.co/u/Akshay_Sadawarte)\
**Post date:** [November 15, 2019, 1:44pm UTC](https://discuss.elastic.co/t/unable-to-create-index-and-store-data-to-es/208084/1 "2019-11-15T13:44:08Z")

</div>

i have this conf file but unable to create index to es

.conf file  
input { file {  
path =\> "D:/filelog.txt"

```
	sincedb_path => "NUL"

```

}}  
output {  
elasticsearch { hosts =\> ["localhost:9200"]  
index=\>"logstash"}  
stdout { codec =\> rubydebug }  
}

logs

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/f/0f4c612c1f801ef2784296beb43526753e4809a7.png)

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [November 15, 2019, 3:25pm UTC](https://discuss.elastic.co/t/unable-to-create-index-and-store-data-to-es/208084/2 "2019-11-15T15:25:02Z")

</div>

By default a file input will seek to the end of a file and wait for new data to be appended. You can change that using the start\_position option on the input.

---

<div class="post-metadata">

**Author:** ![Akshay\_Sadawarte](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akshay_sadawarte/32/46143_2.png) [@Akshay\_Sadawarte](https://discuss.elastic.co/u/Akshay_Sadawarte)\
**Post date:** [November 16, 2019, 3:36am UTC](https://discuss.elastic.co/t/unable-to-create-index-and-store-data-to-es/208084/3 "2019-11-16T03:36:33Z")

</div>

Yes after making change it worked, thanks

---

<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:** [December 14, 2019, 3:36am UTC](https://discuss.elastic.co/t/unable-to-create-index-and-store-data-to-es/208084/4 "2019-12-14T03:36:43Z")

</div>

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