2017-02-22 7 views
0

私はElasticsearch 2.4.1.Butで低速ログを有効にしたいのですが、動的に試してみるとエラーが表示されますか?ES 2.4.1で低速ログを動的に更新していますか?

PUT _cluster/settings 
    { 
     "transient": { 
     "index.search.slowlog.threshold.query.debug": "0s", 
     "index.search.slowlog.threshold.fetch.debug": "0s", 
     "index.indexing.slowlog.threshold.index.debug": "0s" 
     } 
    } 

応答ログ

[2017-02-22 12:44:33,650][WARN ][action.admin.cluster.settings] [Powderkeg] igno 
ring transient setting [index.indexing.slowlog.threshold.index.trace], not dynam 
ically updateable 
[2017-02-22 12:44:33,651][WARN ][action.admin.cluster.settings] [Powderkeg] igno 
ring transient setting [index.search.slowlog.threshold.fetch.trace], not dynamic 
ally updateable 
[2017-02-22 12:44:33,651][WARN ][action.admin.cluster.settings] [Powderkeg] igno 
ring transient setting [index.search.slowlog.threshold.query.trace], not dynamic 
ally updateable 
[2017-02-22 13:58:30,051][WARN ][action.admin.cluster.settings] [Powderkeg] igno 
ring transient setting [index.indexing.slowlog.threshold.index.debug], not dynam 
ically updateable 
[2017-02-22 13:58:30,051][WARN ][action.admin.cluster.settings] [Powderkeg] igno 
ring transient setting [index.search.slowlog.threshold.fetch.debug], not dynamic 
ally updateable 
[2017-02-22 13:58:30,052][WARN ][action.admin.cluster.settings] [Powderkeg] igno 
ring transient setting [index.search.slowlog.threshold.query.debug], not dynamic 
ally updateable 

答えて

2

にこの設定は、インデックスレベルではないクラスタレベルで与えられるべきです。

PUT indexname/_settings 
    { 

     "index.search.slowlog.threshold.query.debug": "0s", 
     "index.search.slowlog.threshold.fetch.debug": "0s", 
     "index.indexing.slowlog.threshold.index.debug": "0s" 

    } 
+0

おそらく質問を編集する必要があります。ログクラスタを有効にしたいようです。 – paqash

+1

私はクラスタワイドでこれらの設定を有効にすることはできませんが、動的であり、インデックスごとに設定されていると思います。https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-slowlog.html – Seeker

+0

あなたが正しい... – paqash

関連する問題