<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Display Values not found in search results but is in lookup table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-are-Display-Values-not-found-in-search-results-but-is-in/m-p/565697#M197111</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223921"&gt;@nandhiniG&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = dataIntegration source=piedpiper lambda_events 
| search event.proc_stat_cd = "SCSS" AND event.s3_location = "*"s3:*//lake/depositescrow*"*" AND "event.module_name"=EMR 
| rename event.dataset_id as "Id" 
| rename event.regrd_dataset_nm as dataset_name 
| rename event.proc_ts as "DateTime" 
| table "Id" , "Name","DateTime" 
| rename Name as dataset_name
| append [| inputlookup dataset.csv] | stats count values(*) as * by dataset_name
| eval FilesMoved = if(count==1,"NO","YES")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Sample Search :&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval _raw="Id,Name,DateTime
1,dataset1,t1
2,dataset2,t2"| multikv forceheader=1 |table Id,Name,DateTime
| rename comment as "Upto now is data only"
| rename Name as dataset_name
| append [| inputlookup car.csv] | stats count values(*) as * by dataset_name
| eval FilesMoved = if(count==1,"NO","YES")&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 02 Sep 2021 16:35:34 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2021-09-02T16:35:34Z</dc:date>
    <item>
      <title>Why are Display Values not found in search results but is in lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-Display-Values-not-found-in-search-results-but-is-in/m-p/565511#M197047</link>
      <description>&lt;P&gt;I Have a look up file called dataset.csv which will have one field,&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;dataset_name&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;dataset1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;dataset2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;dataset3&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to display the dataset_names in a table which are not present in the search results but present in lookup , i use the below query to retrieve all the datasets . but using lookup it does not show the missing names.&lt;/P&gt;
&lt;P&gt;QUERY :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="ruby"&gt;index = dataIntegration source=piedpiper lambda_events| search event.proc_stat_cd = "SCSS"  AND event.s3_location = "*"s3:*//lake/depositescrow*"*"  AND "event.module_name"=EMR | rename event.dataset_id as "Id" |rename event.regrd_dataset_nm as Name |rename event.proc_ts as "DateTime"| table "Id" , "Name","DateTime"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I want the results like,how can i achieve this&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;DatasetName&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;FilesMoved&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;Time&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;dataset1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;YES&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;dataset2&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;NO&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="24px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Fri, 05 Aug 2022 14:30:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-Display-Values-not-found-in-search-results-but-is-in/m-p/565511#M197047</guid>
      <dc:creator>nandhiniG</dc:creator>
      <dc:date>2022-08-05T14:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Display Values not found in search results but is in lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-Display-Values-not-found-in-search-results-but-is-in/m-p/565512#M197048</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223921"&gt;@nandhiniG&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try something&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = dataIntegration source=piedpiper lambda_events 
| search event.proc_stat_cd = "SCSS" AND event.s3_location = "*"s3:*//lake/depositescrow*"*" AND "event.module_name"=EMR 
| rename event.dataset_id as "Id" 
| rename event.regrd_dataset_nm as dataset_name 
| rename event.proc_ts as "DateTime" 
| table "Id" , "Name","DateTime"
| lookup dataset.csv dataset_name output dataset_name as dataset_name_lp
| eval FilesMoved = if(isnull(dataset_name_lp),"NO","YES")&lt;/LI-CODE&gt;&lt;P&gt;KV&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 15:43:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-Display-Values-not-found-in-search-results-but-is-in/m-p/565512#M197048</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-09-01T15:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Display Values not found in search results but is in lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-Display-Values-not-found-in-search-results-but-is-in/m-p/565637#M197092</link>
      <description>&lt;P&gt;It is not working , as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; It displays the matching search results - which means the files are moved .But not displaying the files missed .&lt;/P&gt;&lt;P&gt;ex: i have two datasets --&amp;gt; first.dat ,second.dat&lt;/P&gt;&lt;P&gt;lets assume first.dat is the only file processed,and the splunk search results have only one log&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;datasetId&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;dataset_name&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;FilesMoved&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;first.dat&lt;/TD&gt;&lt;TD&gt;YES&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;2&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;second.dat&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;NO&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 09:20:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-Display-Values-not-found-in-search-results-but-is-in/m-p/565637#M197092</guid>
      <dc:creator>nandhiniG</dc:creator>
      <dc:date>2021-09-02T09:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Display Values not found in search results but is in lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-Display-Values-not-found-in-search-results-but-is-in/m-p/565697#M197111</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223921"&gt;@nandhiniG&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = dataIntegration source=piedpiper lambda_events 
| search event.proc_stat_cd = "SCSS" AND event.s3_location = "*"s3:*//lake/depositescrow*"*" AND "event.module_name"=EMR 
| rename event.dataset_id as "Id" 
| rename event.regrd_dataset_nm as dataset_name 
| rename event.proc_ts as "DateTime" 
| table "Id" , "Name","DateTime" 
| rename Name as dataset_name
| append [| inputlookup dataset.csv] | stats count values(*) as * by dataset_name
| eval FilesMoved = if(count==1,"NO","YES")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Sample Search :&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval _raw="Id,Name,DateTime
1,dataset1,t1
2,dataset2,t2"| multikv forceheader=1 |table Id,Name,DateTime
| rename comment as "Upto now is data only"
| rename Name as dataset_name
| append [| inputlookup car.csv] | stats count values(*) as * by dataset_name
| eval FilesMoved = if(count==1,"NO","YES")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Sep 2021 16:35:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-Display-Values-not-found-in-search-results-but-is-in/m-p/565697#M197111</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-09-02T16:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Display Values not found in search results but is in lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-Display-Values-not-found-in-search-results-but-is-in/m-p/565707#M197113</link>
      <description>&lt;P&gt;Well... you can use |set diff to check for the values not present in a common subset of two searches &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.1/SearchReference/Set" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.1/SearchReference/Set&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Unfortunately it doesn't show which search it is from.&lt;/P&gt;&lt;P&gt;So in order to compare two sets I usually use a little trick&lt;/P&gt;&lt;PRE&gt;&amp;lt;search one&amp;gt; | eval setsource=1 | append [ &amp;lt;search two&amp;gt; | eval setsource=2 ] | stats sum(setsource) by &amp;lt;all important fields&amp;gt;&lt;/PRE&gt;&lt;P&gt;This way in the resulting table you have a setsource field showing whether the line comes from first search (1), second (2) or is the line included in both results (3).&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 18:37:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-Display-Values-not-found-in-search-results-but-is-in/m-p/565707#M197113</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-09-02T18:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Display Values not found in search results but is in lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-Display-Values-not-found-in-search-results-but-is-in/m-p/565762#M197138</link>
      <description>&lt;P&gt;Anyway , i tried to add the input lookup first like below and retrieved the missing dataset names only. and it worked .&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup data.csv | fields "dataset_name" | search NOT [search index = asvdataintegration source=piedpiper sts_asvdataintegration_symphony_lambda_clewriter_events | search event.proc_stat_cd = "SCSS" OR event.proc_stat_cd = "FAIL"  AND event.s3_location = "*"s3://cof-*/"*"/lake/depositescrow*"*"  AND "event.module_name"=EMR  | rename event.regrd_dataset_nm as dataset_name | table dataset_name | format]&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 03 Sep 2021 09:25:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-Display-Values-not-found-in-search-results-but-is-in/m-p/565762#M197138</guid>
      <dc:creator>nandhiniG</dc:creator>
      <dc:date>2021-09-03T09:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Display Values not found in search results but is in lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-Display-Values-not-found-in-search-results-but-is-in/m-p/608447#M211551</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223921"&gt;@nandhiniG&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for sharing your inputs and the SPL that helped you get the results which are present in lookup table and not in search results.&lt;/P&gt;&lt;P&gt;I also have a similar usecase, and I tried following your approach, but I am still getting the outputs which are present in lookup table and in search results.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|inputlookup table.csv |fields index, host |search NOT [search index="xxx" |rename orig_* AS * |table index, host |format]&lt;/LI-CODE&gt;&lt;P&gt;Thus, please help by sharing your inputs to correct the SPL.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 12:56:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-Display-Values-not-found-in-search-results-but-is-in/m-p/608447#M211551</guid>
      <dc:creator>Taruchit</dc:creator>
      <dc:date>2022-08-05T12:56:07Z</dc:date>
    </item>
  </channel>
</rss>

