2020-01-01から1ヶ月間の記事一覧

retrying failed action with respondse code :503 ({"type"=>"unavailable_shards_exception","reason"=>"[インデックス名][0] primary shard is not active Timeout:[1m],request:[BulkShardRequest [[インデックス名][0]] containing [] requests]"})のエラー

logstashでDBのデータをelasticsearchに投入しようとすると、以下のエラーが起きた。 retrying failed action with respondse code :503 ({"type"=>"unavailable_shards_exception","reason"=>"[インデックス名][0] primary shard is not active Timeout:[1m…

{“_index”:”cluster”,”_type”:”settings”,”_id”:”〇〇〇〇〇〇”,”_version”:1,”result” : “created”,”shards”:{“total” :2, “successful” :2,”failed” :0, “seq_no” :1, “_primary_term”:7 }  } みたいなメッセージが表示された。

elasticsearchのシャードの再配置を無効にしようとして、間違えて下記のコマンドを入力したところ(postになっているし、clusterに_がついていない) Curl –H ‘Content-Type: application/json’ –XPOST ‘http://localhost:9200/cluster/settings –d ‘{ “persis…

logstashで複数起動してないのにlogstash could not be started becasuse there is already instance using the configured data directory.ってでた。

/usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/〇〇.conf --path.settings "/etc/logstash"のコマンドで、 DBのデータを投入しようとしたら、以下のエラーが出ていた。 [FATAL][logstash.runner]logstash could not be started becasuse there …

Elastic searchとkibanaが起動しなかったときにやったこと

elasticsearchをインストールしてみたらelasticsearchが起動しなかったのですが、 /etc/elasticsearchの中のファイルの所有権がrootになっているものがあったため。 sudo chown -R elasticsearch:elasticsearch /etc/elasticsearch でelasticsearchに変更し…