# Collect network operation data with logstash in Windows

**URL:** <https://discuss.elastic.co/t/collect-network-operation-data-with-logstash-in-windows/51502>\
**Category:** Logstash\
**Created:** [June 1, 2016, 2:14am UTC](https://discuss.elastic.co/t/collect-network-operation-data-with-logstash-in-windows/51502 "2016-06-01T02:14:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kennedy\_Kan1](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kennedy\_Kan1](https://discuss.elastic.co/u/Kennedy_Kan1)\
**Post date:** [June 1, 2016, 2:14am UTC](https://discuss.elastic.co/t/collect-network-operation-data-with-logstash-in-windows/51502/1 "2016-06-01T02:14:03Z")

</div>

I am trying to get network operation data from my localhost. I know packetbeat can do some of the jobs. However, I would like to collect data with logstash but my configuration didn't output anything. Is there anyone who can give me some suggestions?

```
input{
    udp{
        port => 9995
        codec => netflow{
            versions => [5]
        }
    }
}
output{
    stdout{codec=>rubydebug}
    elasticsearch{
        index => "logstash-%{+YYYY.MM.dd}"
        hosts => "localhost"
    }
}

```

Can anyone help me with that? And I have get some confusion here:

what will be the difference in using netflow input or udp input?  
What port should I listen to with udp input?  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 2, 2016, 12:53am UTC](https://discuss.elastic.co/t/collect-network-operation-data-with-logstash-in-windows/51502/2 "2016-06-02T00:53:08Z")

</div>

Are you putting anything into the UDP input?

---

<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:** [July 6, 2017, 4:54am UTC](https://discuss.elastic.co/t/collect-network-operation-data-with-logstash-in-windows/51502/3 "2017-07-06T04:54:56Z")

</div>


