Templates are used to create mappings between logstash and elasticsearch. Without the mappings elasticsearch will create automatic mappings however these will be elasticsearch’s best guess as to the field. In most cases this will default to text. This means many of the fields such as IP address’s will be searchable but not able to be used in Visualisations.
Upload elasticsearch templates and mappings. There are multiple way this can be achieved. The most common ways are cURL and a REST based program such as POSTMAN. Feel free to use whichever method you are most comfortable with.
Note
RECOMMENDATION Use cURL for the uploading of the templates with json file. POSTMAN is useful for Elasticsearch management once the template are in place.
cd<git clone directory>/json/git clone directory from Lab 1
curl -XPUT http://localhost:9200/_template/pem?pretty -d @pem_mapping.json
curl -XPUT http://localhost:9200/_template/afm?pretty -d @afm_mapping.json
curl -XPUT http://localhost:9200/_template/dns?pretty -d @dns_mapping.json
Import ELK Postman Collection and Environment
Click the ‘Import from Link’ tab. Paste the following URL into the text box and click ‘Import’
https://raw.githubusercontent.com/jarrodlucia/bigip_elk_server/master/postman_collections/ELK Stack.postman_collection.json
You should now see a collection named ‘F5 ELK’ in your Postman Collections sidebar:
Import the Environment file by clicking ‘Import’ -> ‘Import from Link’ and pasting the following URL and clicking ‘Import’:
https://raw.githubusercontent.com/jarrodlucia/bigip_elk_server/master/postman_collections/F5 ELK Env.postman_environment.json

You should see cluster information regarding elasticsearch
You should see the current index’s and information regarding each index.
We will use this command to observe the creation of new indexes
You should see any current templates listed.
Note
New Install will NOT contain any templates showing {}
Note
Create all templates from the POSTMAN collection
Note
Look through the template JSON outputted by POSTMAN. Verify and check that the three templates created are present.