<?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: Can you help me fix my Splunk search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-fix-my-Splunk-search/m-p/665754#M228414</link>
    <description>&lt;UL&gt;&lt;LI&gt;Hi, I am not sure of how the two where commands are working in your SPL.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;but, the mvindex second argument must be a "&lt;SPAN&gt;number".&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mvindex(&amp;lt;mv&amp;gt;, &amp;lt;start&amp;gt;, &amp;lt;end&amp;gt;)&lt;/P&gt;&lt;P&gt;This function returns a subset of the multivalue field using the start and end index values.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Usage.....&lt;/STRONG&gt;&lt;SPAN&gt;The &amp;lt;mv&amp;gt; argument must be a multivalue field. &lt;STRONG&gt;The &amp;lt;start&amp;gt; and &amp;lt;end&amp;gt; indexes must be numbers&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The &amp;lt;mv&amp;gt; and &amp;lt;start&amp;gt; arguments are required. The &amp;lt;end&amp;gt; argument is optional.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SCS/current/SearchReference/MultivalueEvalFunctions" target="_blank"&gt;https://docs.splunk.com/Documentation/SCS/current/SearchReference/MultivalueEvalFunctions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 21 Oct 2023 17:04:28 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2023-10-21T17:04:28Z</dc:date>
    <item>
      <title>Can you help me fix my Splunk search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-fix-my-Splunk-search/m-p/665750#M228412</link>
      <description>&lt;P class="lia-align-left"&gt;I am trying to create an alert that triggers if a user successfully logs in without first having been successfully authenticated via MFA. The query is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="okta" sourcetype="OktaIM2:log" outcome.result=SUCCESS description="User login to Okta" OR description="Authentication of user via MFA"
| transaction maxspan=1h actor.alternateId, src_ip
| where (mvcount(description) == 1)
| where (mvindex(description, "User login to Okta") == 0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I keep getting the error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Error in 'where' command: The arguments to the 'mvindex' function are invalid.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me correct my search and explain what I am doing wrong.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2023 16:44:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-fix-my-Splunk-search/m-p/665750#M228412</guid>
      <dc:creator>olawalePS</dc:creator>
      <dc:date>2023-10-21T16:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me fix my Splunk search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-fix-my-Splunk-search/m-p/665751#M228413</link>
      <description>&lt;P&gt;The second argument to mvindex must be an integer.&amp;nbsp; I think perhaps you want something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where (mvindex(description, mvfind(description,"User login to Okta")) == 0)&lt;/LI-CODE&gt;&lt;P&gt;or, even better&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where (isnotnull(mvfind(description, "User login to Okta")))&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 21 Oct 2023 16:48:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-fix-my-Splunk-search/m-p/665751#M228413</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-10-21T16:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me fix my Splunk search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-fix-my-Splunk-search/m-p/665754#M228414</link>
      <description>&lt;UL&gt;&lt;LI&gt;Hi, I am not sure of how the two where commands are working in your SPL.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;but, the mvindex second argument must be a "&lt;SPAN&gt;number".&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mvindex(&amp;lt;mv&amp;gt;, &amp;lt;start&amp;gt;, &amp;lt;end&amp;gt;)&lt;/P&gt;&lt;P&gt;This function returns a subset of the multivalue field using the start and end index values.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Usage.....&lt;/STRONG&gt;&lt;SPAN&gt;The &amp;lt;mv&amp;gt; argument must be a multivalue field. &lt;STRONG&gt;The &amp;lt;start&amp;gt; and &amp;lt;end&amp;gt; indexes must be numbers&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The &amp;lt;mv&amp;gt; and &amp;lt;start&amp;gt; arguments are required. The &amp;lt;end&amp;gt; argument is optional.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SCS/current/SearchReference/MultivalueEvalFunctions" target="_blank"&gt;https://docs.splunk.com/Documentation/SCS/current/SearchReference/MultivalueEvalFunctions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2023 17:04:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-fix-my-Splunk-search/m-p/665754#M228414</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2023-10-21T17:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me fix my Splunk search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-fix-my-Splunk-search/m-p/666610#M228674</link>
      <description>&lt;P&gt;The first one still threw an error but the second worked fine, thanks&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2023 02:58:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-fix-my-Splunk-search/m-p/666610#M228674</guid>
      <dc:creator>olawalePS</dc:creator>
      <dc:date>2023-10-29T02:58:44Z</dc:date>
    </item>
  </channel>
</rss>

