<?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: Match lookup field values with Splunk results and display over lookup field value yes/no in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Match-lookup-field-values-with-Splunk-results-and-display-over/m-p/648928#M9599</link>
    <description>&lt;P&gt;Thankyou &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;, it's working as expected. Appreciated your time and support&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Satheesh&lt;/P&gt;</description>
    <pubDate>Sun, 02 Jul 2023 07:19:51 GMT</pubDate>
    <dc:creator>Satheesh_red</dc:creator>
    <dc:date>2023-07-02T07:19:51Z</dc:date>
    <item>
      <title>Match lookup field values with Splunk results and display over lookup field value yes/no</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Match-lookup-field-values-with-Splunk-results-and-display-over/m-p/648584#M9582</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The lookup field values must match the field values returned by the query, and the results must be shown as yes/no depending on whether the match happens. but we are unable to match and are unable to publish all of the information from the lookup fields in the results. Please assist.&lt;/P&gt;&lt;P&gt;My lookup file:-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Satheesh_red_0-1687971460236.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26062iD6094A8EBF853627/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Satheesh_red_0-1687971460236.png" alt="Satheesh_red_0-1687971460236.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My query:-&lt;BR /&gt;index = * sourcetype=* host=* | rex field=source "\/u02\/logs\/patch_(?&amp;lt;domain_name&amp;gt;.+).log"| rex field=_raw max_match=0 "\s(?&amp;lt;Patch_num&amp;gt;[^ ]+);" | dedup host | mvexpand Patch_num | lookup soa_nonprod_Q_patches.csv Patch_num | table domain_name host Patch_num patchlist | eval match_status=if(match(Patch_num,patchlist),"Yes","No")&lt;BR /&gt;| table domain_name host Patch_num match_status&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result output:-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Satheesh_red_1-1687972152290.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26063iF38DCAB00C22615A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Satheesh_red_1-1687972152290.png" alt="Satheesh_red_1-1687972152290.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;18387355 value is missing in the Patch_num output and it should be 'No'&amp;nbsp; in matching_status field as thsi value is not available in the Search result field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Satheesh&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 17:14:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Match-lookup-field-values-with-Splunk-results-and-display-over/m-p/648584#M9582</guid>
      <dc:creator>Satheesh_red</dc:creator>
      <dc:date>2023-06-28T17:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Match lookup field values with Splunk results and display over lookup field value yes/no</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Match-lookup-field-values-with-Splunk-results-and-display-over/m-p/648596#M9583</link>
      <description>&lt;P&gt;Rather than looking up the patch_num, you could set a field to 2, append the .csv with the same field set to 1, and then sum the field by patch_num using eventstats. Where the sum is 1, the patch_num only exists in the csv.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 20:20:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Match-lookup-field-values-with-Splunk-results-and-display-over/m-p/648596#M9583</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-28T20:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Match lookup field values with Splunk results and display over lookup field value yes/no</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Match-lookup-field-values-with-Splunk-results-and-display-over/m-p/648609#M9584</link>
      <description>&lt;P&gt;Thankyou for your reply &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would please share me the sample/reference syntax will be really helpful.&lt;/P&gt;&lt;P&gt;Thankyou for understanding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Satheesh&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 01:50:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Match-lookup-field-values-with-Splunk-results-and-display-over/m-p/648609#M9584</guid>
      <dc:creator>Satheesh_red</dc:creator>
      <dc:date>2023-06-29T01:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Match lookup field values with Splunk results and display over lookup field value yes/no</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Match-lookup-field-values-with-Splunk-results-and-display-over/m-p/648616#M9586</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = * sourcetype=* host=* 
| rex field=source "\/u02\/logs\/patch_(?&amp;lt;domain_name&amp;gt;.+).log"
| rex field=_raw max_match=0 "\s(?&amp;lt;Patch_num&amp;gt;[^ ]+);" 
| dedup host 
| mvexpand Patch_num 
| eval from=2
| append [
  | inputlookup soa_nonprod_Q_patches.csv
  | eval from=1]
| eventstats sum(from) as from by Patch_num
| where isnotnull(domain_name) OR from=1  
| eval match_status=case(from==1,"Not in events",from%2==0,"Not in list",1==1,"In events and list")
| table domain_name host Patch_num match_status&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 29 Jun 2023 05:25:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Match-lookup-field-values-with-Splunk-results-and-display-over/m-p/648616#M9586</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-29T05:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Match lookup field values with Splunk results and display over lookup field value yes/no</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Match-lookup-field-values-with-Splunk-results-and-display-over/m-p/648685#M9590</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While performing more validations, I noticed an issue.&lt;/P&gt;&lt;P&gt;When I put host=* it's not giving accurate results, and if I remove host=* and checking with index=abc and source type=xyz also isn't giving correct results, any reason? The command is operating just fine with just one host every time, meaning each time we have to pass against with one host.&lt;/P&gt;&lt;P&gt;index=abc and source type=xyz host=abc - working fine&lt;/P&gt;&lt;P&gt;index=abc and source type=xyz host=* - not working&lt;/P&gt;&lt;P&gt;index=abc and source type=xyz - not working.&lt;/P&gt;&lt;P&gt;Kindly suggest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Satheesh&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 16:46:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Match-lookup-field-values-with-Splunk-results-and-display-over/m-p/648685#M9590</guid>
      <dc:creator>Satheesh_red</dc:creator>
      <dc:date>2023-06-29T16:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Match lookup field values with Splunk results and display over lookup field value yes/no</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Match-lookup-field-values-with-Splunk-results-and-display-over/m-p/648713#M9591</link>
      <description>&lt;P&gt;Sounds like an issue with your data. You haven't provided enough detail as to why some hosts are not working.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 21:01:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Match-lookup-field-values-with-Splunk-results-and-display-over/m-p/648713#M9591</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-29T21:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Match lookup field values with Splunk results and display over lookup field value yes/no</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Match-lookup-field-values-with-Splunk-results-and-display-over/m-p/648729#M9593</link>
      <description>&lt;P&gt;My apologies &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for, matching case of Patch_num in the events for each and every host that are existed in lookup list.&lt;/P&gt;&lt;P&gt;Ex:- if lookup list is having 25 patch numbers row list and host A Patch_num resulted 24 in the events and host B resulted 25 in the events and host C resulted 20 events and so on for N number of hosts. The output match case should be with list 25 patches for each host.&lt;/P&gt;&lt;P&gt;Domain_name&amp;nbsp; &amp;nbsp;Host&amp;nbsp; patchlist&amp;nbsp; &amp;nbsp;Match_case&lt;/P&gt;&lt;P&gt;&amp;nbsp; xyz1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABC&amp;nbsp; &amp;nbsp;Row 1 num in list&amp;nbsp; Yes/no&lt;/P&gt;&lt;P&gt;xyz1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ABC&amp;nbsp; Row 2 number in list Yes/no&lt;/P&gt;&lt;P&gt;xyzN&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ABC. .....RowN(like this for all the rows in the list,ex 25)&amp;nbsp; &amp;nbsp; &amp;nbsp; Yes/No&lt;/P&gt;&lt;P&gt;xyz2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DEF&amp;nbsp; &amp;nbsp; Row1 num in list&amp;nbsp; Yes/no&lt;/P&gt;&lt;P&gt;xyz2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DEF.&amp;nbsp; &amp;nbsp;Row1. num in list.&amp;nbsp; &amp;nbsp;Yes/no&lt;/P&gt;&lt;P&gt;xyzN&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DEF.&amp;nbsp; &amp;nbsp;RowN.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Yes/No&lt;/P&gt;&lt;P&gt;xyz3.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GHI.&amp;nbsp; &amp;nbsp;Row1 num in list.&amp;nbsp; &amp;nbsp;Yes/No&lt;/P&gt;&lt;P&gt;xyz3.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GHI.&amp;nbsp; &amp;nbsp;Row2 num in list Yes/No&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like this, Yes/No match case with Patch_num are available in the events for each host.&lt;/P&gt;&lt;P&gt;Each host should be having some list of patch numbers and available in Patch_num events filled.&lt;/P&gt;&lt;P&gt;Hope this explanation helps, please let me know if required additional details.&lt;/P&gt;&lt;P&gt;Thankyou for helping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satheesh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 02:01:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Match-lookup-field-values-with-Splunk-results-and-display-over/m-p/648729#M9593</guid>
      <dc:creator>Satheesh_red</dc:creator>
      <dc:date>2023-06-30T02:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Match lookup field values with Splunk results and display over lookup field value yes/no</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Match-lookup-field-values-with-Splunk-results-and-display-over/m-p/648732#M9595</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope below screenshot looks more helpful for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Satheesh_red_0-1688099311326.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26080i9FB0E5676F8C6072/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Satheesh_red_0-1688099311326.png" alt="Satheesh_red_0-1688099311326.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Satheesh&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 04:28:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Match-lookup-field-values-with-Splunk-results-and-display-over/m-p/648732#M9595</guid>
      <dc:creator>Satheesh_red</dc:creator>
      <dc:date>2023-06-30T04:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Match lookup field values with Splunk results and display over lookup field value yes/no</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Match-lookup-field-values-with-Splunk-results-and-display-over/m-p/648863#M9598</link>
      <description>&lt;LI-CODE lang="markup"&gt;index = * sourcetype=* host=* 
| rex field=source "\/u02\/logs\/patch_(?&amp;lt;domain_name&amp;gt;.+).log"
| rex field=_raw max_match=0 "\s(?&amp;lt;Patch_num&amp;gt;[^ ]+);" 
| dedup host 
| append [
  | inputlookup soa_nonprod_Q_patches.csv]
| eventstats values(Patch_num) as Patch_list
| where isnotnull(host)
| mvexpand Patch_list
| eval match_status=if(isnotnull(mvfind(Patch_num, Patch_list)), "Yes", "No")
| table domain_name host Patch_list match_status&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 01 Jul 2023 07:37:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Match-lookup-field-values-with-Splunk-results-and-display-over/m-p/648863#M9598</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-01T07:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Match lookup field values with Splunk results and display over lookup field value yes/no</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Match-lookup-field-values-with-Splunk-results-and-display-over/m-p/648928#M9599</link>
      <description>&lt;P&gt;Thankyou &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;, it's working as expected. Appreciated your time and support&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Satheesh&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 07:19:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Match-lookup-field-values-with-Splunk-results-and-display-over/m-p/648928#M9599</guid>
      <dc:creator>Satheesh_red</dc:creator>
      <dc:date>2023-07-02T07:19:51Z</dc:date>
    </item>
  </channel>
</rss>

