I need to make a new query in an api after INPUT, however the filter is giving an error.
´´´
[ERROR] 2024-03-29 17:46:12.286 [[main]>worker0] http - error during HTTP request {:url=>"teste.net", :code=>500, :headers=>{"date"=>"Fri, 29 Mar 2024 20:46:12 GMT", "content-length"=>"0", "connection"=>"keep-alive", "access-control-allow-credentials"=>"true", "access-control-allow-origin"=>"", "access-control-expose-headers"=>"", "strict-transport-security"=>"max-age=31536000; includeSubDomains", "x-xss-protection"=>"1"}, :response=>""}
´´´
input {
http_poller {
urls => {
teste=> {
method => post
url => "https://msging.net/commands?status=Waiting"
body => '{
"id": "teste",
"to": "teste@desk.teste.net",
"method": "get",
"uri": "/tickets?$take=1"
}'
headers => {"Content-Type" => "application/json" "Authorization" => "Key teste"}
}
}
request_timeout => 20
schedule => { every =>"1000000000000s"}
codec => "json"
metadata_target => "http_poller_metadata"
# type => "elastic-blip"
}
}
filter{
if [type] == "application/vnd.lime.collection+json" {
http {
url => "https://teste.net/teste"
target_body => '{
"to": "teste@desk.teste.net",
"method": "get",
"uri": "/teste/teste/messages"
}'
headers => {"Content-Type" => "application/json" "Authorization" => "Key teste"}
}