Commands

ElasticSearch

# Show all indices in an elasticsearch instance.
$ curl -XGET http://192.168.1.188:9200/_cat/indices?v

# Delete all data in ElasticSearch for an index, in this instance asm
$ curl -XDELETE 10.10.2.139:9200/asm*

# List cluster health.
$ curl -XGET http://192.168.1.188:9200/_cluster/health?pretty

# Get a index template
$ curl -XGET http://192.168.1.199:9200/index-name/_mapping?pretty

Logstash

# Manually run Logstash with a specified config file.  Handy for testing.
$ /usr/share/logstash/bin/logstash -f file.conf