# Filebeat 7.2 netflow module and adding custom fields

**URL:** https://discuss.elastic.co/t/filebeat-7-2-netflow-module-and-adding-custom-fields/189546
**Category:** Beats
**Tags:** filebeat
**Created:** [July 9, 2019, 12:31pm UTC](https://discuss.elastic.co/t/filebeat-7-2-netflow-module-and-adding-custom-fields/189546 "2019-07-09T12:31:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![involuntary-pretzel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/involuntary-pretzel/32/45404_2.png) [@involuntary-pretzel](https://discuss.elastic.co/u/involuntary-pretzel)
#### Post date: [July 9, 2019, 12:31pm UTC](https://discuss.elastic.co/t/filebeat-7-2-netflow-module-and-adding-custom-fields/189546/1 "2019-07-09T12:31:29Z")

</div>

Hi there

I recently switched from using the logstash.netflow module to the filebeat.netflow module (so the data shows in SIEM).

In the logstash.netflow configuration I had the following field [netflow][sampling\_bytes] which gave a closer reading to the data being transfered.

`filter { ... event.set( '[netflow][sampling_bytes]', event.get('[netflow][in_bytes]').to_i * event.get('[netflow][sampling_interval]').to_i ) ... }`

Any idea how would I replicate this in the filebeat.netflow module?

---

<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: [August 6, 2019, 12:42pm UTC](https://discuss.elastic.co/t/filebeat-7-2-netflow-module-and-adding-custom-fields/189546/2 "2019-08-06T12:42:58Z")

</div>

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