Created
May 20, 2021 06:41
-
-
Save silentsudo/e00899956197500eadf906f21fb1ec8c to your computer and use it in GitHub Desktop.
logstash twitter input plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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