# Dynamic Urls for http Outbound Plugin in logstash config

**URL:** https://discuss.elastic.co/t/dynamic-urls-for-http-outbound-plugin-in-logstash-config/93423
**Category:** Logstash
**Created:** [July 17, 2017, 3:47pm UTC](https://discuss.elastic.co/t/dynamic-urls-for-http-outbound-plugin-in-logstash-config/93423 "2017-07-17T15:47:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![RakeshOngolu](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@RakeshOngolu](https://discuss.elastic.co/u/RakeshOngolu)
#### Post date: [July 17, 2017, 3:47pm UTC](https://discuss.elastic.co/t/dynamic-urls-for-http-outbound-plugin-in-logstash-config/93423/1 "2017-07-17T15:47:46Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [July 18, 2017, 2:14pm UTC](https://discuss.elastic.co/t/dynamic-urls-for-http-outbound-plugin-in-logstash-config/93423/2 "2017-07-18T14:14:14Z")

</div>

> 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](https://www.elastic.co/guide/en/logstash/current/event-dependent-configuration.html#logstash-config-field-references).

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 15, 2017, 2:14pm UTC](https://discuss.elastic.co/t/dynamic-urls-for-http-outbound-plugin-in-logstash-config/93423/3 "2017-08-15T14:14:21Z")

</div>

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