Hi Experts,
I'm running Logstash 6.3.2 on Windows server, and have successfully installed the Kinesis plugin. The installation directory is C:\Logstash...
I can see the Kinesis plugin (logstash-input-kinesis (2.0.7)) when I run logstash-plugin list
I did all of the above when I RDP'd to the Windows server and logged in using a service/system account.
The issue is, when I run a test conf file using Kinesis, it has the following error:
[ERROR][logstash.plugins.registry] Problems loading a plugin with {:type=>"input", :name=>"kinesis", :path=>"logstash/inputs/kinesis", :error_message=>"no !/ in spec", :error_class=>IOError, :error_backtrace=>["org/jruby/RubyKernel.java:955:in require'", "C:/Logstash/vendor/bundle/jruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in
require'", "C:/Logstash/vendor/bundle/jruby/2.3.0/gems/jar-dependencies-0.3.12/lib/jar_dependencies.rb:332:in do_require'", "C:/Logstash/vendor/bundle/jruby/2.3.0/gems/jar-dependencies-0.3.12/lib/jar_dependencies.rb:253:in
block in require_jar'", "C:/Logstash/vendor/bundle/jruby/2.3.0/gems/jar-dependencies-0.3.12/lib/jar_dependencies.rb:295:in require_jar_with_block'", "C:/Logstash/vendor/bundle/jruby/2.3.0/gems/jar-dependencies-0.3.12/lib/jar_dependencies.rb:252:in
require_jar'", "C:/Logstash/lib/bootstrap/patches/jar_dependencies.rb:6:in require_jar'", "C:/Logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-kinesis-2.0.7-java/vendor/jar-dependencies/runtime-jars/logstash-input-kinesis_jars.rb:33:in
'", "org/jruby/RubyKernel.java:955:in require'", "C:/Logstash/vendor/bundle/jruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in
require'", "C:/Logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-kinesis-2.0.7-java/lib/logstash/inputs/kinesis.rb:1:in <main>'", "org/jruby/RubyKernel.java:955:in
require'", "C:/Logstash/vendor/bundle/jruby/2.3.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in require'", "C:/Logstash/logstash-core/lib/logstash/plugins/registry.rb:180:in
legacy_lookup'", "C:/Logstash/logstash-core/lib/logstash/plugins/registry.rb:155:in block in lookup'", "org/jruby/ext/thread/Mutex.java:148:in
synchronize'", "C:/Logstash/logstash-core/lib/logstash/plugins/registry.rb:151:in lookup'", "C:/Logstash/logstash-core/lib/logstash/plugins/registry.rb:205:in
lookup_pipeline_plugin'", "C:/Logstash/logstash-core/lib/logstash/plugin.rb:140:in lookup'", "C:/Logstash/logstash-core/lib/logstash/plugins/plugin_factory.rb:89:in
plugin'", "C:/Logstash/logstash-core/lib/logstash/pipeline.rb:110:in plugin'", "C:/Logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-kinesis-2.0.7-java/lib/logstash/inputs/kinesis.rb:7:in
'", "org/jruby/RubyKernel.java:994:in eval'", "C:/Logstash/logstash-core/lib/logstash/pipeline.rb:82:in
initialize'", "C:/Logstash/logstash-core/lib/logstash/pipeline.rb:167:in initialize'", "C:/Logstash/logstash-core/lib/logstash/pipeline_action/create.rb:40:in
execute'", "C:/Logstash/logstash-core/lib/logstash/agent.rb:305:in `block in converge_state'"]}
However, when I RDP to the server and login using my personal user account, then the .conf file runs just fine, no errors on Kinesis.
Here's the test.conf file:
input {
kinesis {
kinesis_stream_name => "xyz"
application_name => "abc"
region => "us-east-2"
profile => "default"
}
}
filter {
...
}
output {
elasticsearch {
...
}
stdout { codec => rubydebug }
}
Here's the cmd line to run:
logstash -f c:\logstash\temp\test.conf --path.settings=/c:/logstash/config/ --path.logs=/c:/logstash/temp/
The bottom line is, why I cannot run the Kinesis plugin using the service/system account that I used to installed it, but I can when I use my personal user account!
Note that both service/system and my personal user account are both Administrators on the server, so they have the same privileges to access everything.
Thanks so much for your help!!!