Elasticsearchへのデータ投入状況を watch する

Hisashi SOGA
Jan 5 · 2 min read

Logstash を利用して Elasticsearch に MySQL DB のデータを投入できた感じなのですが、データの格納状況を把握したくて模索した自分の結論がこちら

What I learned

🤔 ctop コマンドや top コマンドで負荷状況をみて落ち着いたら完了かな〜と推測する
😎 watch -n 5 curl "http://localhost:9200/_cat/indices?v" のような watch コマンド+ curl で Elasticsearch に常時問い合わせる


Every 5.0s: curl http://localhost:9200/_cat/indices?v                                                                 
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open country _v2iN4yvToCvNo4vLMxijQ 1 1 239 0 137.5kb 137.5kb
yellow open city 0OdUHUzYSgWQbwFd2n6ekQ 1 1 4079 0 538.3kb 538.3kb
yellow open countrylanguage jpBUsspWRH2uS4TZA5Pj3g 1 1 984 0 106.8kb 106.8kb
green open .kibana_task_manager_1 HEzHCzRhQgqKFrB8ckJRVA 1 0 2 1 51.4kb 51.4kb
green open .apm-agent-configuration 602izVbUR-O9bPxPmdYPsw 1 0 0 0 283b 283b
green open .kibana_1 kivpMXMkRPu8_qAjmAnaqg 1 0 1 0 5.8kb 5.8kb


Hisashi SOGA

Written by

a wanderer, aiming a good IT service `Practitioner`

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade