Logstash-filter-rest POST Request Issue

(Marium Hassan) #1

This issue has been resolved.


I have recently installed logstash-filter-rest. Now, I want to send a POST request to my webservice which takes xml body, parses it using JAXB and returns xml but I am having an issue with the usage of this plugin. Problem is that I am unable to send xml in request body using this plugin.

Following is a sample code:

    request => 
      url => "https://jsonplaceholder.typicode.com/posts" 
      method => "post" 
      body => { "userId" => "%{message}" } 
      headers => { "Content-Type" => "application/json" } 
    target => 'rest' 

Here I want to send my xml in the body. Below is a sample xml to be sent:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

Any help will be appreciated.

Thanks in anticipation

(Saram Ali) #2

This seems important.

(system) #3

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