Hello!
I'm trying to denormalize a Business Inteligence database to elasticsearch, but i'm having some issues to build some visualizations inside Kibana because of the documents duplicates.
For example, for the set of documents below:
"vm.nome_maquina" => "VM1",
"dominio.descricao_dominio" => "ROOT",
"vm.tamanho_disco" => "10",
"ip.descricao" => "XXX.XXX.XXX.XXX",
"datacenter.nome_datacenter" => "DC",
"datacenter.tipo_capacidade" => "CPU"
"vm.nome_maquina" => "VM1",
"dominio.descricao_dominio" => "ROOT",
"vm.tamanho_disco" => "10",
"ip.descricao" => "XXX.XXX.XXX.XXX",
"datacenter.nome_datacenter" => "DC",
"datacenter.tipo_capacidade" => "CPU"
"vm.nome_maquina" => "VM1",
"dominio.descricao_dominio" => "ROOT",
"vm.tamanho_disco" => "10",
"ip.descricao" => "XXX.XXX.XXX.XXX",
"datacenter.nome_datacenter" => "DC",
"datacenter.tipo_capacidade" => "CPU"
"vm.nome_maquina" => "VM2",
"dominio.descricao_dominio" => "ROOT",
"vm.tamanho_disco" => "10",
"ip.descricao" => "XXX.XXX.XXX.XXX",
"datacenter.nome_datacenter" => "DC",
"datacenter.tipo_capacidade" => "CPU"
"vm.nome_maquina" => "VM2",
"dominio.descricao_dominio" => "ROOT",
"vm.tamanho_disco" => "10",
"ip.descricao" => "XXX.XXX.XXX.XXX",
"datacenter.nome_datacenter" => "DC",
"datacenter.tipo_capacidade" => "CPU"
"vm.nome_maquina" => "VM2",
"dominio.descricao_dominio" => "ROOT",
"vm.tamanho_disco" => "10",
"ip.descricao" => "XXX.XXX.XXX.XXX",
"datacenter.nome_datacenter" => "DC",
"datacenter.tipo_capacidade" => "CPU"
I'm trying to create a bar visualization and aggregate by terms of the field dominio.descricao_dominio, and after that sum the values of the field vm.tamanho_disco by unique value of vm.nome_maquina.
So for the example above, i have 3 duplicated documents containing vm.nome_maquina, dominio.descricao_dominio and vm.tamanho_disco. The value that i'm trying to goal is "20", cause that is the sum of vm.tamanho_disco of the first and second document , cause both contains the "ROOT" value on field dominio.descricao_dominio.
Please, do you guys have an idea how to achieve that on Kibana?
Follow attached the visualization that i tried to do, but i wasnt able to sum the values.
Thanks in advance!