# Logstash http filter plugin

**URL:** https://discuss.elastic.co/t/logstash-http-filter-plugin/228516
**Category:** Logstash
**Created:** [April 17, 2020, 1:01pm UTC](https://discuss.elastic.co/t/logstash-http-filter-plugin/228516 "2020-04-17T13:01:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![akhilsharma.in](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@akhilsharma.in](https://discuss.elastic.co/u/akhilsharma.in)
#### Post date: [April 17, 2020, 1:01pm UTC](https://discuss.elastic.co/t/logstash-http-filter-plugin/228516/1 "2020-04-17T13:01:14Z")

</div>

Team,

we're using http in filter to make a REST API call. Body of the call accepts a parameter which should be an array like [1111,11] but while passing this parameter, logstash is converting array to string which is "[1111,11]" and call is not working. Please suggest a way to neglect double quotes and send it as array only.

thanks

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [April 17, 2020, 2:33pm UTC](https://discuss.elastic.co/t/logstash-http-filter-plugin/228516/2 "2020-04-17T14:33:03Z")

</div>

What is the configuration of the http filter, and exactly what text do you want to send to the API call?

---

<div class="post-metadata">

### Author: ![akhilsharma.in](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@akhilsharma.in](https://discuss.elastic.co/u/akhilsharma.in)
#### Post date: [April 17, 2020, 2:46pm UTC](https://discuss.elastic.co/t/logstash-http-filter-plugin/228516/3 "2020-04-17T14:46:43Z")

</div>

I want to send body like below:

body =\> {

```
                                                        "feature_name" => "Protection"

                                                        "product" => "SA"

                                                        "limit" => 1000

                                                        "next" => "%{[data][next]}"

                                            }

```

next parameter is calling an array.

"data":  
{  
"next": [10101222,2]  
}

But on passing this value, Logstash is adding double quotes on array like "[10101222,2]" which API doesn't accept.

---

<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: [May 15, 2020, 2:49pm UTC](https://discuss.elastic.co/t/logstash-http-filter-plugin/228516/4 "2020-05-15T14:49:31Z")

</div>

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