# Logstash json file for twitter search

**URL:** <https://discuss.elastic.co/t/logstash-json-file-for-twitter-search/89466>\
**Category:** Logstash\
**Created:** [June 14, 2017, 10:24pm UTC](https://discuss.elastic.co/t/logstash-json-file-for-twitter-search/89466 "2017-06-14T22:24:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lbr1](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@Lbr1](https://discuss.elastic.co/u/Lbr1)\
**Post date:** [June 14, 2017, 10:24pm UTC](https://discuss.elastic.co/t/logstash-json-file-for-twitter-search/89466/1 "2017-06-14T22:24:55Z")

</div>

Good evening community,

I'm new to elastic and logstash and I'm doing some work on twitter's feelings analysis.

I created this .json file:

input {  
twitter {  
consumer\_key =\> ".."  
consumer\_secret =\> "..."  
oauth\_token =\> "..."  
oauth\_token\_secret =\> "..."  
keywords =\> ["@user"]  
}  
}

output {  
elasticsearch {  
index =\> "twitter\_ex"  
id =\> "teste1\_id"  
}  
}

But if within the keywords array insert the user name in order to get your tweets (eg @asas) I get quite a few errors. The question is:

1- Is it possible to search for twittes of a specific user?

2- Using this file and using a particular keyword, I get recent results, is there any way to get older results for a better analysis?

Thank you and I apologize for the questions.

Greetings,  
Lbr1

---

<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 12, 2017, 10:24pm UTC](https://discuss.elastic.co/t/logstash-json-file-for-twitter-search/89466/2 "2017-07-12T22:24:56Z")

</div>

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