English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Elasticsearch Time Series

A time series represents a sequence of data within a specific time series. For example, from the first day of each month to the last day of each month, data for every day. The interval between data points remains constant. Any dataset containing a time component can be represented as a time series.

In this chapter, we will use the example e-commerce dataset and plot the count of orders per day to create a time series.

Select index

Firstly, we select the index pattern, data field, and interval to be used for creating time series. From the example e-commerce dataset, we select order_date as the field and choose1d as the interval. We usePanel Optionstab to make these selections. Additionally, we keep the other values in this tab as default to get the default color and format for the time series.

InDataIn the tab, we select 'Count' as the aggregation option, select 'Group by Option' for all content, and label the time series chart.

Results

The final result of this configuration is as follows. Please note that we areMonth to DateThis figure uses a time period. Different time periods will result in different results.