hi
I have 4 aggregations - each runs on a different field.
"aggs": {
"URL_1": {
"terms": {
"field": "URL_1",
"size": 1000
},"aggs": {
"src_count": {
"cardinality": {
"field": "src"
}
}
}
},
"URL_2": {
"terms": {
"field": "URL_2",
"size": 1000
},"aggs": {
"src_count": {
"cardinality": {
"field": "src"
}
}
}
},
"URL_3": {
"terms": {
"field": "URL_3",
"size": 1000
},"aggs": {
"src_count": {
"cardinality": {
"field": "src"
}
}
}
},
"URL_4": {
"terms": {
"field": "URL_4",
"size": 1000
},"aggs": {
"src_count": {
"cardinality": {
"field": "src"
}
}
}
}
}
}
sometimes I get the same urls in the different aggs
that means that the same key can be found in both URL_1 and URL_2 (or more) with different values in the src_count.
i need to create a "Master" aggregations that calculates the sum of src_count for each key on all 4 aggregations .
is there a way of doing that ?
using ES 5.5
Tnx