在玩耍并阅读了一堆东西之后,我让它在我的本地 Windows 机器上工作。
安装红宝石。安装 jruby。命令行 -> gem 安装包。
以上是构建宝石所必需的
然后我得到了这些文件。
https://github.com/juliusl/logstash-input-azurewadtable/tree/0.9.2
将 lib/logstash/inputs/azurewadtable.rb 替换为https://github.com/mspnp/semantic-logging/blob/elk/ELK/logstash-extension/inputs/azureblob.rb
将所有文件中的所有位置都替换为 azurewadtable 和 azureblob。
通过命令行 gem install "localtion_Of_gemSpec" 这将为您提供 gem 文件。
Logstash\bin\plugin install "location_of_gem_file" Logstash\bin\plugin install --no-verify
验证几件事:Logstash\gemfile 有这个条目,Logstash\vendor\local_gems 有文件
设置配置:
input {
azureblob {
storage_account_name => "STORAGE ACCOUNT NAME"
storage_access_key => "STORAGE ACCESS KEY"
container => "CONTAINER NAME"
}
}
Logstash/bin/logstash -f "location_of_conf_File"
它有效:)