# Logstash Twitter plugin issues

**URL:** <https://discuss.elastic.co/t/logstash-twitter-plugin-issues/195950>\
**Category:** Logstash\
**Created:** [August 20, 2019, 1:43pm UTC](https://discuss.elastic.co/t/logstash-twitter-plugin-issues/195950 "2019-08-20T13:43:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gur79](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gur79/32/42896_2.png) [@gur79](https://discuss.elastic.co/u/gur79)\
**Post date:** [August 20, 2019, 1:43pm UTC](https://discuss.elastic.co/t/logstash-twitter-plugin-issues/195950/1 "2019-08-20T13:43:02Z")

</div>

Hello Guys.  
Yesterday i tried to use Twitter Logstash input plugin to connect to Twitter Stream API to get tweets contain word "Twitter".  
the Question is, I run the Logstash for 2 hours and it didn't even return one stream of data and i'm sure it is running correctly and new tweets from twitter contain word "Twitter" are coming.

I decide to run Logstash in debug mode and put its output on STDOUT using:

`/usr/share/logstash/bin/logstash --path.settings /etc/logstash/ --path.config /etc/logstash/conf.d/tweets.conf`

It run and I waited for data for more than 30 minutes, no data. myself by checking twitter there are new tweets contain word "Twitter".

i'm sure my twitter authentication keys are working because i have tested them with Twurl (curl-like twitter client).

So i'm asking myself where's the problem, my side(Logstash twitter plugin) or it's on twitter stream API side?  
Logstash is not giving me an error but it is not even showing me result. how can i get to trace the problem?

Thanks.

Here's my Logstash configuration

```
input {
  twitter {
    consumer_key => "XXX"
    consumer_secret => "XXX"
    oauth_token => "XXX"
    oauth_token_secret => "XXX"
    keywords => ["twitter"]
    ignore_retweets => true
    full_tweet => true
  }
}

filter {
}

output{
  stdout { codec => json }
}
```

---

<div class="post-metadata">

**Author:** ![pastechecker](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@pastechecker](https://discuss.elastic.co/u/pastechecker)\
**Post date:** [August 21, 2019, 9:23am UTC](https://discuss.elastic.co/t/logstash-twitter-plugin-issues/195950/2 "2019-08-21T09:23:07Z")

</div>

Hello.  
For me the working config is with ommiting keyword and using follows.  
Eg.

> input {  
> twitter {  
> consumer\_key =\> "XX"  
> consumer\_secret =\> "XX"  
> oauth\_token =\> "XX"  
> oauth\_token\_secret =\> "XX"  
> full\_tweet =\> true  
> ignore\_retweets =\> false  
> follows =\> ["XXXXXXX","XXXXXXXXXXXX"]  
> use\_samples =\> false  
> languages =\> ["en", "de"]  
> }  
> }

but that will require to specify the array of account user IDs that you follow.

How to debug this more in depth is to increase logging verbosity for the twitter:

> curl -XPUT '127.0.0.1:9600/\_node/logging?pretty' -H 'Content-Type: application/json' -d'  
> {  
> "logger.logstash.inputs.twitter" : "TRACE"  
> }'

The setting will not persist when you will reload the logstash.

---

<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:** [September 18, 2019, 9:23am UTC](https://discuss.elastic.co/t/logstash-twitter-plugin-issues/195950/3 "2019-09-18T09:23:10Z")

</div>

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