# Netflow --setup to ES SSL not working

**URL:** <https://discuss.elastic.co/t/netflow-setup-to-es-ssl-not-working/200440>\
**Category:** Logstash\
**Created:** [September 20, 2019, 2:08pm UTC](https://discuss.elastic.co/t/netflow-setup-to-es-ssl-not-working/200440 "2019-09-20T14:08:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![frankfoti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frankfoti/32/26965_2.png) [@frankfoti](https://discuss.elastic.co/u/frankfoti)\
**Post date:** [September 20, 2019, 2:08pm UTC](https://discuss.elastic.co/t/netflow-setup-to-es-ssl-not-working/200440/1 "2019-09-20T14:08:00Z")

</div>

Here is my command line attempt to setup netflow in kibana:

/usr/share/logstash/bin/logstash --modules netflow --setup -M "netflow.var.kibana.host= **:5601" -M "netflow.var.kibana.username=elastic" -M "netflow.var.kibana.password=** \*\*" -M "netflow.var.input.udp.port=9996" -M "netflow.var.elasticsearch.hosts=https://\*\ ***:9200" -M "netflow.var.elasticsearch.username=elastic" -M "netflow.var.elasticsearch.password=**" -M "netflow.var.elasticsearch.ssl.certificate\_authority=/etc/logstash/ca.crt"

Heres is the output:  
[WARN] 2019-09-20 10:01:03.151 [LogStash::Runner] multilocal - Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[INFO] 2019-09-20 10:01:03.882 [LogStash::Runner] runner - Starting Logstash {"logstash.version"=\>"7.1.1"}  
[INFO] 2019-09-20 10:01:10.663 [Ruby-0-Thread-1: /usr/share/logstash/lib/bootstrap/environment.rb:6] modulescommon - Setting up the netflow module  
[ERROR] 2019-09-20 10:01:15.185 [Ruby-0-Thread-1: /usr/share/logstash/lib/bootstrap/environment.rb:6] kibanaclient - Error when executing Kibana client request {:error=\>#\<Manticore::ClientProtocolException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target\>}  
[ERROR] 2019-09-20 10:01:16.756 [Ruby-0-Thread-1: /usr/share/logstash/lib/bootstrap/environment.rb:6] kibanaclient - Error when executing Kibana client request {:error=\>#\<Manticore::ClientProtocolException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target\>}  
[ERROR] 2019-09-20 10:01:17.962 [Ruby-0-Thread-1: /usr/share/logstash/lib/bootstrap/environment.rb:6] sourceloader - Could not fetch all the sources {:exception=\>LogStash::ConfigLoadingError, :message=\>"Failed to import module configurations to Elasticsearch and/or Kibana. Module: netflow has Elasticsearch hosts: ["[https://cloudcontrol-elasticsearch1.office.re.local:9200](https://cloudcontrol-elasticsearch1.office.re.local:9200)"] and Kibana hosts: ["cloudcontrol-elasticsearch1.office.re.local:5601"]", :backtrace=\>["/usr/share/logstash/logstash-core/lib/logstash/config/modules\_common.rb:108:in `block in pipeline_configs'", "org/jruby/RubyArray.java:1792:in`each'", "/usr/share/logstash/logstash-core/lib/logstash/config/modules\_common.rb:54:in `pipeline_configs'", "/usr/share/logstash/logstash-core/lib/logstash/config/source/modules.rb:14:in`pipeline\_configs'", "/usr/share/logstash/logstash-core/lib/logstash/config/source\_loader.rb:61:in `block in fetch'", "org/jruby/RubyArray.java:2572:in`collect'", "/usr/share/logstash/logstash-core/lib/logstash/config/source\_loader.rb:60:in `fetch'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:148:in`converge\_state\_and\_update'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:96:in `execute'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:362:in`block in execute'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/stud-0.0.23/lib/stud/task.rb:24:in `block in initialize'"]} [ERROR] 2019-09-20 10:01:18.552 [Ruby-0-Thread-1: /usr/share/logstash/lib/bootstrap/environment.rb:6] agent - An exception happened when converging configuration {:exception=>RuntimeError, :message=>"Could not fetch the configuration, message: Failed to import module configurations to Elasticsearch and/or Kibana. Module: netflow has Elasticsearch hosts: [\"https://cloudcontrol-elasticsearch1.office.re.local:9200\"] and Kibana hosts: [\"cloudcontrol-elasticsearch1.office.re.local:5601\"]", :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/agent.rb:155:in`converge\_state\_and\_update'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:96:in `execute'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:362:in`block in execute'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/stud-0.0.23/lib/stud/task.rb:24:in `block in initialize'"]}  
[INFO] 2019-09-20 10:01:20.196 [LogStash::Runner] runner - Logstash shut down.

Here is the ca validation:  
root@cloudcontrol-logstash:~# curl --cacert /etc/logstash/ca.crt -u elastic:\*\*\*\*\* -XGET 'https://\***:9200'  
{  
"name" : "**",  
"cluster\_name" : "ccc20-basic",  
"cluster\_uuid" : "l8D7mil9RLyqXEHVkuEQyQ",  
"version" : {  
"number" : "7.3.1",  
"build\_flavor" : "default",  
"build\_type" : "deb",  
"build\_hash" : "4749ba6",  
"build\_date" : "2019-08-19T20:19:25.651794Z",  
"build\_snapshot" : false,  
"lucene\_version" : "8.1.0",  
"minimum\_wire\_compatibility\_version" : "6.8.0",  
"minimum\_index\_compatibility\_version" : "6.0.0-beta1"  
},  
"tagline" : "You Know, for Search"  
}

---

<div class="post-metadata">

**Author:** ![frankfoti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frankfoti/32/26965_2.png) [@frankfoti](https://discuss.elastic.co/u/frankfoti)\
**Post date:** [September 20, 2019, 3:32pm UTC](https://discuss.elastic.co/t/netflow-setup-to-es-ssl-not-working/200440/2 "2019-09-20T15:32:20Z")

</div>

I needed to add kibana ssl cert and logstash is running now.

It created the dashboards but no netflow index:

/usr/share/logstash/bin/logstash --modules netflow --setup -M "netflow.var.kibana.host=\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*:5601" -M "netflow.var.kibana.ssl.enabled=true" -M "netflow.var.kibana.ssl.enabled=true" -M "netflow.var.kibana.scheme=https" -M "netflow.var.kibana.ssl.certificate\_authority=/etc/logstash/ca.crt" -M "netflow.var.kibana.username=elastic" -M "netflow.var.kibana.password=\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*" -M "netflow.var.input.udp.port=9996" -M "netflow.var.elasticsearch.hosts=https://\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*:9200" -M "netflow.var.elasticsearch.username=elastic" -M "netflow.var.elasticsearch.password=\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*" -M "netflow.var.elasticsearch.ssl.certificate\_authority=/etc/logstash/ca.crt"

WARNING: Could not find logstash.yml which is typically located in $LS\_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults  
Could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. Using default config which logs errors to the console  
[WARN] 2019-09-20 11:18:54.494 [LogStash::Runner] multilocal - Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[INFO] 2019-09-20 11:18:54.517 [LogStash::Runner] runner - Starting Logstash {"logstash.version"=\>"7.1.1"}  
[INFO] 2019-09-20 11:18:59.250 [Ruby-0-Thread-1: /usr/share/logstash/lib/bootstrap/environment.rb:6] modulescommon - Setting up the netflow module  
[INFO] 2019-09-20 11:20:23.956 [[module-netflow]-pipeline-manager] elasticsearch - Elasticsearch pool URLs updated {:changes=\>{:removed=\>, :added=\>[[https://elastic:xxxxxx@cloudcontrol-elasticsearch1.office.re.local:9200/](https://elastic:xxxxxx@cloudcontrol-elasticsearch1.office.re.local:9200/)]}}  
[WARN] 2019-09-20 11:20:24.306 [[module-netflow]-pipeline-manager] elasticsearch - Restored connection to ES instance {:url=\>"[https://elastic:xxxxxx@cloudcontrol-elasticsearch1.office.re.local:9200/](https://elastic:xxxxxx@cloudcontrol-elasticsearch1.office.re.local:9200/)"}  
[INFO] 2019-09-20 11:20:24.338 [[module-netflow]-pipeline-manager] elasticsearch - ES Output version determined {:es\_version=\>7}  
[WARN] 2019-09-20 11:20:24.436 [[module-netflow]-pipeline-manager] elasticsearch - Detected a 6.x and above cluster: the `type` event field won't be used to determine the document \_type {:es\_version=\>7}  
[INFO] 2019-09-20 11:20:24.476 [[module-netflow]-pipeline-manager] elasticsearch - New Elasticsearch output {:class=\>"LogStash::Outputs::ElasticSearch", :hosts=\>["[https://cloudcontrol-elasticsearch1.office.re.local:9200](https://cloudcontrol-elasticsearch1.office.re.local:9200)"]}  
[INFO] 2019-09-20 11:20:26.124 [[module-netflow]-pipeline-manager] geoip - Using geoip database {:path=\>"/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-filter-geoip-6.0.1-java/vendor/GeoLite2-ASN.mmdb"}  
[INFO] 2019-09-20 11:20:26.559 [[module-netflow]-pipeline-manager] geoip - Using geoip database {:path=\>"/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-filter-geoip-6.0.1-java/vendor/GeoLite2-City.mmdb"}  
[INFO] 2019-09-20 11:20:26.563 [[module-netflow]-pipeline-manager] geoip - Using geoip database {:path=\>"/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-filter-geoip-6.0.1-java/vendor/GeoLite2-City.mmdb"}  
[INFO] 2019-09-20 11:20:27.632 [[module-netflow]-pipeline-manager] geoip - Using geoip database {:path=\>"/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-filter-geoip-6.0.1-java/vendor/GeoLite2-ASN.mmdb"}  
[INFO] 2019-09-20 11:20:27.642 [[module-netflow]-pipeline-manager] geoip - Using geoip database {:path=\>"/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-filter-geoip-6.0.1-java/vendor/GeoLite2-ASN.mmdb"}  
[INFO] 2019-09-20 11:20:27.643 [[module-netflow]-pipeline-manager] geoip - Using geoip database {:path=\>"/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-filter-geoip-6.0.1-java/vendor/GeoLite2-City.mmdb"}  
[INFO] 2019-09-20 11:20:28.607 [[module-netflow]-pipeline-manager] geoip - Using geoip database {:path=\>"/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-filter-geoip-6.0.1-java/vendor/GeoLite2-City.mmdb"}  
[INFO] 2019-09-20 11:20:29.564 [[module-netflow]-pipeline-manager] geoip - Using geoip database {:path=\>"/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-filter-geoip-6.0.1-java/vendor/GeoLite2-ASN.mmdb"}  
[INFO] 2019-09-20 11:20:29.609 [[module-netflow]-pipeline-manager] javapipeline - Starting pipeline {:pipeline\_id=\>"module-netflow", "pipeline.workers"=\>8, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>50, "pipeline.max\_inflight"=\>1000, :thread=\>"#\<Thread:0x68704d94 run\>"}  
[INFO] 2019-09-20 11:20:29.691 [[module-netflow]-pipeline-manager] javapipeline - Pipeline started {"pipeline.id"=\>"module-netflow"}  
[INFO] 2019-09-20 11:20:30.596 [[module-netflow]\<udp] udp - Starting UDP listener {:address=\>"0.0.0.0:9996"}  
[INFO] 2019-09-20 11:20:31.085 [Ruby-0-Thread-1: /usr/share/logstash/lib/bootstrap/environment.rb:6] agent - Pipelines running {:count=\>1, :running\_pipelines=\>[:"module-netflow"], :non\_running\_pipelines=\>}  
[INFO] 2019-09-20 11:20:31.106 [[module-netflow]\<udp] udp - UDP listener started {:address=\>"0.0.0.0:9996", :receive\_buffer\_bytes=\>"212992", :queue\_size=\>"2000"}  
[INFO] 2019-09-20 11:20:33.765 [Api Webserver] agent - Successfully started Logstash API endpoint {:port=\>9604}

---

<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:** [October 18, 2019, 3:33pm UTC](https://discuss.elastic.co/t/netflow-setup-to-es-ssl-not-working/200440/3 "2019-10-18T15:33:03Z")

</div>

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