Scripted field in kibana show average -filter not working


(Shraddha Agrawal) #1

I have stored an array in an index

"ipChanges": [
{
"name": "nikhil",
"changes": 20
},
{
"name": "gaglani",
"changes": 40
},
{
"name": "gaglani",
"changes": 30
}

.......
],

and now for kibana dashboard we have to display record for each user separately. such that: we can filter by if ipChanges.name = 'gaglani' then display the average changes of gagalani which is 35.
But current if we put filter by name, then also it is displaying total average which is 30


(Nick Peihl) #2

I have not been able to reproduce your issue. Can you share which version of Kibana and Elasticsearch you are using?

Is each item in the ipChanges array stored as separate documents in Elasticsearch?