Send Daynamic keywords to twitter API in logstash

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"
keywords => "https://localhoat:9200/keywords/text"

No. The Twitter Input Plugin does not have a way to reload configuration from an external source.

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

input {
http {
host => "http://localhost/WebApplication3/home/Keywords"
port => 80
}
}

filter {
mutate {
add_field => { "token" => "logzioAccountToken" }
}
}

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

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