# Not able to create Index in ES with Logstash

**URL:** <https://discuss.elastic.co/t/not-able-to-create-index-in-es-with-logstash/1173>\
**Category:** Logstash\
**Created:** [May 22, 2015, 1:16pm UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-es-with-logstash/1173 "2015-05-22T13:16:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rkhapre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rkhapre/32/48333_2.png) [@rkhapre](https://discuss.elastic.co/u/rkhapre)\
**Post date:** [May 22, 2015, 1:16pm UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-es-with-logstash/1173/1 "2015-05-22T13:16:23Z")

</div>

Continuing the discussion from [Not able to create Index with Logstash](https://discuss.elastic.co/t/not-able-to-create-index-with-logstash/1170):

> [@Not able to create Index with Logstash](https://discuss.elastic.co/t/not-able-to-create-index-with-logstash/1170/1):
>
> input {  
> file {  
> path =\> "C:/TEMP/\*.txt"  
> type =\> "core2"  
> start\_position =\> "beginning"  
> }  
> }
> 
> filter {
> 
> }
> 
> output {  
> elasticsearch {  
> action =\> "index"  
> host =\> "localhost"  
> cluster =\> "clustertest"  
> node\_name=\> "test"  
> index =\> "market"
> 
> ```
> }
> stdout {
> codec => rubydebug
> }
> 
> ```
> 
> }

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 24, 2015, 2:16am UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-es-with-logstash/1173/2 "2015-05-24T02:16:12Z")

</div>

You haven't given much information.

What happens when you run this?  
Have you checked your ES logs? Have you made sure your cluster is up and running ok?

---

<div class="post-metadata">

**Author:** ![rkhapre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rkhapre/32/48333_2.png) [@rkhapre](https://discuss.elastic.co/u/rkhapre)\
**Post date:** [May 24, 2015, 2:26pm UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-es-with-logstash/1173/3 "2015-05-24T14:26:06Z")

</div>

Hi

Yes the 'clustertest' cluster is up and running and also when it starts it is showing the node has started.

When i just create a index with a document in ES it works, but when i run the above config file through logstash it doesn't create a index.

The above code is in my config file- simple.conf for logstash, i run it through logstash command

logstash -f simple.conf

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 24, 2015, 11:24pm UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-es-with-logstash/1173/4 "2015-05-24T23:24:34Z")

</div>

If you are always using the same log input then you are probably running into a [sincedb](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#plugins-inputs-file-sincedb_path) issue. See if you have a .sincedb file and if you do delete and try running LS again.

---

<div class="post-metadata">

**Author:** ![rkhapre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rkhapre/32/48333_2.png) [@rkhapre](https://discuss.elastic.co/u/rkhapre)\
**Post date:** [May 25, 2015, 4:37am UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-es-with-logstash/1173/5 "2015-05-25T04:37:08Z")

</div>

Hi,

You seems to be correct as when i change the index name its working but not the next time  
Where i can find .sincedb file to delete it

I do not see any, below is screenshot of my logstash home folder. In the documentation its written it will be available @$HOME/.sincedb\*

![](https://sea2.discourse-cdn.com/elastic/uploads/default/original/5/7/5772dce97ba86a42f589416edb07f0495dda6a1a.png)

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 25, 2015, 5:33am UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-es-with-logstash/1173/6 "2015-05-25T05:33:59Z")

</div>

That's the Logstash installation directory and I doubt you have the HOME variable pointing there. If you start Logstash with `--debug` it'll tell you what sincedb files it reads. See below for the (Logstash 1.5) logic used when deciding the directory for sincedb files (if the sincedb\_path parameter isn't set).

> <https://github.com/logstash-plugins/logstash-input-file/blob/v0.1.10/lib/logstash/inputs/file.rb#L94-L104>

---

<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 6, 2017, 5:39am UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-es-with-logstash/1173/7 "2017-07-06T05:39:23Z")

</div>


