Splunk Search

compare find missing values from two indexes same field heading /name

learningnow
New Member

Trying to create a report using two indexes on same field "Pcname".
Different datatype one of from Active Directory and other one is from SCCM.
Same computer are present in both indexes

see also the attach screen short.

Desire results:

  • If missing form for either Index or not reported back in last 30 days
  • nice it have one report but if not possible then we can break in 2 reports or more if needed

Thanks in advance
alt text

Tags (1)
0 Karma

jkat54
SplunkTrust
SplunkTrust

Something like this:

index=ad OR index=sccm 
| eval pcName=coalesc(pcname_field_in_AD_index, pcname_field_in_SCCM_index)
| eval lastContact=coaslesc(lastContact_field_in_AD_index, lastContact_field_in_SCCM_index)
| fillnull value="missing"
| stats latest(lastContact) as lastContact by pcName index
| eval comments="Logic for missing / over 30 days goes here"
0 Karma

learningnow
New Member

Thanks let me try if this would work

0 Karma
Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...