I have this configuration file using http_poller input plugin.
input {
http_poller {
urls => {
myurl2 => {
# Supports all options supported by ruby's Manticore HTTP client
method => get
user => "username"
password => "password"
url => "https://url_value"
headers => {
Accept => "application/json"
Version => "16.0"
}
}
}
request_timeout => 60
# Supports "cron", "every", "at" and "in" schedules by rufus scheduler
schedule => { cron => "* * * * * UTC"}
ssl_verification_mode => "none"
}
}
output {
stdout {
}
}
When I add
ssl_verification_mode
option in it I am getting error of
[ERROR] 2022-03-29 13:16:42.514 [Agent thread] agent - An exception happened when converging configuration {:exception=>LogStash::Error, :message=>"Don't know how to handle
Java::JavaLang::IllegalStateException
forPipelineAction::Create<main>
"}
[FATAL] 2022-03-29 13:16:42.521 [LogStash::Runner] runner - An unexpected error occurred! {:error=>#<LogStash::Error: Don't know how to handleJava::JavaLang::IllegalStateException
forPipelineAction::Create<main>
>, :backtrace=>["org/logstash/execution/ConvergeResultExt.java:135:increate'", "org/logstash/execution/ConvergeResultExt.java:60:in
add'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:396:in `block in converge_state'"]}