Netflow_module error

Hi I am trying to use logstash netflow module but when I am executing "bin/logstash --modules netflow -M netflow.var.input.udp.port=2055" then I am getting error saying:
"[WARN ] 2019-08-19 16:26:18.548 [Ruby-0-Thread-4: :1] elasticsearch - Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://localhost:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [http://localhost:9200/][Manticore::SocketException] Connection refused (Connection refused)"}"...Although I have configured modules in logstash.yml..
"modules:
- name: netflow
var.input.udp.port: 2055
var.elasticsearch.hosts: "192.168.0.178:9200"
var.kibana.host: "192.168.31.205:5601"
"
still why this error??

Hi,

try to add:

var.kibana.scheme: http
var.kibana.ssl.enabled: false
var.kibana.ssl.verification_mode: disable

Stop logstash and install module first by running:

/usr/share/logstash/bin/logstash --modules netflow --setup -M netflow.var.input.udp.port=2055 -M netflow.var.elasticsearch.hosts="yourhost:port" -M netflow.var.kibana.host="yourhost:port" -M netflow.var.kibana.ssl.enabled=false -M netflow.var.kibana.ssl.verification_mode=disable

After that what should I do?

@thirty2 I have executed the above code and I am getting output..but I have to execute multiple .conf files so how am I gonna execute those??also I have added those above lines in logstash.yml...still getting an error while executing "sudo bin/logstash --modules netflow -M netflow.var.input.udp.port=2055"

@Vikash_Singh1 You should run the command i posted, the long one.

I have executed the program

please be more specific....

I've executed this statement...now I have to run another instances of .conf file so how am i going to execute those .conf files??

Just start the logstash

but the port 9600 is already busy because of the above code

Once you installed module by the command, you can kill it. Then start the logstash

I am trying to run the logstash using "/usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/http.conf"...but the netflow module is not working..I even tried using systemctl start logstash but still didn't getting any results

netflow module configuration needs to be configured in /etc/logstash/logstash.yml.

I have configured it in logstash.yml.
modules:
- name: netflow
var.input.udp.port: 2055
var.elasticsearch.hosts: "192.168.0.178:9200"
var.kibana.host: "192.168.31.205:5601"
var.kibana.scheme: http
var.kibana.ssl.enabled: false
var.kibana.ssl.verification_mode: disable

remove your http.conf, then start logstash with systemctl. What is an error? if port is busy, what is runing on the port than?

Thanks @thirty2...It did work for me

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