Dynamic Urls for http Outbound Plugin in logstash config

Hello everyone,

I just want to use http inbound and outbound plugins for asynchronous communication between two applications(host & target). The data (json)from http inbound plugin contains the url to be used in http outbound plugin configuration and the parameters to send in the request.

Could you please help me in getting the configuration for the above requirement.

I used the below config but getting errors in reading the dynamic value.

input {
http {
port => 9601
response_headers => {
"Access-Control-Allow-Origin" => "*"
"Content-Type" => "text/plain"
"Access-Control-Allow-Headers" => "Origin, X-Requested-With, Content-Type, Accept"
}
}
}

filter{

}

output {

http {
url =>"http://%{message.clientUrl}/process"
http_method =>"post"
}

stdout {
codec => json
}
}

Thanks in advance.

Regards
Rakesh.

url =>"http://%{message.clientUrl}/process"

That's not the correct syntax for nested fields, see Accessing event data and fields | Logstash Reference [8.11] | Elastic.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.