capture unix socket traffic
sudo socat -t100 -v UNIX-LISTEN:/path/to/sock,mode=777,reuseaddr,fork UNIX-CONNECT:/path/to/sock.original
ssl cert in text form
openssl x509 -text -noout -in cert.pem
ssl cert vs key
openssl rsa -noout -modulus -in private.key | openssl md5
openssl x509 -noout -modulus -in cert.pem | openssl md5
show all documents:
curl 'http://elasticsearch:9200/INDEX/_search?pretty=true&q=*:*'
search document with id ABCDE1234
curl 'http://elasticsearch:9200/INDEX/_search?pretty=true&q=_id:ABCDE1234'
get document with id ABCDE1234
curl http://elasticsearch-9200.service.consul:9200/INDEX/MAPPING/ABCDE1234
cluster status
curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'
get all mappings
curl -XGET 'http://elasticsearch-9200.service.consul:9200/INDEX/_mapping?pretty'