# Netflow module and \*.conf file

**URL:** https://discuss.elastic.co/t/netflow-module-and-conf-file/125246
**Category:** Logstash
**Created:** [March 22, 2018, 6:07pm UTC](https://discuss.elastic.co/t/netflow-module-and-conf-file/125246 "2018-03-22T18:07:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ggdagg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ggdagg/32/23500_2.png) [@ggdagg](https://discuss.elastic.co/u/ggdagg)
#### Post date: [March 22, 2018, 6:07pm UTC](https://discuss.elastic.co/t/netflow-module-and-conf-file/125246/1 "2018-03-22T18:07:14Z")

</div>

Hi,

I set up the Netflow module for Logstash and it works well. In my Logstash config (in /etc/logstash/logstash.yml), I added:  
modules:  
- name: netflow  
var.input.udp.port: 2055  
var.kibana.host: "[mykibanahost.com:5601](http://mykibanahost.com:5601)"  
var.elasticsearch.hosts: "[myelasticsearchhost.com:9200](http://myelasticsearchhost.com:9200)"

In parallel, I set up Syslog UDP input following this [documentation](https://www.elastic.co/guide/en/logstash/current/config-examples.html#_processing_syslog_messages) but it looks like when Netflow module is set up and enable, Logstash doesn't take my \*.conf file (located in my case in /etc/logstash/conf.d) in consideration and doesn't open the port 5000. Only `Starting UDP listener {:address=>"0.0.0.0:2055"}` is seen in the log.  
If I comment out my module section in /etc/logstash/logstash.yml, the Syslog port 5000 starts to listen correctly.

Hence my question: is it possible to open multiple UDP ports via Logstash? If so, how can I open both the Netflow port and the Syslog port on the same system?

Logstash: 6.2.2  
Elasticsearch: 6.2.2  
Kibana: 6.2.2  
System: CentOS 7

Thank you for your help.

---

<div class="post-metadata">

### Author: ![rcowart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rcowart/32/88091_2.png) [@rcowart](https://discuss.elastic.co/u/rcowart)
#### Post date: [March 23, 2018, 7:58am UTC](https://discuss.elastic.co/t/netflow-module-and-conf-file/125246/2 "2018-03-23T07:58:58Z")

</div>

First I wanted to share some information about Netflow. If you are serious about collecting Netflow (as well as sFlow and IPFIX) with the Elastic Stack, you may want to consider ElastiFlow: [https://github.com/robcowart/elastiflow](https://github.com/robcowart/elastiflow)

The Logstash Netflow Module was actually based on v1.0.0 of ElastiFlow (it is basically just v1.0.0 implemented as a Logstash Module). However ElastiFlow is now at v2.2.0, and the Master branch has some updates that will become 2.3 over the weekend (so if you try it, use the master branch). You can review the notes for each release to see what has changed since v1.0.0.

If you are just getting started and want a head start on basic syslog handling. Have a look at this...

> **[koiossian/synesis\_lite\_syslog](https://github.com/koiossian/synesis_lite_syslog)**
>
> synesis\_lite\_syslog - Syslog collection with Elastic Stack

The solutions are designed to work well with the multi-pipeline capabilities introduced in 6.x. Assuming your logstash configuration is in `/etc/logstash` you would put the `elastiflow` and `synesis_lite_syslog` directories in `/etc/logstash`.

Then edit `/etc/logstash/pipelines.yml` to look like this...

```auto
- pipeline.id: elastiflow
  path.config: "/etc/logstash/elastiflow/conf.d"

- pipeline.id: synesis_lite_syslog
  path.config: "/etc/logstash/synesis_lite_syslog/conf.d"

```

All configuration of these solutions is done via environment variables. Once these are setup, simply start Logstash and it will load both pipelines and you will be able to collect and visualize Netflow, sFlow, IPFIX and Syslog data.

Rob

Robert Cowart ([rob@koiossian.com](mailto:rob@koiossian.com))  
[www.koiossian.com](http://www.koiossian.com)  
True Turnkey SOLUTIONS for the Elastic Stack

---

<div class="post-metadata">

### Author: ![ggdagg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ggdagg/32/23500_2.png) [@ggdagg](https://discuss.elastic.co/u/ggdagg)
#### Post date: [March 23, 2018, 4:57pm UTC](https://discuss.elastic.co/t/netflow-module-and-conf-file/125246/3 "2018-03-23T16:57:58Z")

</div>

Hi Rob,

Thank you for your reply and the information related to the Netflow module in Logstash. Indeed, I didn't know that this module was based on ElastiFlow, so I might switch to it for my tests. However, I'm still don't know if I will use my ELK for Netflow, it's only for test purposes for now. Thanks also for the link to the Synesis lite Syslog.  
I will try to test both on my test environment and see if it can remove the limitation I had initially.

---

<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: [April 20, 2018, 4:58pm UTC](https://discuss.elastic.co/t/netflow-module-and-conf-file/125246/4 "2018-04-20T16:58:00Z")

</div>

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