<?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 if a value exists in a list of values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-a-value-exists-in-a-list-of-values/m-p/631875#M219478</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm filtering a search to get a result for a specific values by checking it manually this way:&lt;BR /&gt;&lt;BR /&gt;.... | stats sum(val) as vals by value | where &lt;U&gt;value="v1" OR value="v2" OR value="v3"&lt;/U&gt;&lt;BR /&gt;&lt;BR /&gt;I'm wondering if it is possible to do the same by checking if the value exists in a list coming from another index:&lt;BR /&gt;(something like this)&lt;BR /&gt;&lt;BR /&gt;.... | append [search index=another_index&lt;BR /&gt;| stats values(remote_value) as values_list]&lt;BR /&gt;| stats sum(val) as vals by value | where &lt;STRONG&gt;(value in values_list)&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Feb 2023 17:24:14 GMT</pubDate>
    <dc:creator>sdhiaeddine</dc:creator>
    <dc:date>2023-02-22T17:24:14Z</dc:date>
    <item>
      <title>How to check if a value exists in a list of values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-a-value-exists-in-a-list-of-values/m-p/631875#M219478</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm filtering a search to get a result for a specific values by checking it manually this way:&lt;BR /&gt;&lt;BR /&gt;.... | stats sum(val) as vals by value | where &lt;U&gt;value="v1" OR value="v2" OR value="v3"&lt;/U&gt;&lt;BR /&gt;&lt;BR /&gt;I'm wondering if it is possible to do the same by checking if the value exists in a list coming from another index:&lt;BR /&gt;(something like this)&lt;BR /&gt;&lt;BR /&gt;.... | append [search index=another_index&lt;BR /&gt;| stats values(remote_value) as values_list]&lt;BR /&gt;| stats sum(val) as vals by value | where &lt;STRONG&gt;(value in values_list)&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 17:24:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-a-value-exists-in-a-list-of-values/m-p/631875#M219478</guid>
      <dc:creator>sdhiaeddine</dc:creator>
      <dc:date>2023-02-22T17:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a value exists in a list of values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-a-value-exists-in-a-list-of-values/m-p/631887#M219481</link>
      <description>&lt;P&gt;| search values IN("v1",V2",V3")&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Search#Multiple_field-value_comparisons_with_the_IN_operator" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Search#Multiple_field-value_comparisons_with_the_IN_operator&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 16:56:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-a-value-exists-in-a-list-of-values/m-p/631887#M219481</guid>
      <dc:creator>DanielPriceUK</dc:creator>
      <dc:date>2023-02-22T16:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a value exists in a list of values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-a-value-exists-in-a-list-of-values/m-p/631888#M219482</link>
      <description>&lt;P&gt;use subsearches and the format command for the rest if you want to populate the comma seperated list with values from a search&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 16:58:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-a-value-exists-in-a-list-of-values/m-p/631888#M219482</guid>
      <dc:creator>DanielPriceUK</dc:creator>
      <dc:date>2023-02-22T16:58:26Z</dc:date>
    </item>
  </channel>
</rss>

