Hi all,
i have my http output plugin called so:
http { url => "http://10.98.144.73:9200/loyd-strategyone-processcode-%{process-code}/_update_by_query?conflicts=proceed"
headers => { "Authorization" => "Basic ZWxhc3RpYzpkanNKSHZjUzJQVVQ5" }
http_method => "post"
format => "message"
content_type => "application/json"
message => '{
"script":{
"source":"ctx._source.flg_old_data = params.flg_old_data",
"lang":"painless",
"params":{
"flg_old_data":"Y"
}
},
"query": {
"bool": {
"must": [
{ "match": { "h.req-id": "%{[h][req-id]}" } },
{ "match": { "h.process-code": "%{[h][process-code]}" } },
{ "range": { "h.req-timestamp": { "lt": %{[h][req-timestamp]} } } },
{ "match": { "fields.s1env": "%{[fields][s1env]}" } }
],
"must_not": [
{ "match": { "flg_old_data": "Y" } }
]
}
}
}'
}
but I receive this error:
[ERROR] 2022-11-07 09:20:17.196 [[loyd-strategyone-step2_tag_oldest]>worker0] http - [HTTP Output Failure] Could not fetch URL {:url=>"[http://10.98.144.73:9200/loyd-strategyone-processcode-%{process-code}/_update_by_query?conflicts=proceed](http://10.98.144.73:9200/loyd-strategyone-processcode-%25%7bprocess-code%7d/_update_by_query?conflicts=proceed)", :method=>:post, :message=>"Malformed escape pair at index 54: [http://10.98.144.73:9200/loyd-strategyone-processcode-%{process-code}/_update_by_query?conflicts=proceed](http://10.98.144.73:9200/loyd-strategyone-processcode-%25%7bprocess-code%7d/_update_by_query?conflicts=proceed)", :class=>"Java::JavaNet::URISyntaxException", :will_retry=>false}
And I don't understand why, the parentheses are good and fields and syntax even I think.
Any Idea?
thanks in advance.
d.