I need to learn (told to by management) Elasticsearch and Logstash. Installed and ran elasticsearch on Linux (a server). Trying to input the employee stuff here : https://www.elastic.co/guide/en/elasticsearch/guide/current/_indexing_employee_documents.html
This works :
curl -XGET 'localhost:9200/_count?pretty' -d '
{
"query": {
"match_all": {}
}
}'
This doesn't :
curl -XPUT 'localhost:9200/megacorp/employee/1
{
"first_name" : "John",
"last_name" :  "Smith",
"age" :        25,
"about" :      "I love to go rock climbing",
}'
Neither does this:
curl -XPUT 'localhost:9200/megacorp/employee/2
{
"first_name" :  "Jane",
"last_name" :   "Smith",
"age" :         32,
"about" :       "I like to collect rock albums",
"interests":  [ "music" ]
}'
I have no idea what this means :
curl: (3) Illegal characters found in URL
I have no idea what this means :
curl: (3) [globbing] nested braces not supported at pos 193
I only have command line access on the server. The server cannot connect to the internet. I won't be using Kibana or Sense.
Can someone give me a link to a site or a resource that will help me troubleshoot these errors please?