# Remove fields - plugin http\_poller\_plugin with json

**URL:** https://discuss.elastic.co/t/remove-fields-plugin-http-poller-plugin-with-json/294415
**Category:** Logstash
**Created:** [January 14, 2022, 1:18pm UTC](https://discuss.elastic.co/t/remove-fields-plugin-http-poller-plugin-with-json/294415 "2022-01-14T13:18:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![guilhermealano](https://avatars.discourse-cdn.com/v4/letter/g/9f8e36/32.png) [@guilhermealano](https://discuss.elastic.co/u/guilhermealano)
#### Post date: [January 14, 2022, 1:18pm UTC](https://discuss.elastic.co/t/remove-fields-plugin-http-poller-plugin-with-json/294415/1 "2022-01-14T13:18:01Z")

</div>

Hi, I'm making a request in logstash through http\_poller\_plugin and the data that return in full in json.

I'm trying to make a filter to display in the json only the necessary fields.

What would be the correct way to clean up the information display?

using split or json:

```auto
filter {
       split {
         field => "[message]"
      }
       mutate {
         remove_field => ["[array]" ]
         }
}

```

---

<div class="post-metadata">

### Author: ![grumo35](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grumo35/32/59451_2.png) [@grumo35](https://discuss.elastic.co/u/grumo35)
#### Post date: [January 14, 2022, 1:28pm UTC](https://discuss.elastic.co/t/remove-fields-plugin-http-poller-plugin-with-json/294415/2 "2022-01-14T13:28:09Z")

</div>

To choose fields you want to keep or delete you want to use the prune filter plugin [Prune filter plugin | Logstash Reference [7.16] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-filters-prune.html)

If it's a simple sort out of few fields you can remove them by hand using remove field.

Keep in mind that your data have to be processed by the JSON filter plugin if they are in JSON format.

I'm not sure to understand what you want to do.

---

<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: [February 11, 2022, 1:28pm UTC](https://discuss.elastic.co/t/remove-fields-plugin-http-poller-plugin-with-json/294415/3 "2022-02-11T13:28:59Z")

</div>

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