<?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: Only one value from subsearch being used by parent in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Only-one-value-from-subsearch-being-used-by-parent/m-p/501300#M139589</link>
    <description>&lt;P&gt;Hi 775149,&lt;/P&gt;

&lt;P&gt;give &lt;CODE&gt;format&lt;/CODE&gt; a try &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/format"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/format&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2019 00:38:05 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2019-10-14T00:38:05Z</dc:date>
    <item>
      <title>Only one value from subsearch being used by parent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Only-one-value-from-subsearch-being-used-by-parent/m-p/501299#M139588</link>
      <description>&lt;P&gt;I would like all the results from a field extraction in search "A" to be used as search criteria in search "B". I am using a subsearch for this, however for some reason only the top result for the field in search "A" is being used in search "B", where I want all the values to be used. Individually search A returns multiple results, and I can find these results in search B but not together:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=&amp;lt;my_index&amp;gt; sourcetype=&amp;lt;my_sourcetype&amp;gt; other search foo [search index=&amp;lt;my_other_index&amp;gt; sourcetype=&amp;lt;another_sourcetype&amp;gt; extra search foo | rex field=_raw "some regex(?&amp;lt;my_field&amp;gt;)" | dedup my_field | fields my_field | rename my_field as search ]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;For example my_field should return a bunch of values e.g. 1, 2, 3, 4, 5 but only "1" is being used in the parent search.&lt;/P&gt;

&lt;P&gt;Any ideas why it isn't using all of the values with implicit "OR" between??&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2019 21:29:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Only-one-value-from-subsearch-being-used-by-parent/m-p/501299#M139588</guid>
      <dc:creator>775149</dc:creator>
      <dc:date>2019-10-13T21:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Only one value from subsearch being used by parent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Only-one-value-from-subsearch-being-used-by-parent/m-p/501300#M139589</link>
      <description>&lt;P&gt;Hi 775149,&lt;/P&gt;

&lt;P&gt;give &lt;CODE&gt;format&lt;/CODE&gt; a try &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/format"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/format&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 00:38:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Only-one-value-from-subsearch-being-used-by-parent/m-p/501300#M139589</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2019-10-14T00:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Only one value from subsearch being used by parent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Only-one-value-from-subsearch-being-used-by-parent/m-p/501301#M139590</link>
      <description>&lt;P&gt;Perfect, thanks can't believe it was so simple after all that googling&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;my_index&amp;gt; sourcetype=&amp;lt;my_sourcetype&amp;gt; other search foo [search index=&amp;lt;my_other_index&amp;gt; sourcetype=&amp;lt;another_sourcetype&amp;gt; extra search foo | rex field=_raw "some regex(?&amp;lt;my_field&amp;gt;)" | dedup my_field | fields my_field | rename my_field as search | format ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Oct 2019 03:16:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Only-one-value-from-subsearch-being-used-by-parent/m-p/501301#M139590</guid>
      <dc:creator>775149</dc:creator>
      <dc:date>2019-10-14T03:16:17Z</dc:date>
    </item>
  </channel>
</rss>

