<?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: Check to compare value with csv contents in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Check-to-compare-value-with-csv-contents/m-p/370042#M108985</link>
    <description>&lt;P&gt;Thank you!!!!&lt;/P&gt;</description>
    <pubDate>Wed, 21 Mar 2018 14:17:39 GMT</pubDate>
    <dc:creator>davidcraven02</dc:creator>
    <dc:date>2018-03-21T14:17:39Z</dc:date>
    <item>
      <title>Check to compare value with csv contents</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-to-compare-value-with-csv-contents/m-p/370038#M108981</link>
      <description>&lt;P&gt;I'm trying to build a pass/fail check to see if a machine already exists in a csv, as I have a dashboard with a text input where a machine name can be entered.&lt;/P&gt;

&lt;P&gt;Below is my search which displays all the machines from the csv, combining them into one line. &lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4588i935C55B0EF0BA7A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 11:22:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-to-compare-value-with-csv-contents/m-p/370038#M108981</guid>
      <dc:creator>davidcraven02</dc:creator>
      <dc:date>2018-03-21T11:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Check to compare value with csv contents</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-to-compare-value-with-csv-contents/m-p/370039#M108982</link>
      <description>&lt;P&gt;try adding something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval exists=if(like(machine,"%$token$%"),1,0)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;where the &lt;STRONG&gt;token&lt;/STRONG&gt; is the dashboard text input&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 12:11:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-to-compare-value-with-csv-contents/m-p/370039#M108982</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2018-03-21T12:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Check to compare value with csv contents</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-to-compare-value-with-csv-contents/m-p/370040#M108983</link>
      <description>&lt;P&gt;Thank you for this but how would I add a pass or fail to display this?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 12:19:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-to-compare-value-with-csv-contents/m-p/370040#M108983</guid>
      <dc:creator>davidcraven02</dc:creator>
      <dc:date>2018-03-21T12:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Check to compare value with csv contents</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-to-compare-value-with-csv-contents/m-p/370041#M108984</link>
      <description>&lt;P&gt;what is your desired output, exactly?&lt;/P&gt;

&lt;P&gt;do you just want a dashboard panel that says "&lt;STRONG&gt;pass&lt;/STRONG&gt;" or "&lt;STRONG&gt;fail&lt;/STRONG&gt;"? if so, add &lt;CODE&gt;|eval exists=if(like(machine,"%$token$%"),"pass","fail")|table exists&lt;/CODE&gt; and display as a single value, maybe? &lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 12:36:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-to-compare-value-with-csv-contents/m-p/370041#M108984</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2018-03-21T12:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Check to compare value with csv contents</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Check-to-compare-value-with-csv-contents/m-p/370042#M108985</link>
      <description>&lt;P&gt;Thank you!!!!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 14:17:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Check-to-compare-value-with-csv-contents/m-p/370042#M108985</guid>
      <dc:creator>davidcraven02</dc:creator>
      <dc:date>2018-03-21T14:17:39Z</dc:date>
    </item>
  </channel>
</rss>

