Skip to content

Instantly share code, notes, and snippets.

@ajbrown
Created September 11, 2015 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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