<?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: How do I Search a Multi-Value Field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-Search-a-Multi-Value-Field/m-p/660563#M228072</link>
    <description>&lt;P&gt;To work with multi-value fields, look to the &lt;FONT face="courier new,courier"&gt;mv*&lt;/FONT&gt; functions.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval match=if(isnotnull(mvfind(DNS_Matched, "(-admin|-mgt|-vip)")),1, 0)&lt;/LI-CODE&gt;&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;mvfind&lt;/FONT&gt; function uses a regular expression to search an MV field for certain text.&amp;nbsp; It returns NULL if the value is not found or an index into the field if it is found.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2023 17:00:58 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-10-12T17:00:58Z</dc:date>
    <item>
      <title>How do I Search a Multi-Value Field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-Search-a-Multi-Value-Field/m-p/660561#M228057</link>
      <description>&lt;P&gt;I need to search a field called DNS_Matched, that has multi-value fields, for events that have one or more values that meet the criteria of the value ending with -admin, -vip, -mgt, or does not meet any of those three. How can I do that?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Example&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%" height="25px"&gt;DNS_Matched&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="69px"&gt;host1&lt;BR /&gt;host1-vip&lt;BR /&gt;host1-mgt&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="25px"&gt;host2&amp;nbsp;&lt;BR /&gt;host2-admin&lt;BR /&gt;host2-mgmt&lt;BR /&gt;host2-vip&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 12 Oct 2023 16:30:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-Search-a-Multi-Value-Field/m-p/660561#M228057</guid>
      <dc:creator>atebysandwich</dc:creator>
      <dc:date>2023-10-12T16:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Search a Multi-Value Field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-Search-a-Multi-Value-Field/m-p/660563#M228072</link>
      <description>&lt;P&gt;To work with multi-value fields, look to the &lt;FONT face="courier new,courier"&gt;mv*&lt;/FONT&gt; functions.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval match=if(isnotnull(mvfind(DNS_Matched, "(-admin|-mgt|-vip)")),1, 0)&lt;/LI-CODE&gt;&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;mvfind&lt;/FONT&gt; function uses a regular expression to search an MV field for certain text.&amp;nbsp; It returns NULL if the value is not found or an index into the field if it is found.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 17:00:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-Search-a-Multi-Value-Field/m-p/660563#M228072</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-10-12T17:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Search a Multi-Value Field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-Search-a-Multi-Value-Field/m-p/660580#M228077</link>
      <description>&lt;P&gt;This helped a lot. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 19:03:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-Search-a-Multi-Value-Field/m-p/660580#M228077</guid>
      <dc:creator>atebysandwich</dc:creator>
      <dc:date>2023-10-12T19:03:06Z</dc:date>
    </item>
  </channel>
</rss>

