Skip to content

Instantly share code, notes, and snippets.

View tcsullens's full-sized avatar

Tyler Sullens tcsullens

  • Axios
  • Washington, D.C.
View GitHub Profile

This page covers some basic Elasticsearch troubleshooting steps.

The Elasticsearch CAT APIs

The _cat APIs available on the cluster are extremely useful in inspecting the “state” of the cluster: nodes, indices, shards, tasks, etc.These APIs will be used in any troubleshooting or information gathering exercise. I’m pointing out a few useful endpoints here to get started.

List the available _cat APIs

export ESHOST="http://localhost:9200"

Git

Basic Git Setup (Mac OS / Linux)

Generate a ssh key:

ssh-keygen -b 4096 -C "tcsullens_gh" -f ~/.ssh/github

(Add it to your GH profile)

@tcsullens
tcsullens / gh_unwatch.py
Created October 7, 2019 17:13
Unwatch Github repositories with a specific owner
#!/usr/bin/env python
import requests
import sys
gh_token = sys.argv[1]
owner = sys.argv[2]
headers = {
'Accept': 'application/vnd.github.v3+json',
'Authorization': 'token {}'.format(gh_token)

Keybase proof

I hereby claim:

  • I am tcsullens on github.
  • I am tcsullens (https://keybase.io/tcsullens) on keybase.
  • I have a public key ASDk2DQEW20apf6SgYuYXwu0tjFbXXMD9ihsJQL1inblzQo

To claim this, I am signing this object: