Data Streams
Learn How to use Data Streams for time series data
Create a lifecycle policy
var policyBuilder = getInstance( "ILMPolicyBuilder@cbelasticsearch" )
.new( "my-new-policy" )
.hotPhase( shards = 2, rollover = "1gb" )
.warmPhase( age=7, shards = 1, readOnly = true )
.withDeletion( age = 60 )
.save();Create a component template
Create an index template
Create our data stream
Last updated
Was this helpful?