Hi Ranjith!
We know that this feature would be useful in wazuh, so we have included it in ou
r proof of concept of a new log analysis engine (currently under development, which, perhaps, in the future could replace analisysd).
On the other hand, you could do it!, but there is a little trick, you must use PCRE2, you can make a regex to compare 2 parts of the log, with groups. in your example a regex that would kill with this would be:
user (\w+) updated user \1This compares that the user is the same, compare the first group compared with the brackets, is the same as \1.
I hope you find this helpful!