Skip to content

Instantly share code, notes, and snippets.

@ajbrown
Created September 11, 2015 19:26
Show Gist options
  • Save ajbrown/56ebad79f9fae4fb40c8 to your computer and use it in GitHub Desktop.
Save ajbrown/56ebad79f9fae4fb40c8 to your computer and use it in GitHub Desktop.
Dovetail_Elasticsearch_Aliases.sh
curl -XPOST -d '{ "actions" : [ { "add" : { "index" : "events-1", "alias" : "events-write" } },{ "add" : { "index" : "events-1", "alias" : "events-read" } },{ "add" : { "index" : "audit-1", "alias" : "audit-write" } },{ "add" : { "index" : "audit-1", "alias" : "audit-read" } }]}' \
-i http://user:Passw0rd@localhost:9200/_aliases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment