Giter Site home page Giter Site logo

ess's Introduction

ESS

This is a multi purpose command-line utility written in Go to interact with an Elasticsearch Service deployment.

It can:

  • fetch details of traffic filter rulesets associated with the deployment
  • collect Elasticsearch diagnostics for the deployment
  • send simple GET API calls to the Elasticsearch cluster and display the result

Installation

  • Download a compiled release binary according to your architecture

  • Copy it somewhere in your PATH and rename it to ess (or ess.exe on Windows)

  • Define an environment variable ELASTIC_ESS_KEY with the value of your Elastic Cloud API key

Usage

Once installed, you can use the utility as follows:

ess [-v] [-d|-t] <deployment_id> [Elasticsearch GET command]
  • -v: Verbose mode (optional).
  • -d: Diagnostics mode, collect an Elasticsearch support diagnostics for the deployment.
  • -t: Traffic Filters mode, collect Traffic filters ruleset associated with the deployment.
  • <deployment_id>: ID of the Elasticsearch Service deployment.
  • [Elasticsearch GET command]: Command mode, run an Elasticsearch API GET query, like _cat/indices

Command mode is mutually exclusive with Diagnostics or Traffic Filters mode.

Examples

ess -t abcdef1234567890abcdef1234567890

This command fetches and display ruleset details for the deployment with ID abcdef1234567890abcdef1234567890.

ess abcdef1234567890abcdef1234567890 _cat/indices
ess abcdef1234567890abcdef1234567890 /_cat/indices

This command run the _cat/indices API command on the Elasticsearch cluster of the deployment and display the results

ess abcdef1234567890abcdef1234567890 | jq '.version.number'
ess abcdef1234567890abcdef1234567890 / | jq '.version.number'

This command extracts the version number from the Elasticsearch API endpoint /

License

This utility is released under the MIT License. See LICENSE for details.

ess's People

Contributors

jeanfabrice avatar

Stargazers

Tanja Miličić 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.