# Indexing Tweets with logstash elasticsearch and kibana

**URL:** <https://discuss.elastic.co/t/indexing-tweets-with-logstash-elasticsearch-and-kibana/71916>\
**Category:** Logstash\
**Created:** [January 17, 2017, 9:55pm UTC](https://discuss.elastic.co/t/indexing-tweets-with-logstash-elasticsearch-and-kibana/71916 "2017-01-17T21:55:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amilus](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@amilus](https://discuss.elastic.co/u/amilus)\
**Post date:** [January 17, 2017, 9:55pm UTC](https://discuss.elastic.co/t/indexing-tweets-with-logstash-elasticsearch-and-kibana/71916/1 "2017-01-17T21:55:35Z")

</div>

Hello, i'm trying to index tweets, importing them with logstash into elasticsearch but i'm getting an error that i couldn't resolve ![](https://us1.discourse-cdn.com/elastic/original/2X/b/bc61a441f5f05ae936899a0ccd6e8c434e23cf3a.PNG)  
this is my twitter.conf file  
input {  
twitter {  
# add your data  
consumer\_key =\> "xx"  
consumer\_secret =\> "xx"  
oauth\_token =\> "xx"  
oauth\_token\_secret =\> "xx"  
keywords =\> ["terrorist","terrorism","attack"]  
full\_tweet =\> true  
}  
}  
output {  
stdout { codec =\> dots }  
elasticsearch{  
protocol =\> "http"  
host =\> "localhost"  
index =\> "twitter"  
document\_type =\> "tweet"  
template =\> "twitter\_template.json"  
template\_name =\> "twitter"  
}  
}

---

<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:** [January 18, 2017, 6:00am UTC](https://discuss.elastic.co/t/indexing-tweets-with-logstash-elasticsearch-and-kibana/71916/2 "2017-01-18T06:00:08Z")

</div>

Please don't post pictures of text, they are difficult to read and some people may not be even able to see them. 🙂

---

<div class="post-metadata">

**Author:** ![JKhondhu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JKhondhu](https://discuss.elastic.co/u/JKhondhu)\
**Post date:** [January 18, 2017, 10:04am UTC](https://discuss.elastic.co/t/indexing-tweets-with-logstash-elasticsearch-and-kibana/71916/3 "2017-01-18T10:04:01Z")

</div>

What steps or tutorial is being followed here?  
Please test your config file with the -t switch ([https://www.elastic.co/guide/en/logstash/current/command-line-flags.html](https://www.elastic.co/guide/en/logstash/current/command-line-flags.html))

---

<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:** [February 15, 2017, 10:04am UTC](https://discuss.elastic.co/t/indexing-tweets-with-logstash-elasticsearch-and-kibana/71916/4 "2017-02-15T10:04:29Z")

</div>

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