Hi All,
I have been trying to pull the logs of my webapp which is stored in my azure storage account {BLOB}.
I am using the logstash-input-azureblob plugin which i have already installed.
[root@AZEUSELKVM01 ~]# /usr/share/logstash/bin/logstash-plugin list | grep blob
logstash-input-azureblob
I am using the below configuration in my logstash.conf
input {
azureblob {
storage_account_name => "testblob"
storage_access_key => "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
container => "test"
codec => "json"
file_head_bytes => 12
file_tail_bytes => 2
}
}
output {
elasticsearch {
hosts => ["http://localhost:9200"]
index => "blob-%{+YYYY.MM.dd}"
}
}
When I start my logstash , its showing the plugin error.
Could you please help on how to pull the logs that are stored in azure blob using logstash.
PFB the error for your reference:
[2019-03-08T08:58:28,535][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 'azureblob'. Are you sure this is correct? Trying to load the azureblob input plugin resulted in this error: Problems loading the requested plugin named azureblob of type input. Error: TypeError no implicit conversion of nil into String", :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/plugins/registry.rb:211:in lookup_pipeline_plugin'", "/usr/share/logstash/logstash-core/lib/logstash/plugin.rb:137:in
lookup'", "org/logstash/plugins/PluginFactoryExt.java:222:in plugin'", "org/logstash/plugins/PluginFactoryExt.java:181:in
plugin'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:71:in plugin'", "(eval):8:in
'", "org/jruby/RubyKernel.java:994:in eval'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:49:in
initialize'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:90:in initialize'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:43:in
block in execute'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:94:in block in exclusive'", "org/jruby/ext/thread/Mutex.java:148:in
synchronize'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:94:in exclusive'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:39:in
execute'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:327:in `block in converge_state'"]}
[2019-03-08T08:58:29,089][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}