Filebeat-netflow to logstash send only specific fields

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

- 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:

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:

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