Remove fields - plugin http_poller_plugin with json

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:

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

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

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.

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