The Management section in Kibana is used to manage the index patterns. In this chapter, we will discuss the following −
To do this, go to Kibana UI and click Management −
To work with Kibana, we first have to create index which is populated from elasticsearch. You can get all the indices available from Elasticsearch → Index Management as shown −
At present elasticsearch has the above indices. The Docs count tells us the no of records available in each of the index. If there is any index which is updated, the docs count will keep changing. Primary storage tells the size of each index uploaded.
To create New index in Kibana, we need to click on Index Patterns as shown below −
Once you click Index Patterns, we get the following screen −
Note that the Create Index Pattern button is used to create a new index. Recall that we already have countriesdata-28.12.2018 created at the very start of the tutorial.
Click on Create Index Pattern to create a new index.
The indices from elasticsearch are displayed, select one to create a new index.
Now, click Next step.
The next step is to configure the setting, where you need to enter the following −
Time filter field name is used to filter data based on time. The dropdown will display all time and date related fields from the index.
In the image shown below, we have Visiting_Date as a date field. Select Visiting_Date as the Time Filter field name.
Click Create index pattern button to create the index. Once done it will display all the fields present in your index medicalvisits-26.01.2019 as shown below −
We have following fields in the index medicalvisits-26.01.2019 −
["Visit_Status","Time_Delay","City","City_id","Patient_Age","Zipcode","Latitude ","Longitude","Pathology","Visiting_Date","Id_type","Id_personal","Number_Home_ Visits","Is_Patient_Minor","Geo_point"].
The index has all the data for home medical visits. There are some additional fields added by elasticsearch when inserted from logstash.