Coder Social home page Coder Social logo

els_utils's Introduction

els_utils

Dependency

  • python >= 3.6
  • curl
  • jq

install

cd ~
git clone https://github.com/aokad/els_utils.git
cd els_utils
python setup.py build install

How To Use

1. kibana

1.1 現在のオブジェクトを確認する

dashboard, visualization, index-pattern, all, challenge のいずれかを type に指定する

elsu-kibana list --type dashboard

type=dashboard
bash ./scripts/kibana-find.sh ${type}
  • all を設定すると全オブジェクトの id を表示する
elsu-kibana list all

bash ./scripts/kibana-find.sh --type all
  • [bateira向け] challenge を設定すると challenge-id を表示する
elsu-kibana list challenge

bash ./scripts/kibana-find.sh --type challenge

1.2 オブジェクトを破棄する

デフォルトインデックスを除いてダッシュボード、ビジュアライゼーション、インデックスパターンを削除する (データは残す)

  • 全てのオブジェクトを削除する場合
elsu-kibana remove --type all

bash ./scripts/kibana-remove.sh all
  • challenge-id を指定する場合
elsu-kibana remove --type challenge --challenge_id ${challenge-id}

bash ./scripts/kibana-remove.sh challenge ${challenge-id}
  • オブジェクトを指定する場合

dashboard, visualization, index-pattern のいずれかを type に指定する

elsu-kibana remove --type dashboard --object_id ${object-id}

type=dashboard
bash ./scripts/kibana-remove.sh ${type} "${object-id}"

2. Elastic Search

2.1 データベース(Elastic Search における Index)一覧をみる

簡易表示

elsu-es list --type db

bash ./scripts/es-find.sh db list

詳細も表示

elsu-es list --type db --detail

bash ./scripts/es-find.sh db list-detail

2.2 データベースのテーブル(Elastic Search における Type)を確認する

elsu-es view --type table --index munchkin-strelka2-analyzed

index=c-cat-mutation-20181107-strelka2-analyzed
bash ./scripts/es-find.sh table ${index}

2.3 データベースのレコード(Elastic Search における Document)を確認する

elsu-es view --type record --index munchkin-strelka2-analyzed

index=c-cat-mutation-20181107-strelka2-analyzed
bash ./scripts/es-find.sh record ${index}

2.4 データベース削除

elsu-es remove --index munchkin-strelka2-analyzed

index=c-cat-mutation-20181107-strelka2-analyzed
bash ./scripts/es-remove.sh ${index}

els_utils's People

Contributors

aokad avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.