As Buckets I have another field called number (lets say number: 1, 2)
A field number can have different tasks with a corresponding size.
Is it possible to Display that in one Visualization? I can not figure out the correct Metrics Aggregation for that.
I have already set the buckets correctly by metrics.task.keyword, but in the moment I am using the max Aggregation, which returns me just the highest size in the document.
What I actually need is the size for the task in the correct JSON block.
Are you saying that your documents contain an array of tasks, such as:
{
number: 1
tasks: [{ ... }, { ... }]
}
If so, then you can't build this visualization using the standard tools in Kibana- it is only possible to build using Vega. This is because array types are not supported in Elasticsearch, and Kibana built-in tools don't support the nested mapping which would otherwise be a good workaround.
So you have two options here:
Change the way your documents are organized. Instead of having an array of tasks, create a separate document for each task- this can be visualized.
Okay, so if they are collected in a single document then you must use Vega. If you split these tasks into separate documents, you could build this visualization using any of the line charts in Kibana.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.