2015-02-06 109 views
1

我正在試圖使用'cloudtrail'編解碼器和logstash 1.4.2,它在logstash-contrib中。我已經安裝了它的Ubuntu發行版:elasticsearch/logstash和logstash-contrib:找不到任何名爲'x'的插件

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: [email protected]    | 
| * 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。我是否需要手動複製它(看起來很糟糕)?有沒有我錯過的寶石安裝?

爲了好玩,我將它複製到/ opt/logstash目錄。這似乎是錯誤的。

回答

3

docs,你應該能夠用下面的安裝:

bin/plugin install logstash-codec-cloudtrail 

EX中:/ opt/logstash /斌/插件安裝logstash編譯碼器cloudtrail對我的作品與logstash 1.5.0.1 。