Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (InvalidByteSequenceError) ""\xA7"" on ASCII-8BIT
Description
Hi,
I'm experiencing the exception below on Windows 2008 r2/Windows 2012:
###################################################### Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (InvalidByteSequenceError) ""\xA7"" on ASCII-8BIT at org.jruby.RubyString.encode(org/jruby/RubyString.java:7599) at json.ext.GeneratorMethods$RbHash.to_json(json/ext/GeneratorMethods.java:71) at LogStash::Event.to_json(file:/C:/logstash/logstash.jar!/logstash/event.rb:168) at LogStash::Outputs::Redis.receive(file:/C:/logstash/logstash.jar!/logstash/outputs/redis.rb:151) at LogStash::Outputs::Base.handle(file:/C:/logstash/logstash.jar!/logstash/outputs/base.rb:86) at RUBY.initialize((eval):17) at org.jruby.RubyProc.call(org/jruby/RubyProc.java:271) at LogStash:ipeline.output(file:/C:/logstash/logstash.jar!/logstash/pipeline.rb:259) at RUBY.outputworker(file:/C:/logstash/logstash.jar!/logstash/pipeline.rb:218) at RUBY.start_outputs(file:/C:/logstash/logstash.jar!/logstash/pipeline.rb:145) #############################################
This happens randomly, but quite often ( several times per day ). Here's the configuration file:
Hi,
I'm experiencing the exception below on Windows 2008 r2/Windows 2012:
######################################################
ipeline.output(file:/C:/logstash/logstash.jar!/logstash/pipeline.rb:259)
Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (InvalidByteSequenceError) ""\xA7"" on ASCII-8BIT
at org.jruby.RubyString.encode(org/jruby/RubyString.java:7599)
at json.ext.GeneratorMethods$RbHash.to_json(json/ext/GeneratorMethods.java:71)
at LogStash::Event.to_json(file:/C:/logstash/logstash.jar!/logstash/event.rb:168)
at LogStash::Outputs::Redis.receive(file:/C:/logstash/logstash.jar!/logstash/outputs/redis.rb:151)
at LogStash::Outputs::Base.handle(file:/C:/logstash/logstash.jar!/logstash/outputs/base.rb:86)
at RUBY.initialize((eval):17)
at org.jruby.RubyProc.call(org/jruby/RubyProc.java:271)
at LogStash:
at RUBY.outputworker(file:/C:/logstash/logstash.jar!/logstash/pipeline.rb:218)
at RUBY.start_outputs(file:/C:/logstash/logstash.jar!/logstash/pipeline.rb:145)
#############################################
This happens randomly, but quite often ( several times per day ).
Here's the configuration file:
##########################################
input {
eventlog {
logfile => ["Application", "Security", "System", "Forwarded Events"]
}
}
output {
stdout { codec => rubydebug }
redis {
host => "redis.example.com"
data_type => "list"
key => "eventlogs"
}
}
##################################
The java implementation used is java sun jre7u51 .
Different logstash instances on linux machines with openjdk 7u51 with output on the same redis server don't experience the crash.
Do you need additional details ?
Thank you very much,