Hi,
For instance my data looks something like
5 entries
{
"_index" : "metric_exp",
"_type" : "data",
"_id" : "5",
"_score" : 1.0,
"_source" : {
"id" : 5
}
},
{
"_index" : "metric_exp",
"_type" : "data",
"_id" : "2",
"_score" : 1.0,
"_source" : {
"id" : 2
}
},
{
"_index" : "metric_exp",
"_type" : "data",
"_id" : "4",
"_score" : 1.0,
"_source" : {
"id" : 4
}
},
{
"_index" : "metric_exp",
"_type" : "data",
"_id" : "1",
"_score" : 1.0,
"_source" : {
"id" : 1
}
},
{
"_index" : "metric_exp",
"_type" : "data",
"_id" : "3",
"_score" : 1.0,
"_source" : {
"id" : 3
}
}
And I want some aggregation, in such a way, that it gives the output a single document with id=4
So this would be max-1
id=5 is the max
id=1 is the min
Input=5 docs with ids(1,2,3,4,5)
Output=1 doc with (max-1) position in input(id=4)
Are these serial numbers associated with logs?
No
What kind of information do you want the visualization to convey?
Mostly a data table I need
Can you just use a Vega graph if you want Vega graph functionality?
I have implemented something like above metric in vega-lite but since I need a table this time, I thought if I can reach that by using Data-Table built-in feature.
Kindly let me know if I can do this in Data-Table built-in feature.