Not able to put data in Kibana dev tool, any ideas?

I installed new Kibana and elasticsearch. Then I typed in the following commands in "dev tools":

PUT /ag2_vehicle_stats
{
"mappings": {
"doc": {
"properties": {
"vin": {
"type": "keyword"
},
"error_reported": {
"type": "integer"
},
"new_normalized_dist_on_battery": {
"type": "double"
},
"new_seg_battery_charge_curr_capacity_in_ah": {
"type": "double"
},
"curr_capacity_drive_soh": {
"type": "double"
},
"curr_capacity_charge_soh": {
"type": "double"
},
"day": {
"type": "date"
}
}
}
}
}

However, I got the following error msg:

{
"error" : {
"root_cause" : [
{
"reason" : "forbidden",
"due_to" : [
"OPERATION_NOT_ALLOWED"
]
}
],
"reason" : "forbidden",
"due_to" : [
"OPERATION_NOT_ALLOWED"
],
"status" : 403
}
}

What's wrong here? Any ideas?

Sounds like the user you're currently logged in as doesn't have access to create that index.

You can check the privileges for that action with:

GET /_security/user/_has_privileges
{
  "index" : [
    {
      "names": [ "ag2_vehicle_stats" ],
      "privileges" : [ "create_index" ]
    }
  ]
}

But I would look at the user you're logged in as, and the roles which it has. I assume it's limited.

Thanks! I ran the privileges and got the following msg:

{
"error" : {
"root_cause" : [
{
"type" : "index_not_found_exception",
"reason" : "no such index [_security]",
"resource.type" : "index_expression",
"resource.id" : "_security",
"index_uuid" : "na",
"index" : "_security"
}
],
"type" : "index_not_found_exception",
"reason" : "no such index [_security]",
"resource.type" : "index_expression",
"resource.id" : "_security",
"index_uuid" : "na",
"index" : "_security"
},
"status" : 404
}

What version of Elasticsearch are you on?

The latest one.

Now, the above problem is sovled. But I got new errors:

{
"error" : {
"root_cause" : [
{
"type" : "mapper_parsing_exception",
"reason" : "Root mapping definition has unsupported parameters: [doc : {properties={odo_index={type=integer}, battery_usage_high={type=integer}, daily_fuel_dist_p99={type=double}, num_records={type=integer}}}]"
}
],
"type" : "mapper_parsing_exception",
"reason" : "Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [doc : {properties={odo_index={type=integer}, battery_usage_high={type=integer}, daily_fuel_dist_p99={type=double}, num_records={type=integer}}}]",
"caused_by" : {
"type" : "mapper_parsing_exception",
"reason" : "Root mapping definition has unsupported parameters: [doc : {properties={odo_index={type=integer}, battery_usage_high={type=integer}, daily_fuel_dist_p99={type=double}, num_records={type=integer}}}]"
}
},
"status" : 400
}

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