2017-02-27 113 views
0

我使用的是Logstash 5.2,我需要使用chiper過濾器對我的日誌中的某些值進行加密,但不幸的是我得到這個錯誤。Chiper過濾器logstash 5.2

bin/logstash-plugin install logstash-filter-cipher 
Validating logstash-filter-cipher 
Installing logstash-filter-cipher 
Plugin version conflict, aborting 
ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "logstash-core-plugin-api": 
    In snapshot (Gemfile.lock): 
    logstash-core-plugin-api (= 2.1.12) 

    In Gemfile: 
    logstash-devutils (>= 0) java depends on 
     logstash-core-plugin-api (<= 2.99, >= 2.0) java 

    logstash-input-s3 (>= 0) java depends on 
     logstash-mixin-aws (>= 0) java depends on 
     logstash-core-plugin-api (<= 2.99, >= 1.60) java 

錯誤繼續,直到它說

Running `bundle update` will rebuild your snapshot from scratch, using only 
the gems in your Gemfile, which may resolve the conflict. 
Bundler could not find compatible versions for gem "logstash": 
    In Gemfile: 
    logstash-filter-cipher (>= 0) java depends on 
     logstash (< 2.0.0, >= 1.4.0) java 
Could not find gem 'logstash (< 2.0.0, >= 1.4.0) java', which is required by gem 'logstash-filter-cipher (>= 0) java', in any of the sources. 

如果這個問題是關於不支持但還是我做錯了什麼chiper過濾我不明白..

回答

0

Gem尚未更新以支持比2.x系列更新的Logstash版本。您的線索是在打捆輸出:

In Gemfile: 
    logstash-filter-cipher (>= 0) java depends on 
    logstash (< 2.0.0, >= 1.4.0) java 

運行logstash 2.4可能會爲你工作好。

+0

是真的,現在還不兼容...我在logstash中有哪些選項可用於加密特定字段? – ennon