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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...