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

Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException #16182

Open
lijie123bes opened this issue May 27, 2024 · 0 comments
Open

Comments

@lijie123bes
Copy link

lijie123bes commented May 27, 2024

Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (InvalidByteSequenceError) ""\xD8"" on US-ASCII
    at org.jruby.RubyString.encode(org/jruby/RubyString.java:7596)
    at json.ext.GeneratorMethods$RbHash.to_json(json/ext/GeneratorMethods.java:71)
    at LogStash::Event.to_json(file:/maverik/software/logstash/logstash-1.2.2-flatjar.jar!/logstash/event.rb:156)
    at LogStash::Outputs::Redis.receive(file:/maverik/software/logstash/logstash-1.2.2-flatjar.jar!/logstash/outputs/redis.rb:150)
    at LogStash::Outputs::Base.handle(file:/maverik/software/logstash/logstash-1.2.2-flatjar.jar!/logstash/outputs/base.rb:85)
    at RUBY.initialize((eval):250)
    at org.jruby.RubyProc.call(org/jruby/RubyProc.java:271)
    at LogStash::Pipeline.output(file:/maverik/software/logstash/logstash-1.2.2-flatjar.jar!/logstash/pipeline.rb:254)
    at RUBY.outputworker(file:/maverik/software/logstash/logstash-1.2.2-flatjar.jar!/logstash/pipeline.rb:213)
    at RUBY.start_outputs(file:/maverik/software/logstash/logstash-1.2.2-flatjar.jar!/logstash/pipeline.rb:140)

here is my config

input
{
udp { type => "firewalls" port => "50006" codec => plain }
}
filter
{
grok    { match => [ "host", "%{IPORHOST:ipaddr}(:%{NUMBER})?" ] }
mutate  { replace => [ "fqdn", "%{ipaddr}" ] }
dns     { reverse => [ "fqdn", "fqdn" ] action => "replace" }
if [type] == "firewalls" { clone { clones => "firewalls.log" add_tag => "savetofile" } }
}
output
{
    #stdout { debug => true }
    #stdout { codec => rubydebug }
    redis   { host => "666.666.666.666" data_type => "list" key => "logstash" }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant