Skip to content

Instantly share code, notes, and snippets.

@CarlosLannister
Created March 8, 2021 19:05
Show Gist options
  • Save CarlosLannister/251c65ce1e878e03d0c53ff9bff81d2b to your computer and use it in GitHub Desktop.
Save CarlosLannister/251c65ce1e878e03d0c53ff9bff81d2b to your computer and use it in GitHub Desktop.
Elastic add alias to index
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