output {
if ([Level] == "RROR" and [newmessage] !~ "SimpleAsyncUncaughtExceptionHandler" ){
if ![newmessage]{
exec {
command => "/app/app/logstash/send_dx.sh '%{newmessage}'"
}
}
stdout {
codec=>rubydebug{}
}
}
}
IOError: invalid null character in command
popen3 at org/jruby/RubyIO.java:4398
popen3 at /app/app/logstash-2.3.4/vendor/jruby/lib/ruby/1.9/open3.rb:74
&nbs
在Logstash中遇到IOError: invalid null character in command错误,该错误通常发生在尝试执行带有非法空字符的命令时。此问题可能影响到logstash-output-exec插件的正常工作。错误堆栈跟踪显示问题源于popen3方法。解决方案可能涉及检查并修正send_dx.sh脚本中的字符编码,确保没有无效的空字符。
订阅专栏 解锁全文
1245

被折叠的 条评论
为什么被折叠?



