Skip to content

Instantly share code, notes, and snippets.

@silentsudo
Created May 20, 2021 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silentsudo/e00899956197500eadf906f21fb1ec8c to your computer and use it in GitHub Desktop.
Save silentsudo/e00899956197500eadf906f21fb1ec8c to your computer and use it in GitHub Desktop.
logstash twitter input plugin
input {
twitter {
consumer_key => "${TWITTER_KEY}"
consumer_secret => "${TWITTER_SECRET}"
oauth_token => "${TWITTER_OAUTH_TOKEN}"
oauth_token_secret => "${TWITTER_OAUTH_SECRET}"
ignore_retweets => true
full_tweet => true
keywords=> ["java", "springboot"]
}
}
filter {
prune {
whitelist_names => ["^text$"]
}
}
output {
stdout {}
elasticsearch {
hosts => ["localhost:9200"]
index => "java-spring-boot-index"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment