Splunk Enterprise Security

entitymerge for identity_lookup_expanded doesn't produce any results

gabriel_vasseur
Contributor

This is the search that merges identities, according to the search preview:

| inputlookup append=T "administrative_identity_lookup" 
| fillnull value="administrative_identities" _source 
| inputlookup append=T "simple_identity_lookup" 
| fillnull value="static_identities" _source 
| eval identity=split(identity, "|"),identity=if(_source=="administrative_identities", mvappend(identity,email,replace(email,"@.*","")), identity),identity=if(_source=="static_identities", mvappend(identity,email,replace(email,"@.*","")), identity),identity=mvjoin(mvdedup(identity), "|") 
| table "_source","bunit","category","email","endDate","first","last","managedBy","nick","phone","prefix","priority","startDate","suffix","watchlist","work_city","work_country","work_lat","work_long","identity" 
| eval `iden_mktime_meval(startDate)`,`iden_mktime_meval(endDate)`,identity=mvsort(identity) 
| sort 0 +identity 
| inputlookup append=T "identity_lookup_expanded" 
| entitymerge "identity"

 

If identity_lookup_expanded is empty (because I've flushed it), it produces results. If I pipe these results into an "outputlookup identity_lookup_expanded" it is populating identity_lookup_expanded ok (except all text is lowercase, but see my other question regarding that). Now if I run the above search again, it returns no results. It's ok until it hist entitymerge.

What does this mean?

Labels (2)
0 Karma

scelikok
SplunkTrust
SplunkTrust

Hİ @gabriel_vasseur,

entitymerge command is supposed to add only new identities to prevent duplicates. That is why it is normal.

If this reply helps you an upvote and "Accept as Solution" is appreciated.
0 Karma

gabriel_vasseur
Contributor

According to https://docs.splunk.com/Documentation/ES/6.5.0/Admin/Searchpreview

"The results are the delta since the last merge. If nothing has changed in the source files since the last merge, you do not see any output."

That answers my question. This behaviour is really weird and unexpected! :-$

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In November, the Splunk Threat Research Team had one release of new security content via the Enterprise ...

Index This | Divide 100 by half. What do you get?

November 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

❄️ Celebrate the season with our December lineup of Community Office Hours, Tech Talks, and Webinars! ...