What is an Elasticsearch mapping?
A mapping is the structure that helps identify the document type and how to process the data inside into relevant fields on Elasticsearch. A mapping is made up of an index, types within the index and documents that belong to those types through an identifier.
If you want a more detailed explanation I recommend the following article
An Introduction to Elasticsearch Mapping on the Elastic website.
How can I view the current mappings?
There are two ways you can view the current mappings on your Logit ELK Stacks.
Using Kibana Dev Tools
One way is to use dev tools in Kibana. You can access Kibana from any of your dashboards by choosing from your dashboard Stack settings > Access Kibana.
Once Kibana has opened you need to choose Dev Tools in the left hand menu.
In the console section of the screen we are going to enter the following command.
You should get an output similar to that of the screenshot below. Here you can see all the mappings currently used on the Elasticsearch server.
Using the Mapping API
The second way to review the mappings currently in use is to use the mapping API. To do this you will need your Elasticsearch endpoint address and your ApiKey. These can be accessed from your dashboard by choosing Stack Settings > Elasticsearch.
The next step is to write a a curl -x get command to retrieve the mappings from Elasticsearch.
curl -X GET your-elasticsearch-endpoint-address-es.logit.io/_all/_mapping?your-api-key?pretty
You will be returned with a json output similar to the below screenshot.