I have logs in the above format.
The 'key1' "A" changes to "B" ('key2') and this change is documented in the log highlighted in green. After this step, "B" becomes the new value of "A" and the further logs have "B" in the 'key1' field.
I want to have a query where in I can find what value A has changed to("B" in this case) and filter for logs having "A" or "B" in the 'key1' field
The filtered logs should look like
How can this be achieved?