is it somehow possible to search in kibana either via KQL or Lucene syntax for a field that has the same value as another field in the same event?
i.e. assume I've a user.name and user.target.name where some events may contain the same value, i.e. a user did something to himself.
i.e. I can search for:
user.name: foobar and user.target.name: foobar
but that would require me, to already know the value I'm looking for.
so in a search, I want to find all events where any user did something to himself instead of to some other users. So can I somehow reference a field for it's value and search for that?
I tried to find something like that in the docs, but was unable to find.
hope that's somehow possible.