<?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 How to check for search string/data present in csv lookuptable and result present or not in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-for-search-string-data-present-in-csv-lookuptable/m-p/584516#M203555</link>
    <description>&lt;P&gt;I am looking for something like this as below&lt;/P&gt;&lt;P&gt;I have a seach string = rubi&lt;BR /&gt;and want to check this string presence in a lookuptable = metals.csv&lt;/P&gt;&lt;P&gt;Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; region&lt;BR /&gt;rubi&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12122021&amp;nbsp; &amp;nbsp; &amp;nbsp;abc&lt;BR /&gt;diamond&amp;nbsp; 12122022&amp;nbsp; &amp;nbsp; &amp;nbsp;def&lt;BR /&gt;platinum&amp;nbsp; &amp;nbsp;12122023&amp;nbsp; &amp;nbsp; ghi&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;what would be my splunk query to shows the presence of my search string with lookuptable.&lt;/P&gt;&lt;P&gt;I want the result to be something like below&lt;/P&gt;&lt;P&gt;Since in above example rubi is present in metals.csv my result table should look like with an extra column Present and status as Yes&lt;/P&gt;&lt;P&gt;Name&amp;nbsp; Present&lt;BR /&gt;rubi&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Yes&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If not present say example searchstring=copper and is not present in metals.csv then output table should be&lt;BR /&gt;Name&amp;nbsp; &amp;nbsp; &amp;nbsp; Present&lt;BR /&gt;copper&amp;nbsp; &amp;nbsp; &amp;nbsp; No&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Note: I am giving the seachstring in text box of dashboard and want a result table as above&lt;/P&gt;</description>
    <pubDate>Thu, 10 Feb 2022 11:30:08 GMT</pubDate>
    <dc:creator>akshayinnamuri</dc:creator>
    <dc:date>2022-02-10T11:30:08Z</dc:date>
    <item>
      <title>How to check for search string/data present in csv lookuptable and result present or not</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-for-search-string-data-present-in-csv-lookuptable/m-p/584516#M203555</link>
      <description>&lt;P&gt;I am looking for something like this as below&lt;/P&gt;&lt;P&gt;I have a seach string = rubi&lt;BR /&gt;and want to check this string presence in a lookuptable = metals.csv&lt;/P&gt;&lt;P&gt;Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; region&lt;BR /&gt;rubi&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12122021&amp;nbsp; &amp;nbsp; &amp;nbsp;abc&lt;BR /&gt;diamond&amp;nbsp; 12122022&amp;nbsp; &amp;nbsp; &amp;nbsp;def&lt;BR /&gt;platinum&amp;nbsp; &amp;nbsp;12122023&amp;nbsp; &amp;nbsp; ghi&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;what would be my splunk query to shows the presence of my search string with lookuptable.&lt;/P&gt;&lt;P&gt;I want the result to be something like below&lt;/P&gt;&lt;P&gt;Since in above example rubi is present in metals.csv my result table should look like with an extra column Present and status as Yes&lt;/P&gt;&lt;P&gt;Name&amp;nbsp; Present&lt;BR /&gt;rubi&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Yes&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If not present say example searchstring=copper and is not present in metals.csv then output table should be&lt;BR /&gt;Name&amp;nbsp; &amp;nbsp; &amp;nbsp; Present&lt;BR /&gt;copper&amp;nbsp; &amp;nbsp; &amp;nbsp; No&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Note: I am giving the seachstring in text box of dashboard and want a result table as above&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 11:30:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-for-search-string-data-present-in-csv-lookuptable/m-p/584516#M203555</guid>
      <dc:creator>akshayinnamuri</dc:creator>
      <dc:date>2022-02-10T11:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to check for search string/data present in csv lookuptable and result present or not</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-for-search-string-data-present-in-csv-lookuptable/m-p/584523#M203560</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval Name="rubi"
| lookup metals.csv
| eval Present=if(isnull(region),"No","Yes")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 10 Feb 2022 12:48:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-for-search-string-data-present-in-csv-lookuptable/m-p/584523#M203560</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-10T12:48:12Z</dc:date>
    </item>
  </channel>
</rss>

