<?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: Search for events that have only specific multiple values in a field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-for-events-that-have-only-specific-multiple-values-in-a/m-p/745140#M241365</link>
    <description>&lt;P&gt;That doesn't sound right - are you referring to a multi-value field?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| fields - _time
| eval value=split("ABC","")
| search value=A AND value=C&lt;/LI-CODE&gt;&lt;P&gt;This search above will find a result for A and C, but if you change it to A and D it does not find results.&lt;/P&gt;&lt;P&gt;Can you give an example of your results in the OR case&lt;/P&gt;</description>
    <pubDate>Tue, 29 Apr 2025 03:58:16 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2025-04-29T03:58:16Z</dc:date>
    <item>
      <title>Search for events that have only specific multiple values in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-events-that-have-only-specific-multiple-values-in-a/m-p/745137#M241364</link>
      <description>&lt;P&gt;Hey all - I have a need to search for events in Splunk that contain two specific values in one field. I want the results to return only those events that have both values in them. I'm trying to use this:&lt;BR /&gt;&lt;BR /&gt;(my_field_name="value1" AND my_field_name="value2")&lt;BR /&gt;&lt;BR /&gt;This still returns results that have either value1, or value2, not events that contain both. How would I query for results that contain only both values, not individual values?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 02:53:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-events-that-have-only-specific-multiple-values-in-a/m-p/745137#M241364</guid>
      <dc:creator>RowdyRodney</dc:creator>
      <dc:date>2025-04-29T02:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Search for events that have only specific multiple values in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-events-that-have-only-specific-multiple-values-in-a/m-p/745140#M241365</link>
      <description>&lt;P&gt;That doesn't sound right - are you referring to a multi-value field?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| fields - _time
| eval value=split("ABC","")
| search value=A AND value=C&lt;/LI-CODE&gt;&lt;P&gt;This search above will find a result for A and C, but if you change it to A and D it does not find results.&lt;/P&gt;&lt;P&gt;Can you give an example of your results in the OR case&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 03:58:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-events-that-have-only-specific-multiple-values-in-a/m-p/745140#M241365</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2025-04-29T03:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Search for events that have only specific multiple values in a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-events-that-have-only-specific-multiple-values-in-a/m-p/745159#M241373</link>
      <description>&lt;P&gt;If you want for value to contain only those two values, you could modify&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;'s solution like so&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| fields - _time
| eval value=split("ABC","")
| where mvcount(value)=2
| search value=A AND value=C&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 29 Apr 2025 07:09:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-events-that-have-only-specific-multiple-values-in-a/m-p/745159#M241373</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-04-29T07:09:50Z</dc:date>
    </item>
  </channel>
</rss>

