Setting up a time series data stream manually
TSDSs are built on top of Elasticsearch data streams and are specifically designed to optimize the storage and retrieval of time series data. Starting from Elasticsearch 8.7, they are generally available as an officially supported feature. In this recipe, we will explore how to manually create a TSDS for the real-time traffic data of Rennes.
Getting ready
You will need to finish the previous recipe, Setting up a data stream manually, as we are going to reuse some of the objects that we created in the previous recipe.
The full code snippets for this recipe can be found at https://github.com/PacktPublishing/Elastic-Stack-8.x-Cookbook/blob/main/Chapter4/snippets.md#setting-up-time-series-data-stream-tsds-manually.
How to do it...
Continuing from our previous efforts, we’ll now focus on setting up time series data streams for Rennes traffic analysis. We’ll begin by creating component templates and index templates...