Skip to content

Instantly share code, notes, and snippets.

@kiyoto
Created August 2, 2013 21:06
Show Gist options
  • Save kiyoto/6143460 to your computer and use it in GitHub Desktop.
Save kiyoto/6143460 to your computer and use it in GitHub Desktop.
fluentd configuration to gather data from Twitter and index them on Elastic Search
# Twitter input: See https://github.com/y-ken/fluent-plugin-twitter
<source>
type twitter
consumer_key YOU_CONSUTMER_KEY # Required
consumer_secret YOUR_CONSUMER_SECRET # Required
oauth_token YOUR_OAUTH_TOKEN # Required
oauth_token_secret YOUR_TOKEN_SECRET # Required
tag twitter.timeline # Required
timeline userstream # Required s(sampling or userstream)
#keyword SFGiants
</source>
# Elastic Search output: See https://github.com/uken/fluent-plugin-elasticsearch
<match twitter.timeline>
type elasticsearch
logstash_format true
flush_interval 10s
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment