# Send Daynamic keywords to twitter API in logstash

**URL:** <https://discuss.elastic.co/t/send-daynamic-keywords-to-twitter-api-in-logstash/214693>\
**Category:** Logstash\
**Created:** [January 11, 2020, 6:20am UTC](https://discuss.elastic.co/t/send-daynamic-keywords-to-twitter-api-in-logstash/214693 "2020-01-11T06:20:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shakesperoo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shakesperoo/32/20832_2.png) [@shakesperoo](https://discuss.elastic.co/u/shakesperoo)\
**Post date:** [January 11, 2020, 6:20am UTC](https://discuss.elastic.co/t/send-daynamic-keywords-to-twitter-api-in-logstash/214693/1 "2020-01-11T06:20:17Z")

</div>

I am using Logstash to stream twittter tweets like below

input {  
twitter {  
consumer\_key =\> ""  
consumer\_secret =\> ""  
oauth\_token =\> ""  
oauth\_token\_secret =\> ""  
keywords =\> ["USA","Trump"]  
full\_tweet =\> true  
type =\> "tweet"  
}  
}

I want to send the keywords dyanmic from elastic index , or API url !  
how could i possible do that ?

Is there anyway to read the keywords from API or elastic index instead of static keywords

like

keywords =\> "[https://Api.com](https://Api.com)"  
keywords =\> "[https://localhoat:9200/keywords/text](https://localhoat:9200/keywords/text)"

---

<div class="post-metadata">

**Author:** ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)\
**Post date:** [January 11, 2020, 7:50am UTC](https://discuss.elastic.co/t/send-daynamic-keywords-to-twitter-api-in-logstash/214693/2 "2020-01-11T07:50:12Z")

</div>

No. The [Twitter Input Plugin](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-twitter.html#plugins-inputs-twitter-keywords) does not have a way to reload configuration from an external source.

---

<div class="post-metadata">

**Author:** ![shakesperoo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shakesperoo/32/20832_2.png) [@shakesperoo](https://discuss.elastic.co/u/shakesperoo)\
**Post date:** [January 11, 2020, 8:10am UTC](https://discuss.elastic.co/t/send-daynamic-keywords-to-twitter-api-in-logstash/214693/3 "2020-01-11T08:10:47Z")

</div>

Can i do use logstash http plugin to do this ??

input {  
http {  
host =\> "[http://localhost/WebApplication3/home/Keywords](http://localhost/WebApplication3/home/Keywords)"  
port =\> 80  
}  
}

filter {  
mutate {  
add\_field =\> { "token" =\> "logzioAccountToken" }  
}  
}

---

<div class="post-metadata">

**Author:** ![shakesperoo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shakesperoo/32/20832_2.png) [@shakesperoo](https://discuss.elastic.co/u/shakesperoo)\
**Post date:** [January 11, 2020, 8:11am UTC](https://discuss.elastic.co/t/send-daynamic-keywords-to-twitter-api-in-logstash/214693/4 "2020-01-11T08:11:30Z")

</div>

Is it possible to use any logstash http plugin to load the keywords daynmic ? and feed the twitter plugin inputs

---

<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 8, 2020, 8:11am UTC](https://discuss.elastic.co/t/send-daynamic-keywords-to-twitter-api-in-logstash/214693/5 "2020-02-08T08:11:30Z")

</div>

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