Logstash output exec - stdout redirect impossible?


Based on my understanding of the code, it looks impossible to execute a command that redirects stdout to a file for example - so;

command > /tmp/myoutput won't work.

This is because of the line;

Open3.popen3(cmd) do |stdin, stdout, stderr|

Which I understand tells Ruby to capture the stdout of the executed command.

Is there any workaround available ?

1 Like

confirmed. I created an issue for this: https://github.com/logstash-plugins/logstash-output-exec/issues/11

Hi ! Any update for this issue ?