Logstash - Validate the value of a field from the last ingest against the previous one

Good day
At the moment in elastic search I am ingesting data from several weblogic servers, and for the data sources I want to make a graph where I can identify when an application changes version. At the moment in a field called body.items.name I am capturing the name and in a field called version I capture the version of the application, someone can help me with a suggestion how I can solve this use case, if with Kibana it can be done validation or with Logstahs can I validate and compare a value at two different ingest times?