# Not able to create Index in ES by using logstash

**URL:** <https://discuss.elastic.co/t/not-able-to-create-index-in-es-by-using-logstash/1444>\
**Category:** Logstash\
**Created:** [May 28, 2015, 7:27am UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-es-by-using-logstash/1444 "2015-05-28T07:27:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://discuss.elastic.co/u/Dan)\
**Post date:** [May 28, 2015, 7:27am UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-es-by-using-logstash/1444/1 "2015-05-28T07:27:55Z")

</div>

Hi All,

I use this config file for twitter input.But its not creating index in Elastic Search.  
When i run this config file for first time its created index.But next time when i want to create new index by using same config file its not creating index.  
input {

```
twitter {
    # add your data
	consumer_key => ""
	consumer_secret => ""
    oauth_token => "i"
    oauth_token_secret => ""
    full_tweet => true		
    keywords => ["IndianPremierLeague"]
	
	}

```

}  
output {  
elasticsearch\_http {  
host =\> "localhost"

```
    index => "twitter12"
    index_type => "tweet"
}

```

}  
I given a different name index for 2nd time.  
I try to create sincedb file but its showing me error when i run config file.

Please help me with this issue.  
Thanks

---

<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 28, 2015, 8:27am UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-es-by-using-logstash/1444/2 "2015-05-28T08:27:21Z")

</div>

> I use this config file file for twitter input.But its not crating index in Elastic Search.  
> When i run this config file its created index.But next time when i run config file its not creating index.

The index name is fixed to "twitter12", so unless you're deleting the index between the Logstash invocations I don't understand what you mean by this.

> I given a different name index for 2nd time.

And then it works?

> I try to create sincedb file but its showing me error when i run config file.

Why would you _create_ a sincedb file? What error do you get?

---

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://discuss.elastic.co/u/Dan)\
**Post date:** [May 28, 2015, 9:31am UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-es-by-using-logstash/1444/3 "2015-05-28T09:31:52Z")

</div>

Hi Magnusbaeck,

if i won't give sincedb logstash starting properly,but its not creating index in ES.

When i use this twitter code for first time it's created index in ES.After that when i try to create another index its not creating index in ES.

---

<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 28, 2015, 6:38pm UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-es-by-using-logstash/1444/4 "2015-05-28T18:38:20Z")

</div>

> if i won't give sincedb logstash starting properly

Sorry, I don't understand what you're saying.

Again, is there anything interesting in Logstash's own logs? You may won't to turn up logging verbosity with `--verbose` or even `--debug`.

---

<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-by-using-logstash/1444/5 "2017-07-06T05:39:09Z")

</div>


