I've an application with two modules - frontend & backend.
Both are getting scanned for defects multiple times a day.
We're collecting these results and pushing them over Elasticsearch, so we can see the defects trend.
I want to project this trend in Kibana visualization in daily basis, possibly in a line graph.
Thing is I must not take data of every scan as each module is getting scanned more than once in a day and taking sum of scan1 and scan2 will give wrong result.
So, I want to take top hit of each module, then take sum of both modules and show in a single line graph.
In other words, "Sum of top hits of both modules"
I'm very new in Kibana and not able to fully understand top hits aggregation.
So kindly suggest how can I make this visualization?