y-ken / fluent-plugin-twitter

Fluentd Input/Output plugin to process tweets with Twitter Streaming API.
https://rubygems.org/gems/fluent-plugin-twitter
Other
52 stars 27 forks source link

fix raw json support: change hash keys symbol to string #2

Closed yuiseki closed 11 years ago

yuiseki commented 11 years ago

y-ken様

昨日のraw json対応ですが、fluentdのエンジンに渡しているhashのキーがシンボルになっていたため、プラグイン間の連携で問題が起きてしまうことがわかりました。

mongodbに保存された段階では自動的にキーが文字列に変換されていたので気づくのがおくれました。 datacounterなど別のプラグインで、confで指定された文字列をキーとして参照している所でnilになってしまっていました。 hashのキーを文字列に変換して渡すように修正し、datacounterで正常にカウントできようにしました。

度々お手数掛けましてすみませんが、ご確認いただけますでしょうか。 よろしくお願いしますー。

y-ken commented 11 years ago

ありがとうございます! 確かにそれは盲点でしたね。 後ほどマージし、動作確認の後にリリースしたいと思います。