Skip to content

Instantly share code, notes, and snippets.

@zvada
Created September 22, 2017 21:15
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 zvada/f02d03e8462a0fa4ddd59b9b5e5ba255 to your computer and use it in GitHub Desktop.
Save zvada/f02d03e8462a0fa4ddd59b9b5e5ba255 to your computer and use it in GitHub Desktop.
alias
[root@gratiav2-1 ~]# curl -XPOST 'localhost:9200/_aliases' -d '
> {
> "actions" : [
> { "add" :
> {
> "index" : "gracc.osg.summary3-2017",
> "alias" : "gracc.osg.summary-test",
> }
> }
> ]
> }'
{"error":{"root_cause":[{"type":"parsing_exception","reason":"[add] failed to parse object","line":7,"col":27}],"type":"parsing_exception","reason":"[aliases] failed to parse field [actions]","line":7,"col":27,"caused_by":{"type":"parsing_exception","reason":"[alias_action] failed to parse field [add]","line":7,"col":27,"caused_by":{"type":"parsing_exception","reason":"[add] failed to parse object","line":7,"col":27,"caused_by":{"type":"json_parse_exception","reason":"Unexpected character ('}' (code 125)): was expecting double-quote to start field name\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@4eec5b89; line: 8, column: 14]"}}}},"status":400}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment