elasticsearch elasticsearch/logstash和logstash contrib:Cand';找不到任何名为';x';,elasticsearch,logstash,elasticsearch,Logstash" /> elasticsearch elasticsearch/logstash和logstash contrib:Cand';找不到任何名为';x';,elasticsearch,logstash,elasticsearch,Logstash" />

elasticsearch elasticsearch/logstash和logstash contrib:Cand';找不到任何名为';x';

elasticsearch elasticsearch/logstash和logstash contrib:Cand';找不到任何名为';x';,elasticsearch,logstash,elasticsearch,Logstash,我正在尝试使用logstash1.4.2的“cloudtrail”编解码器,它位于logstash contrib中。我已经在ubuntu发行版上安装了它: sudo /usr/share/elasticsearch/bin/plugin --install elasticsearch/logstash-contrib 我已验证文件是否存在: ls /usr/share/elasticsearch/plugins/logstash-contrib/_site/lib/logstash/code

我正在尝试使用logstash1.4.2的“cloudtrail”编解码器,它位于logstash contrib中。我已经在ubuntu发行版上安装了它:

sudo /usr/share/elasticsearch/bin/plugin --install elasticsearch/logstash-contrib
我已验证文件是否存在:

ls /usr/share/elasticsearch/plugins/logstash-contrib/_site/lib/logstash/codecs/cloudtrail.rb
我将其包含在基本配置中:

input {
  s3 {
    bucket => "bucketname"
    delete => false
    codec => "cloudtrail"

....
当我尝试运行它时,我得到一个插件错误:

{:timestamp=>"2015-02-06T20:10:25.179000+0000", :message=>"
+---------------------------------------------------------+
| An unexpected error occurred. This is probably a bug.   |                               
| You can find help with this problem in a few places:    |
|                                                         |    
| * chat: #logstash IRC channel on freenode irc.          |                     
|     IRC via the web: http://goo.gl/TI4Ro                |
| * email: logstash-users@googlegroups.com                |
| * bug system: https://logstash.jira.com/                |
|                                                         |
+---------------------------------------------------------+
The error reported is: 
  Couldn't find any codec plugin named 'cloudtrail'. Are you sure
 this is correct? Trying to load the cloudtrail codec plugin resulted
 in this error: no such file to load -- logstash/codecs/cloudtrail"}
现在,我看到大多数编解码器位于
/opt/logstash/lib/logstash/codecs
。我需要手动复制它吗(看起来很糟糕)?有没有我错过的gem安装

为了好玩,我将它复制到/opt/logstash目录。它似乎是错的。

根据,您应该能够使用以下内容安装它:

 bin/plugin install logstash-codec-cloudtrail
EX:/opt/logstash/bin/plugin安装logstash编解码器cloudtrail适用于我的logstash 1.5.0.1