Closed sndyuk closed 12 years ago
I want to do like this:
mongo-tail -c access -d fluent -n 1 -f | grep xxx
But mongo-tail do not flush stdout. So It cloud not work.
https://github.com/fluent/fluent-plugin-mongo/blob/master/bin/mongo-tail#L68
I patched:
puts doc.to_json STDOUT.flush
This code seems to work.
I don't know what is the better way. Could you fix it?
mongo-tail does not need the performance. So your patch is acceptable. Please wait!
Pushed and new version released. Thanks!
I want to do like this:
But mongo-tail do not flush stdout. So It cloud not work.
https://github.com/fluent/fluent-plugin-mongo/blob/master/bin/mongo-tail#L68
I patched:
This code seems to work.
I don't know what is the better way. Could you fix it?