-
Notifications
You must be signed in to change notification settings - Fork 65
Closed
Labels
Description
Logstash information:
LS 8.17.4
Plugin http poller input 5.6.0 bundled
Description of the problem including expected versus actual behavior:
Running
input {
http_poller {
id => "something"
urls => {
logstash_stats => {
method => get
url => "http://localhost:9600/_node/stats/pipelines"
}
}
request_timeout => 10
schedule => { every => "30s" }
codec => "json_lines"
}
}
Fails with:
[2025-03-26T21:11:01,563][ERROR][logstash.javapipeline ][main] Pipeline error {:pipeline_id=>"main", :exception=>#<NoMethodError: undefined method `match' for nil:NilClass
Did you mean? catch>,
:backtrace=>[
"/vendor/bundle/jruby/3.1.0/gems/logstash-input-http_poller-5.6.0/lib/logstash/inputs/http_poller.rb:158:in `validate_request!'",
"/vendor/bundle/jruby/3.1.0/gems/logstash-input-http_poller-5.6.0/lib/logstash/inputs/http_poller.rb:150:in `normalize_request'",
Workaround
Upgrade the HTTP Poller input plugin to 6.0.0, forcing it with --level=major
Fix
This has been fixed in #148 but this should also be backported to 5.x so that Logstash plugins can be upgraded without the --level=major
.
We should probably add a known issues to the release notes of all the LS versions affected?