logstash-plugins/logstash-input-file

ERROR: "Couldn't find any input plugin named 'file'. Are you sure this is correct? Trying to load the file input plugin resulted in this error: Function 'GetFileInformationByHandleEx' not found in [kernel32]"

YouDianLengDeXiaoHuoZi opened this issue · 0 comments

When I start logstash6.4.0 on Windows Server 2003, there is a error, like:

[2019-07-05T08:15:45,718][ERROR][logstash.plugins.registry] Tried to load a plugin's code, but failed. {:exception=>#<FFI::NotFoundError: Function 'GetFileInformationByHandleEx' not found in [kernel32]>, :path=>"logstash/inputs/file", :type=>"input", :name=>"file"}
[2019-07-05T08:15:45,750][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::PluginLoadingError", :message=>"Couldn't find any input plugin named 'file'. Are you sure this is correct? Trying to load the file input plugin resulted in this error: Function 'GetFileInformationByHandleEx' not found in [kernel32]", :backtrace=>["C:/logstash/logstash-6.4.0/logstash-core/lib/logstash/plugins/registry.rb:211:in lookup_pipeline_plugin'", "C:/logstash/logstash-6.4.0/logstash-core/lib/logstash/plugin.rb:137:in lookup'", "org/logstash/plugins/PluginFactoryExt.java:210:in plugin'", "org/logstash/plugins/PluginFactoryExt.java:166:in plugin'", "C:/logstash/logstash-6.4.0/logstash-core/lib/logstash/pipeline.rb:71:in plugin'", "(eval):8:in '", "org/jruby/RubyKernel.java:994:in eval'", "C:/logstash/logstash-6.4.0/logstash-core/lib/logstash/pipeline.rb:49:in initialize'", "C:/logstash/logstash-6.4.0/logstash-core/lib/logstash/pipeline.rb:90:in initialize'", "C:/logstash/logstash-6.4.0/logstash-core/lib/logstash/pipeline_action/create.rb:38:in execute'", "C:/logstash/logstash-6.4.0/logstash-core/lib/logstash/agent.rb:309:in `block in converge_state'"]}

Could anyone help me? thank you very much!