Hi Everyone!
I am trying to change my data to the datastream. Normally I can get logs, I can see indice first. After I create a datastream I could not get any logs even though logs keep coming. I followed this steps:
I created a data stream like below:
{
"data_streams" : [
{
"name" : "git-demo-topic",
"timestamp_field" : {
"name" : "@timestamp"
},
"indices" : [
{
"index_name" : ".ds-git-demo-topic-2021.12.13-000001",
"index_uuid" : "y9bC8QZoQgijDKfp1zKO6Q"
}
],
"generation" : 1,
"status" : "YELLOW",
"template" : "git-demo-topic",
"hidden" : false,
"system" : false
}
]
}
This is the template a created:
{
"index_templates" : [
{
"name" : "git-demo-topic",
"index_template" : {
"index_patterns" : [
"git-demo-topic*"
],
"template" : {
"mappings" : {
"properties" : {
"city" : {
"type" : "text"
},
"log_level" : {
"type" : "text"
},
"detail" : {
"type" : "text"
},
"ts" : {
"type" : "text"
}
}
}
},
"composed_of" : [ ],
"data_stream" : {
"hidden" : false
}
}
}
]
}
This is the indice that created automatically, but it does not get any documents:
{
".ds-git-demo-topic-2021.12.13-000001" : {
"aliases" : { },
"mappings" : {
"_data_stream_timestamp" : {
"enabled" : true
},
"properties" : {
"@timestamp" : {
"type" : "date"
},
"city" : {
"type" : "text"
},
"detail" : {
"type" : "text"
},
"log_level" : {
"type" : "text"
},
"ts" : {
"type" : "text"
}
}
},
"settings" : {
"index" : {
"routing" : {
"allocation" : {
"include" : {
"_tier_preference" : "data_hot"
}
}
},
"hidden" : "true",
"number_of_shards" : "1",
"provided_name" : ".ds-git-demo-topic-2021.12.13-000001",
"creation_date" : "1639392538811",
"number_of_replicas" : "1",
"uuid" : "-LOWaaddSyWXXwiXfVk6GA",
"version" : {
"created" : "7150299"
}
}
},
"data_stream" : "git-demo-topic"
}
}
Thank you in advance!