# Filebeat-netflow to logstash send only specific fields

**URL:** <https://discuss.elastic.co/t/filebeat-netflow-to-logstash-send-only-specific-fields/298761>\
**Category:** Logstash\
**Created:** [March 3, 2022, 4:15pm UTC](https://discuss.elastic.co/t/filebeat-netflow-to-logstash-send-only-specific-fields/298761 "2022-03-03T16:15:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juan\_David\_Jaramillo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/juan_david_jaramillo/32/76831_2.png) [@Juan\_David\_Jaramillo](https://discuss.elastic.co/u/Juan_David_Jaramillo)\
**Post date:** [March 3, 2022, 4:15pm UTC](https://discuss.elastic.co/t/filebeat-netflow-to-logstash-send-only-specific-fields/298761/1 "2022-03-03T16:15:57Z")

</div>

hello good morning

I need your help to send the data from a filebeat-netflow to logstash and filter the fields that I need only to send it to my elastic cloud, I mean, I can specify which fields are sent only, so that I do not generate so many unnecessary fields.

thank you I hope for your prompt response, I share file netflow.yml

```auto
- module: netflow
  log:
    enabled: true
    var:
      netflow_host: 0.0.0.0
      netflow_port: 2055
      max_message_size: 1KiB
      protocols: [v5, v9, ipfix]
      expiration_timeout: 30m
      queue_size: 1000
      detect_sequence_reset: true

```

config logstash output:

```auto
input {
  beats {
  port => 2055
  }
}

filter {

 prune {
        whitelist_names => ["method", "(referrer|status)", "${some}_field"]
     }
}

output {
# stdout{ }
  elasticsearch {
    hosts => ["https://xxxxxxxxxxxxxxxx.us-central1.gcp.cloud.es.io:9243"]
    user => "elastic"
    password => "xxxx"
    index => "ntw"
    }
  }
}

```

this would be where the data would be sent to my elastic cloud, but I need it to send only specific fields

for example these fields are the ones sent by netflow and I only want it to send the ones marked in red:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/c/cc3756474aac16cd1954c21dd34f412bba60bee5.png)

---

<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:** [March 31, 2022, 4:16pm UTC](https://discuss.elastic.co/t/filebeat-netflow-to-logstash-send-only-specific-fields/298761/2 "2022-03-31T16:16:12Z")

</div>

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