hi, team, i had created the scripted fields in index patterns. When i create rollups job, i cann't find the scripted fields that i will aggregate on metrics.
Hi @Liangliang_Qiu, I don't know what version of the stack you're using so I'm responding as though it's 7.15.
Scripted fields compute data on the fly from the data in your Elasticsearch indices and, while using them is supported in Discover, scripted fields aren't part of your index. As such, we can't use them in Rollups.
You'll need to index the data in a way that you have your final scripted output as a field.
Rollups is still an experimental feature and has a number of limitations for now. You could open an issue for the feature request or, even better, submit a pull request
The version of kibana i'm using is 7.9.2.
So it means that Rollups is based on Elasticsearch indices, not index patterns?
Indirectly, yes and no.
If you're configuring the Rollups in Kibana, then you'll use the Kibana index patterns.
These index patterns are representations of the data in your Elasticsearch index that's backing the index pattern.
In the Kibana UI for creating rollups, you can only use fields that are directly in the index pattern. These don't necessarily have a 1-to-1 mapping with the backing Elasticsearch index but in general, should.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.