| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 | [[data-streams]]= Data streams++++<titleabbrev>Data streams</titleabbrev>++++A _data stream_ is a convenient, scalable way to ingest, search, and managecontinuously generated time-series data.Time-series data, such as logs, tends to grow over time. While storing an entiretime series in a single {es} index is simpler, it is often more efficient andcost-effective to store large volumes of data across multiple, time-basedindices. Multiple indices let you move indices containing older, less frequentlyqueried data to less expensive hardware and delete indices when they're nolonger needed, reducing overhead and storage costs.A data stream is designed to give you the best of both worlds:* The simplicity of a single named resource you can use for requests* The storage, scalability, and cost-saving benefits of multiple indicesYou can submit indexing and search requests directly to a data stream. Thestream automatically routes the requests to a collection of hidden,auto-generated indices that store the stream's data.You can use a <<indices-templates,composable template>> and<<index-lifecycle-management,{ilm} ({ilm-init})>> to automate the management ofthese hidden indices. You can use {ilm-init} to spin up new indices, allocateindices to different hardware, delete old indices, and take other automaticactions based on age or size criteria you set. This lets you seamlessly scaleyour data storage based on your budget, performance, resiliency, and retentionneeds.[discrete][[when-to-use-data-streams]]== When to use data streamsWe recommend using data streams if you:* Use {es} to ingest, search, and manage large volumes of time-series data* Want to scale and reduce costs by using {ilm-init} to automate the management  of your indices* Index large volumes of time-series data in {es} but rarely delete or update  individual documents[discrete][[data-streams-toc]]== In this section* <<data-streams-overview>>* <<set-up-a-data-stream>>* <<use-a-data-stream>>* <<data-streams-change-mappings-and-settings>>include::data-streams-overview.asciidoc[]include::set-up-a-data-stream.asciidoc[]include::use-a-data-stream.asciidoc[]include::change-mappings-and-settings.asciidoc[]
 |