We have seen the structure of the final record after enriching the data. That should help us model the data in Elasticsearch. Given that our data is time series data, we can apply some of the techniques mentioned in Chapter 9, Running Elastic Stack in Production, to model the data:
- Defining an index template
- Understanding the mapping
Let us look at the index template that we will define.
Since we are going to be storing time series data that is immutable, we do not want to create one big monolithic index. We'll use the techniques discussed in the section Modeling time series data in Chapter 9, Running Elastic Stack in Production.
The source code of the application in this chapter is within the GitHub repository at https://github.com/pranav-shukla/learningelasticstack/tree/master/chapter-10. As we go through the chapter, we will perform the steps mentioned in the README.md
file located at that path.
Please create the index template mentioned...