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

crash with non-ASCII characters in pipeline id #15968

Open
kaisecheng opened this issue Feb 22, 2024 · 0 comments · May be fixed by #15971
Open

crash with non-ASCII characters in pipeline id #15968

kaisecheng opened this issue Feb 22, 2024 · 0 comments · May be fixed by #15971

Comments

@kaisecheng
Copy link
Contributor

Version: 8.11.0

Logstash crashes when the pipeline id contain non-ASCII characters

for example

input { http {} }
filter {
  sleep { time => 1 id => "λ" }
  sleep { time => 1 id => "übermäßig" }
  sleep { time => 1 id => "renè" }
}
output { }

Log

[2024-02-12T11:46:20,950][ERROR][logstash.agent           ] Failed to execute action 
{:action=>LogStash::PipelineAction::Create/main,
 :exception=>"ArgumentError",
 :message=>"invalid byte sequence in US-ASCII",
 :backtrace=>[
    "org/jruby/RubySymbol.java:450:in `inspect'"
    "org/jruby/RubySymbol.java:440:in `inspect'"
    "org/jruby/RubyArray.java:1876:in `inspect'"
    "org/logstash/execution/AbstractPipelineExt.java:540:in `initialize_flow_metrics'"
    "/opt/logstash-8.11.1/logstash-core/lib/logstash/java_pipeline.rb:127:in `start'"
    "/opt/logstash-8.11.1/logstash-core/lib/logstash/pipeline_action/create.rb:51:in `block in execute'"
    "/opt/logstash-8.11.1/logstash-core/lib/logstash/pipelines_registry.rb:159:in `create_pipeline'"
    "/opt/logstash-8.11.1/logstash-core/lib/logstash/pipeline_action/create.rb:50:in `execute'"
    "/opt/logstash-8.11.1/logstash-core/lib/logstash/agent.rb:386:in `block in converge_state'"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants