I got the this error=>#<ArgumentError: Setting "pipeline.batch" hasn't been registered

Sending Logstash logs to E:/Software/ELK/logstash-7.0.1/logstash-7.0.1/logs which is now configured via log4j2.properties
15:53:13.943 [main] DEBUG logstash.modules.scaffold - Found module {:module_name=>"fb_apache", :directory=>"E:/Software/ELK/logstash-7.0.1/logstash-7.0.1/modules/fb_apache/configur
ation"}
15:53:13.943 [main] DEBUG logstash.plugins.registry - Adding plugin to the registry {:name=>"fb_apache", :type=>:modules, :class=>#<LogStash::Modules::Scaffold:0x1d904637 @director
y="E:/Software/ELK/logstash-7.0.1/logstash-7.0.1/modules/fb_apache/configuration", @module_name="fb_apache", @kibana_version_parts=["6", "0", "0"]>}
15:53:13.943 [main] DEBUG logstash.modules.scaffold - Found module {:module_name=>"netflow", :directory=>"E:/Software/ELK/logstash-7.0.1/logstash-7.0.1/modules/netflow/configuratio
n"}
15:53:13.943 [main] DEBUG logstash.plugins.registry - Adding plugin to the registry {:name=>"netflow", :type=>:modules, :class=>#<LogStash::Modules::Scaffold:0x59bedf4d @directory=
"E:/Software/ELK/logstash-7.0.1/logstash-7.0.1/modules/netflow/configuration", @module_name="netflow", @kibana_version_parts=["6", "0", "0"]>}
15:53:13.959 [main] FATAL logstash.runner - An unexpected error occurred! {:error=>#<ArgumentError: Setting "pipeline.batch" hasn't been registered>, :backtrace=>["E:/Software/ELK/
logstash-7.0.1/logstash-7.0.1/logstash-core/lib/logstash/settings.rb:36:in get_setting'", "E:/Software/ELK/logstash-7.0.1/logstash-7.0.1/logstash-core/lib/logstash/settings.rb:69: inset_value'", "E:/Software/ELK/logstash-7.0.1/logstash-7.0.1/logstash-core/lib/logstash/settings.rb:88:in block in merge'", "org/jruby/RubyHash.java:1419:ineach'", "E:/Softwa
re/ELK/logstash-7.0.1/logstash-7.0.1/logstash-core/lib/logstash/settings.rb:88:in merge'", "E:/Software/ELK/logstash-7.0.1/logstash-7.0.1/logstash-core/lib/logstash/settings.rb:13 7:invalidate_all'", "E:/Software/ELK/logstash-7.0.1/logstash-7.0.1/logstash-core/lib/logstash/runner.rb:278:in execute'", "E:/Software/ELK/logstash-7.0.1/logstash-7.0.1/vendor/b undle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:67:inrun'", "E:/Software/ELK/logstash-7.0.1/logstash-7.0.1/logstash-core/lib/logstash/runner.rb:237:in run'", "E:/Softwar e/ELK/logstash-7.0.1/logstash-7.0.1/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:132:inrun'", "E:\Software\ELK\logstash-7.0.1\logstash-7.0.1\lib\bootstra
p\environment.rb:73:in `'"]}

========================================================================
#-----------------------Logstash.yml-----------------------------------------#

Settings can be specified either in hierarchical form, e.g.:

pipeline:

  batch:
  
    size: 125
  
    delay: 5

This defaults to the number of the host's CPU cores.

pipeline.workers: 5

How many workers should be used per output plugin instance

pipeline.output.workers: 5

How many events to retrieve from inputs before sending to filters+workers

pipeline.batch.size: 125

How long to wait in milliseconds while polling for the next event

before dispatching an undersized batch to filters+outputs

pipeline.batch.delay: 50

------------ Pipeline Configuration Settings --------------

Where to fetch the pipeline configuration for the main pipeline

path.config: E:\Software\ELK\logstash-7.0.1\logstash-7.0.1\config\demo-metrics-pipeline.conf
config.debug: true

------------ Module Settings ---------------

Define modules here. Modules definitions must be defined as an array.

The simple way to see this is to prepend each name with a -, and keep

all associated variables

under the name they are associated with, and

above the next, like this:

modules:

  • name: netflow

         var.elasticsearch.hosts: "localhost:9200"
    
         var.kibana.host: "localhost:5601"

That suggests a problem with the indentation or other formatting of your logstash.yml.

Please edit your post, select the configuration, and click on </> in the toolbar above the edit pane. You should see an obvious change in the format in the preview pane to the right of the edit pane.

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