data-streams.asciidoc 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. [[data-streams]]
  2. = Data streams
  3. ++++
  4. <titleabbrev>Data streams</titleabbrev>
  5. ++++
  6. A _data stream_ is a convenient, scalable way to ingest, search, and manage
  7. continuously generated time-series data.
  8. Time-series data, such as logs, tends to grow over time. While storing an entire
  9. time series in a single {es} index is simpler, it is often more efficient and
  10. cost-effective to store large volumes of data across multiple, time-based
  11. indices. Multiple indices let you move indices containing older, less frequently
  12. queried data to less expensive hardware and delete indices when they're no
  13. longer needed, reducing overhead and storage costs.
  14. A data stream is designed to give you the best of both worlds:
  15. * The simplicity of a single named resource you can use for requests
  16. * The storage, scalability, and cost-saving benefits of multiple indices
  17. You can submit indexing and search requests directly to a data stream. The
  18. stream automatically routes the requests to a collection of hidden,
  19. auto-generated indices that store the stream's data.
  20. You can use a <<indices-templates,composable template>> and
  21. <<index-lifecycle-management,{ilm} ({ilm-init})>> to automate the management of
  22. these hidden indices. You can use {ilm-init} to spin up new indices, allocate
  23. indices to different hardware, delete old indices, and take other automatic
  24. actions based on age or size criteria you set. This lets you seamlessly scale
  25. your data storage based on your budget, performance, resiliency, and retention
  26. needs.
  27. [discrete]
  28. [[when-to-use-data-streams]]
  29. == When to use data streams
  30. We recommend using data streams if you:
  31. * Use {es} to ingest, search, and manage large volumes of time-series data
  32. * Want to scale and reduce costs by using {ilm-init} to automate the management
  33. of your indices
  34. * Index large volumes of time-series data in {es} but rarely delete or update
  35. individual documents
  36. [discrete]
  37. [[data-streams-toc]]
  38. == In this section
  39. * <<data-streams-overview>>
  40. * <<set-up-a-data-stream>>
  41. * <<use-a-data-stream>>
  42. * <<data-streams-change-mappings-and-settings>>
  43. include::data-streams-overview.asciidoc[]
  44. include::set-up-a-data-stream.asciidoc[]
  45. include::use-a-data-stream.asciidoc[]
  46. include::change-mappings-and-settings.asciidoc[]