Http filter in Logstash

hey
I want to know how to pass a filters output as request body to http filter
I am trying to pass output of mutate filter as body to http filter.

mutate {
        remove_field => [  "@timestamp", "@version"]
    }
  http {
      body => {}
      url => "${LIGHTSABER_API_ENDPOINT}"
      verb => "POST"
      body_format => "json"
      automatic_retries => 3
      target_body => "response"
  }

The response body is set by the API you are calling. The request body is set using the body option to the filter, which can include sprintf references.

Thank you.
That's a typo. I found the answer here. How to set HTTP filter body to whole event

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