Splunk Search

How do I do a search on an inputlookup from data loaded from datamodel

jeradb
Explorer

My current serach is - 

 

| from datamodel:Remote_Access_Authentication.local
| append [| inputlookup Domain | rename name as company_domain]
| dest_nt_domain

 

How do I get the search to only list items in my table where | search dest_nt_domain=company_domain? 

Is there another command other than append that I can use with inputlookup?  I do not need to add it to the list.   Just trying to get the data in to compare against the datamodel. 

Labels (2)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @jeradb,

let me understand: yo want to filter results from the datamodel using the lookup, is it correct?

In this case:

| from datamodel:Remote_Access_Authentication.local
| search [| inputlookup Domain | rename name AS company_domain | fields company_domain]
| ...

only one attention point: check if the field in the DataModel is named "company_domain" or "Remote_Access_Authentication.company_domain".

If the second, you have to rename it in the subsearch.

what do you want to extract from the DataModel?

maybe you could use tstats.

Ciao.

Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @jeradb,

let me understand: yo want to filter results from the datamodel using the lookup, is it correct?

In this case:

| from datamodel:Remote_Access_Authentication.local
| search [| inputlookup Domain | rename name AS company_domain | fields company_domain]
| ...

only one attention point: check if the field in the DataModel is named "company_domain" or "Remote_Access_Authentication.company_domain".

If the second, you have to rename it in the subsearch.

what do you want to extract from the DataModel?

maybe you could use tstats.

Ciao.

Giuseppe

Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...