Skip to content

Instantly share code, notes, and snippets.

@CoolCold
CoolCold / elasticsearch-cheatsheet.txt
Created Jul 1, 2020 — forked from stephen-puiszis/elasticsearch-cheatsheet.txt
Elasticsearch Cheatsheet - An Overview of Commonly Used Elasticsearch API Endpoints and What They Do
View elasticsearch-cheatsheet.txt
# Elasticsearch Cheatsheet - an overview of commonly used Elasticsearch API commands
# cat paths
/_cat/allocation
/_cat/shards
/_cat/shards/{index}
/_cat/master
/_cat/nodes
/_cat/indices
/_cat/indices/{index}
View gist:663de7c006490d7fd0ac7cc98b7a6844
top
top - 05:55:30 up 4 min, 1 user, load average: 1.70, 0.64, 0.24
Tasks: 636 total, 2 running, 634 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.0 us, 3.8 sy, 0.0 ni, 96.1 id, 0.0 wa, 0.0 hi, 0.1 si, 0.0 st
KiB Mem : 13191929+total, 13082048+free, 642052 used, 456764 buff/cache
KiB Swap: 9764860 total, 9764860 free, 0 used. 13038808+avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1444 root 20 0 0 0 0 R 100.0 0.0 1:15.48 md1_raid10
11914 root 20 0 0 0 0 D 42.9 0.0 0:33.65 md1_resync
View gist:676a6f9df0478c1c2d8ac8f3e6f9e22a
top
top - 13:39:55 up 6:26, 2 users, load average: 1.93, 1.89, 1.87
Tasks: 488 total, 2 running, 486 sleeping, 0 stopped, 0 zombie
%Cpu0 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu1 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu2 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu3 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu4 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu5 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st