# Index Twitter Stream with Logstash

**URL:** <https://discuss.elastic.co/t/index-twitter-stream-with-logstash/35905>\
**Category:** Logstash\
**Created:** [November 30, 2015, 2:23pm UTC](https://discuss.elastic.co/t/index-twitter-stream-with-logstash/35905 "2015-11-30T14:23:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adellarocca](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@adellarocca](https://discuss.elastic.co/u/adellarocca)\
**Post date:** [November 30, 2015, 2:23pm UTC](https://discuss.elastic.co/t/index-twitter-stream-with-logstash/35905/1 "2015-11-30T14:23:09Z")

</div>

Hi!  
I'm trying to index a Twitter stream using twitter plugin of Logstash.  
This is my configuration file  
input {

```
	twitter {
	consumer_key => "omitted"
consumer_secret => "omitted"
oauth_token => "omitted"
oauth_token_secret => "omitted"
keywords => ["elastic","elasticsearch","kibana","lucene"]
full_tweet => true
		tags => ["twitter"]
	}
}

filter {

}

output {
elasticsearch {
index => "twitter_index"
		action => index
user => "alessandro"
		password => "omitted"
		hosts => ["localhost:9200"]
		template => "/home/alessandro/Scrivania/logstash-2.0.0/conf/twitter_template.json"
		template_name => "twitter"

```

}  
}

The stream is active if I watch at console, but the index doesn't exist in elasticsearch.  
What'is the problem?  
Same problem exists also I don't use template.  
Thank you.

---

<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:** [November 30, 2015, 10:52pm UTC](https://discuss.elastic.co/t/index-twitter-stream-with-logstash/35905/2 "2015-11-30T22:52:52Z")

</div>

Your config looks ok. Try running with `--debug` or `--verbose` to see what is happening?

---

<div class="post-metadata">

**Author:** ![adellarocca](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@adellarocca](https://discuss.elastic.co/u/adellarocca)\
**Post date:** [December 2, 2015, 11:14am UTC](https://discuss.elastic.co/t/index-twitter-stream-with-logstash/35905/3 "2015-12-02T11:14:22Z")

</div>

Thank you for your help warkolm!

---

<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:20am UTC](https://discuss.elastic.co/t/index-twitter-stream-with-logstash/35905/4 "2017-07-06T05:20:24Z")

</div>


