README.md in fluent-plugin-twitter-0.5.4 vs README.md in fluent-plugin-twitter-0.6.0
- old
+ new
@@ -25,41 +25,42 @@
$ gem install eventmachine
$ gem install fluent-plugin-twitter
# for td-agent
$ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install eventmachine
-$ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-twitter
+$ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-twitter -v 0.6.0
# for td-agent2
$ sudo td-agent-gem install eventmachine
-$ sudo td-agent-gem install fluent-plugin-twitter
+$ sudo td-agent-gem install fluent-plugin-twitter -v 0.6.0
```
## Input Configuration
### Input Sample
It require td-agent2 (fluentd v0.12) to use keyword with hashtag.
`````
<source>
- type twitter
- consumer_key YOUR_CONSUMER_KEY # Required
- consumer_secret YOUR_CONSUMER_SECRET # Required
- oauth_token YOUR_OAUTH_TOKEN # Required
- oauth_token_secret YOUR_OAUTH_TOKEN_SECRET # Required
- tag input.twitter.sampling # Required
- timeline tracking # Required (tracking or sampling or location or userstream)
- keyword 'Ruby,Python,#fleuntd' # Optional (keyword has priority than follow_ids)
- follow_ids 14252,53235 # Optional (integers, not screen names)
+ @type twitter
+ consumer_key YOUR_CONSUMER_KEY # Required
+ consumer_secret YOUR_CONSUMER_SECRET # Required
+ access_token YOUR_ACCESS_TOKEN # Required
+ access_token_secret YOUR_ACCESS_TOKEN_SECRET # Required
+ tag input.twitter.sampling # Required
+ timeline tracking # Required (tracking or sampling or location or userstream)
+ keyword 'Ruby,Python,#fleuntd' # Optional (keyword has priority than follow_ids)
+ follow_ids 14252,53235 # Optional (integers, not screen names)
locations 31.110283, 129.431631, 45.619283, 145.510175 # Optional (bounding boxes; first pair specifies longitude/latitude of southwest corner)
- lang ja,en # Optional
- output_format nest # Optional (nest or flat or simple[default])
+ lang ja,en # Optional
+ output_format nest # Optional (nest or flat or simple[default])
+ flatten_separator _ # Optional
</source>
<match input.twitter.sampling>
- type stdout
+ @type stdout
</match>
`````
### Testing
@@ -70,19 +71,19 @@
## Output Configuration
### Output Sample
`````
<source>
- type http
+ @type http
port 8888
</source>
<match notify.twitter>
- type twitter
+ @type twitter
consumer_key YOUR_CONSUMER_KEY
consumer_secret YOUR_CONSUMER_SECRET
- access_token YOUR_OAUTH_TOKEN
- access_token_secret YOUR_OAUTH_TOKEN_SECRET
+ access_token YOUR_ACCESS_TOKEN
+ access_token_secret YOUR_ACCESS_TOKEN_SECRET
</match>
`````
### Testing