Created
April 30, 2012 06:51
-
-
Save methane/2556093 to your computer and use it in GitHub Desktop.
fluentd で殴り合い
This file contains hidden or 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
| <source> | |
| type forward | |
| port 12345 | |
| </source> | |
| <match **> | |
| type forward | |
| buffer_type memory | |
| buffer_chunk_limit 4m | |
| buffer_queue_limit 128 | |
| flush_interval 1s | |
| <server> | |
| host localhost | |
| port 12346 | |
| </server> | |
| </match> |
This file contains hidden or 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
| <source> | |
| type forward | |
| port 12346 | |
| </source> | |
| <match **> | |
| type forward | |
| buffer_type memory | |
| buffer_chunk_limit 4m | |
| buffer_queue_limit 128 | |
| flush_interval 1s | |
| <server> | |
| host localhost | |
| port 12345 | |
| </server> | |
| </match> |
This file contains hidden or 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
| import msgpack | |
| import subprocess | |
| data = msgpack.packb({"foo": "a"*10000}) | |
| proc = subprocess.Popen('fluent-cat -p12345 --msgpack foo.bar', shell=True, stdin=subprocess.PIPE) | |
| proc.stdin.write(data*10000) | |
| proc.stdin.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment