Created
March 8, 2021 19:05
-
-
Save CarlosLannister/251c65ce1e878e03d0c53ff9bff81d2b to your computer and use it in GitHub Desktop.
Elastic add alias to index
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --user elastic:medium -X POST "localhost:9200/_aliases" -H 'Content-Type: application/json' -d' | |
{ | |
"actions": [ | |
{ | |
"add": { | |
"index": "bank", | |
"alias": "banco" | |
} | |
} | |
] | |
} | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment