I have two indexes "abc" and "def". There is a field in index "abc" ---> "operator_id".
Similarly, there is a field in index "def" --> "worker_id".
My end goal is to find out those operator_ids which are present only in index "abc".
In my below search, I'm first finding out the common values between worker_id and operator_id. And I'm getting the right result,
but then I'm trying to find ids in index "abc" by eliminating the common values between the two columns but I'm getting all the values present in "abc".
operator_id =* NOT
[search index=abc work_status=1
|stats count by worker_id | rename worker_id as operator_id | table operator_id]
|stats count by operator_id]
|stats count by operator_id