Logstatsh plugins issue


(R) #1

Hi Guys,

How do I run plugins with logstash? I mean I tried entering below setting in my /etc/logstash/logstash.yml but after restarting its not picking up the desired setting and my netflow ports not listing.

However when I run from command line with this option is does comes up properly. I am getting below error message in /var/log/messages.

Please help

### logstash.yml
modules:
   -name: netflow
    var.input.udp.port: 2055
    var.elasticsearch.hosts="172.16.3.69:9200"
    var.kibana.host="172.16.3.69:5601"
####From Cli
/usr/share/logstash/bin/logstash --modules=netflow -M netflow.var.elasticsearch.hosts="172.16.3.69:9200" -M netflow.var.kibana.host="172.16.3.69:5601" &
### Error
n"}
[2017-10-02T18:42:58,012][INFO ][logstash.agent           ] No config files found in path {:path=>"/etc/logstash/conf.d/*"}
[2017-10-02T18:42:58,017][ERROR][logstash.agent           ] failed to fetch pipeline configuration {:message=>"No config files found: /etc/logstash/conf.d. Can you make sure this path is a logstash config file?"}
[2017-10-02T18:43:08,393][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"/usr/share/logstash/modules/fb_apache/configuration"}
[2017-10-02T18:43:08,396][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"/usr/share/logstash/modules/netflow/configuration"}
[2017-10-02T18:43:08,532][INFO ][logstash.agent           ] No config files found in path {:path=>"/etc/logstash/conf.d/*"}
[2017-10-02T18:43:08,535][ERROR][logstash.agent           ] failed to fetch pipeline configuration {:message=>"No config files found: /etc/logstash/conf.d. Can you make sure this path is a logstash config file?"}

yeah I know conf.d does not yet contain any configuation file and can be ignored.


(Magnus B├Ąck) #2

It seems Logstash really wants you to have at least one configuration file in /etc/logstash/conf.d even though you're using a netflow module.


(R) #3

Well thats ok surprising thing is even after restarting the settings from logstash.yml are not being picked up hence wondering if the settings from /etc/logstash or /usr/share/logstash/configuration are being picked up.

I am really confused here.


(system) #4

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