Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

out_exec_filter fails tests #36

Closed
polm opened this issue Feb 7, 2012 · 1 comment
Closed

out_exec_filter fails tests #36

polm opened this issue Feb 7, 2012 · 1 comment

Comments

@polm
Copy link

polm commented Feb 7, 2012

Using 0.10.9, fails with:

Finished tests in 4.680640s, 1.0682 tests/s, 4.2729 assertions/s.

  1) Failure:
test_emit_3(ExecFilterOutputTest) [out_exec_filter.rb:130]:
<2> expected but was
<0>.

  2) Failure:
test_emit_4(ExecFilterOutputTest) [out_exec_filter.rb:155]:
<2> expected but was
<0>.

5 tests, 20 assertions, 2 failures, 0 errors, 0 skips

I can't get it to work with anything more complex than cat. The idea is that it calls a command, feeds it events as input, and reads the output of that command to generate new events, right? That seems to be the idea but the documentation isn't very clear...

I'm using Scientific Linux 6.1, which is apparently a RHEL variant.

Ruby version: ruby 1.9.3p0 (2011-10-30) [x86_64-linux]

@frsyuki
Copy link
Member

frsyuki commented Feb 9, 2012

Your understanding is right. The external program reads TSV from stdin and writes TSV to stdout.
I updated the document a little: http://fluentd.org/doc/plugin.html#exec-filter

The error in the test case was caused because the external program took longer time than expected (0.1 seconds). I extended the sleep time to 0.5 seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants