We're using Filebeat 8.14.3 to index network logs. We'd like to enable the _size field for all Filebeat data streams. (My previous thread on this topic).
Here's the attempt to enable the "_size" field:
PUT /_index_template/filebeat-8.14.3
{
"index_patterns": ["filebeat-8.14.3-*"],
"template": {
"mappings": {
"_size": {
"enabled": true
}
}
}
}
Here's the error message:
"composable template [filebeat-8.14.3] with index patterns [filebeat-8.14.3-*], priority [null] and no data stream configuration would cause data streams [filebeat-8.14.3] to no longer match a data stream template"
But what is a data stream template? The documentation explains the relationship between an index template and a data stream, but I can't find any clear reference to a 'data stream template'. As it stands, I'm editing the index template for a specific version of filebeat, so the existence of a data stream template would make sense; new data streams would inherit settings from that template. But there is no such entity to be found! Data streams: yes. Index templates: yes. Data stream templates: no.
What am I missing here?