Not able to put data in Kibana dev tools, 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?

Please format your code, logs or configuration files using </> icon as explained in this guide and not the citation button. It will make your post more readable.

Or use markdown style like:

```
CODE
```

This is the icon to use if you are not using markdown format:

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.
Please update your post.

What are elasticsearch logs?

Thanks for reminding. I have edited it.

Here is what I get for the log:

systemctl status elasticsearch.service -l
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2020-03-26 11:57:14 PDT; 1h 30min ago
Docs: http://www.elastic.co
Main PID: 313482 (java)
Tasks: 322
CGroup: /system.slice/elasticsearch.service

What are elasticsearch logs?

How to check logs?

Check the logs dir. It depends on your installation. The documentation tells you about the directories.

For example, for a deb package: https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html