<?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: Substituting values from MV fields? in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Substituting-values-from-MV-fields/m-p/300542#M2647</link>
    <description>&lt;P&gt;It seems a bit much to have to do, but this would work, as long as some value is selected...&lt;/P&gt;

&lt;P&gt;Instead of ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  index=foo my_field_in_the_search=$myfield_in_the_notable$ 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...you could code the search...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=foo [| makeresults |eval my_field_in_the_search=$myfield_in_the_notable$ | makemv delim="," my_field_in_the_search | mvexpand my_field_in_the_search | table my_field_in_the_search | format]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And the &lt;CODE&gt;format&lt;/CODE&gt; command will turn it into ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;((my_field_in_the_search=value1) OR (my_field_in_the_search=value2)....)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 03 Apr 2017 22:01:54 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-04-03T22:01:54Z</dc:date>
    <item>
      <title>Substituting values from MV fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Substituting-values-from-MV-fields/m-p/300541#M2646</link>
      <description>&lt;P&gt;In Enterprise Security, for a drill down action I want to use a field from the notable events, which can have multi valued fields as well.&lt;/P&gt;

&lt;P&gt;In this case, if I simply do my_field_in_the_search=$myfield_in_the_notable$ in the drilldown search, the values are presented as follows:&lt;/P&gt;

&lt;P&gt;my_field_in_the_search=value1,value2,value3 &lt;/P&gt;

&lt;P&gt;It cannot be used like this obviously, I would like to achieve something like&lt;/P&gt;

&lt;P&gt;my_field_in_the_search=value1 OR my_field_in_the_search=value2, etc...&lt;/P&gt;

&lt;P&gt;Is it possible to do this somehow?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:26:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Substituting-values-from-MV-fields/m-p/300541#M2646</guid>
      <dc:creator>szabados</dc:creator>
      <dc:date>2020-09-29T13:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Substituting values from MV fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Substituting-values-from-MV-fields/m-p/300542#M2647</link>
      <description>&lt;P&gt;It seems a bit much to have to do, but this would work, as long as some value is selected...&lt;/P&gt;

&lt;P&gt;Instead of ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  index=foo my_field_in_the_search=$myfield_in_the_notable$ 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...you could code the search...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=foo [| makeresults |eval my_field_in_the_search=$myfield_in_the_notable$ | makemv delim="," my_field_in_the_search | mvexpand my_field_in_the_search | table my_field_in_the_search | format]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And the &lt;CODE&gt;format&lt;/CODE&gt; command will turn it into ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;((my_field_in_the_search=value1) OR (my_field_in_the_search=value2)....)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Apr 2017 22:01:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Substituting-values-from-MV-fields/m-p/300542#M2647</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-04-03T22:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Substituting values from MV fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Substituting-values-from-MV-fields/m-p/300543#M2648</link>
      <description>&lt;P&gt;This is great, thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 11:06:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Substituting-values-from-MV-fields/m-p/300543#M2648</guid>
      <dc:creator>szabados</dc:creator>
      <dc:date>2017-04-06T11:06:46Z</dc:date>
    </item>
  </channel>
</rss>

