Logstash doesn't start after logstash.yml edit


(Vladimir Fomin) #1

I try to add netflow module to logstash.yml like this:

 modules:
   - name: netflow
     var.input.udp.port: 9996

But after save logstash.yml and service logstash start command logstash can't start.

logs form  /var/log/logstash/logstash-plain.log is:
    [2018-05-26T13:12:08,178][INFO ][logstash.pipeline        ] Pipeline has terminated {:pipeline_id=>"main", :thread=>"#<Thread:0x47cdeca3 run>"}
    [2018-05-26T13:16:05,920][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"/opt/logstash/modules/fb_apache/configuration"}
    [2018-05-26T13:16:05,940][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"/opt/logstash/modules/netflow/configuration"}
    [2018-05-26T13:16:06,466][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
    [2018-05-26T13:16:06,495][ERROR][org.logstash.Logstash    ] java.lang.IllegalStateException: org.jruby.exceptions.RaiseException: (SystemExit) exit
    [2018-05-26T13:18:30,647][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"/opt/logstash/modules/fb_apache/configuration"}
    [2018-05-26T13:18:30,665][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"/opt/logstash/modules/netflow/configuration"}
    [2018-05-26T13:18:31,253][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
    [2018-05-26T13:18:31,278][ERROR][org.logstash.Logstash    ] java.lang.IllegalStateException: org.jruby.exceptions.RaiseException: (SystemExit) exit
    [2018-05-26T13:24:19,854][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"/opt/logstash/modules/fb_apache/configuration"}
    [2018-05-26T13:24:19,873][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"/opt/logstash/modules/netflow/configuration"}
    [2018-05-26T13:24:20,430][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
    [2018-05-26T13:24:20,456][ERROR][org.logstash.Logstash    ] java.lang.IllegalStateException: org.jruby.exceptions.RaiseException: (SystemExit) exit

root@fcc92ca4cf93:/# service logstash status
logstash is not running

If i delete module config from logstash it start normally. What's wrong?
If I start logstash like this: `bin/logstash --modules netflow -M netflow.var.input.udp.port=9996, logstash has restarted. But I want to do permanent netflow binding to special port, after reboot server too.


(system) #2

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