Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-9522

Invalid create Elasticsearch index command on admin guide

    XMLWordPrintable

    Details

    • Rank:
      1|hzrwu7:
    • Sprint:
      Sprint 112 - Shakespeare

      Description

      In "Procedure 6.5. To Prepare for Elasticsearch Audit Logging", the create index command should be changed from

      curl -X \
      --request POST \
      --header "Content-Type: application/json" \
      --data @audit.json \
      http://elasticsearch.example.com:9200/myOpenAMAuditIndex

      to, for example,

      curl \
      --request POST \
      --header "Content-Type: application/json" \
      --data @audit.json \
      http://elasticsearch.example.com:9200/my_openam_audit_index

      The reason is as follows:

      $ curl -X  --request POST  --header "Content-Type: application/json"  --data @audit.json  http://elasticsearch.example.com:9200/myOpenAMAuditIndex
      curl: (6) Couldn't resolve host 'POST'
      
      $ curl --request POST  --header "Content-Type: application/json"  --data @audit.json  http://elasticsearch.example.com:9200/myOpenAMAuditIndex
      {"error":{"root_cause":[{"type":"invalid_index_name_exception","reason":"Invalid index name [myOpenAMAuditIndex], must be lowercase","index":"myOpenAMAuditIndex"}],"type":"invalid_index_name_exception","reason":"Invalid index name [myOpenAMAuditIndex], must be lowercase","index":"myOpenAMAuditIndex"},"status":400}
      
      $ curl --request POST  --header "Content-Type: application/json"  --data @audit.json  http://elasticsearch.example.com:9200/openam_audit_index
      {"acknowledged":true}
      

        Attachments

          Activity

            People

            Assignee:
            David.Goldsmith David Goldsmith
            Reporter:
            kohei kohei
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: