Error when i will start logstash


(Alex) #1

Hello,
im new at Elastic Stack.
When i will start logstash i get a error Message:

Logstash, Kibana, Elasticsearch everything on the newest Version.

PS C:\ELK-Stack\logstash> C:\ELK-Stack\logstash\bin\logstash.bat
Sending Logstash's logs to C:/ELK-Stack/logstash/logs which is now configured via log4j2.properties
[2018-05-14T08:41:45,819][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"C:/ELK-Stack/logstash/modules/fb_apache/configuration"}
[2018-05-14T08:41:45,923][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"C:/ELK-Stack/logstash/modules/netflow/configuration"}
[2018-05-14T08:41:46,057][INFO ][logstash.setting.writabledirectory] Creating directory {:setting=>"path.queue", :path=>"C:/ELK-Stack/logstash/data/queue"}
[2018-05-14T08:41:46,077][INFO ][logstash.setting.writabledirectory] Creating directory {:setting=>"path.dead_letter_queue", :path=>"C:/ELK-Stack/logstash/data/dead_letter_queue"}
ERROR: Pipelines YAML file is empty. Location: C:/ELK-Stack/logstash/config/pipelines.yml
usage:
bin/logstash -f CONFIG_PATH [-t] [-r] [] [-w COUNT] [-l LOG]
bin/logstash --modules MODULE_NAME [-M "MODULE_NAME.var.PLUGIN_TYPE.PLUGIN_NAME.VARIABLE_NAME=VALUE"] [-t] [-w COUNT] [-l LOG]
bin/logstash -e CONFIG_STR [-t] [--log.level fatal|error|warn|info|debug|trace] [-w COUNT] [-l LOG]
bin/logstash -i SHELL [--log.level fatal|error|warn|info|debug|trace]
bin/logstash -V [--log.level fatal|error|warn|info|debug|trace]
bin/logstash --help
[2018-05-14T08:41:46,944][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: org.jruby.exceptions.RaiseException: (SystemExit) exit

can anybody help me?


(Pjanzen) #2

Hi,

this thread might help you.


(Alex) #3

Hi pjanzen,

i have deleted the code in the .logstash.yml

When i restart ive get this error messages:

[2018-05-14T09:29:49,477][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"C:/ELK-Stack/logstash/modules/fb_apache/configuration"}
[2018-05-14T09:29:49,501][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"C:/ELK-Stack/logstash/modules/netflow/configuration"}
[2018-05-14T09:29:49,633][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<ArgumentError: Setting "" hasn't been registered>, :backtrace=>["C:/ELK-Stack/logstash/logstash-core/lib/logstash/settings.rb:37:in get_setting'", "C:/ELK-Stack/logstash/logstash-core/lib/logstash/settings.rb:70:inset_value'", "C:/ELK-Stack/logstash/logstash-core/lib/logstash/settings.rb:89:in block in merge'", "org/jruby/RubyHash.java:1343:ineach'", "C:/ELK-Stack/logstash/logstash-core/lib/logstash/settings.rb:89:in merge'", "C:/ELK-Stack/logstash/logstash-core/lib/logstash/settings.rb:138:invalidate_all'", "C:/ELK-Stack/logstash/logstash-core/lib/logstash/runner.rb:264:in execute'", "C:/ELK-Stack/logstash/vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/command.rb:67:inrun'", "C:/ELK-Stack/logstash/logstash-core/lib/logstash/runner.rb:219:in run'", "C:/ELK-Stack/logstash/vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/command.rb:132:inrun'", "C:\ELK-Stack\logstash\lib\bootstrap\environment.rb:67:in <main>'"]} [2018-05-14T09:29:49,650][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: org.jruby.exceptions.RaiseException: (SystemExit) exit [2018-05-14T09:31:33,049][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"C:/ELK-Stack/logstash/modules/fb_apache/configuration"} [2018-05-14T09:31:33,077][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"C:/ELK-Stack/logstash/modules/netflow/configuration"} [2018-05-14T09:31:33,176][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<ArgumentError: Setting "" hasn't been registered>, :backtrace=>["C:/ELK-Stack/logstash/logstash-core/lib/logstash/settings.rb:37:inget_setting'", "C:/ELK-Stack/logstash/logstash-core/lib/logstash/settings.rb:70:in set_value'", "C:/ELK-Stack/logstash/logstash-core/lib/logstash/settings.rb:89:inblock in merge'", "org/jruby/RubyHash.java:1343:in each'", "C:/ELK-Stack/logstash/logstash-core/lib/logstash/settings.rb:89:inmerge'", "C:/ELK-Stack/logstash/logstash-core/lib/logstash/settings.rb:138:in validate_all'", "C:/ELK-Stack/logstash/logstash-core/lib/logstash/runner.rb:264:inexecute'", "C:/ELK-Stack/logstash/vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/command.rb:67:in run'", "C:/ELK-Stack/logstash/logstash-core/lib/logstash/runner.rb:219:inrun'", "C:/ELK-Stack/logstash/vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/command.rb:132:in run'", "C:\\ELK-Stack\\logstash\\lib\\bootstrap\\environment.rb:67:in'"]}
[2018-05-14T09:31:33,196][ERROR][org.logstash.Logstash ] java.lang.IllegalStateException: org.jruby.exceptions.RaiseException: (SystemExit) exit


(Pjanzen) #4

What do you have in you logstash.yml and in your pipeline.yml files?

Please post the content here...


(Alex) #5

Now it works. it was a strange issue with java version :slight_smile:

can you explain me how i can read at example the appache log and syslog at the same conf file?
or do I need a separate config file for each file type?

thansk


(Pjanzen) #6

I would just google abit, thats what I did and found a ton of information. Give them a fish and he can eat, teach him how to fish and they can provide for them selfs :slight_smile:


(system) #7

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