Mail log event correlation

Check out Rolling up historical data | Elasticsearch Guide [7.14] | Elastic then, it might be what you want.