Created
September 22, 2017 21:15
-
-
Save zvada/f02d03e8462a0fa4ddd59b9b5e5ba255 to your computer and use it in GitHub Desktop.
alias
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
[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