title: Collect network operation data with logstash in Windows
body: <p>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?</p>
  
  <pre><code>input{
      udp{
          port =&gt; 9995
          codec =&gt; netflow{
              versions =&gt; [5]
          }
      }
  }
  output{
      stdout{codec=&gt;rubydebug}
      elasticsearch{
          index =&gt; "logstash-%{+YYYY.MM.dd}"
          hosts =&gt; "localhost"
      }
  }
  </code></pre>
  
  <p>Can anyone help me with that? And I have get some confusion here:</p>
  
  <ol>
  <li>what will be the difference in using netflow input or udp input?</li>
  <li>What port should I listen to with udp input?</li>
  </ol>
  
  <p>Thanks in advance.</p>