I follow the Elastic tutorial and experience and error when I use the curl code provided in the tutorial:
curl -H "Content-Type: application/json" -XPOST 'localhost:9200/bank/account/_bulk?pretty&refresh' --data-binary "@accounts.json"
When I replace the single quotation marks with double quotation marks it works fine.
The problem not only occurs with the above command but everytime I use single quotation marks in curl. Am I the only one experiencing issues with the single quotation marks?
Another example. This doesn't work:
curl -XGET 'localhost:9200/_cat/health?v&pretty'
This works fine:
curl -XGET "localhost:9200/_cat/health?v&pretty"