Unable to create mapping in Elasticsearch 6.0

Hi,

I am getting the following error in the console when I am trying to create an index mapping in Elasticsearch 6.0:

{
  "error": {
    "root_cause": [
      {
        "type": "security_exception",
        "reason": "action [indices:admin/create] is unauthorized for user [kibana]"
      }
    ],
    "type": "security_exception",
    "reason": "action [indices:admin/create] is unauthorized for user [kibana]"
  },
  "status": 403
}

I am trying to create the following mapping:

PUT e1web_domain_log
{
  "mappings": {
      "doc": {
        "properties": {
          "Timestamp": {
            "type": "date"
          },
          "Message_Type": {
            "type": "keyword"
          },
          "Application": {
            "type": "keyword"
          },
          "Param_X": {
            "type": "keyword"
          },
          "Server": {
            "type": "keyword"
          },
          "Status": {
            "type": "keyword"
          },
          "ExecuteThread": {
            "type": "integer"
          },
          "Queue": {
            "type": "text"
          },
          "Kernel": {
            "type": "keyword"
          },
          "Message_code": {
            "type": "long"
          },
          "Param_A": {
            "type": "keyword"
          },
          "Description": {
            "type": "text"
          }
        }
      }
    }
}

I do have x-pack installed. Am I missing some security setting?

Moved to #x-pack

It looks like you are logged tto Kibana as thekibana user. That's a common mistake.

The kibana user is designed for the Kibana application to use underthe covers for its connection to Elasticsearch. You should not log in to Kibana with that user.

You need to create your own user for logging into Kibana, per step #4 here: https://www.elastic.co/guide/en/kibana/6.0/using-kibana-with-security.html

First, login to Kibana as elastic which is the superuser, then use the Kibana management UI to

  1. Create a new role that has access to whatever indices you want to use in Kibana.
  2. Create your own personal userid, and grant it the kibana_user role, as well as the role you created in step 1.
  3. Now login to Kibana using that userid.
2 Likes

Thank you!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.