<?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: Use the result from the subsearch to a main search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Use-the-result-from-the-subsearch-to-a-main-search/m-p/557671#M158378</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Try adding the &lt;STRONG&gt;| format&lt;/STRONG&gt;&amp;nbsp;command in the subsearch&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/FORMAT" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/FORMAT&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This command takes the results of a&amp;nbsp;&lt;STRONG&gt;&lt;A title="Splexicon:Subsearch" href="https://docs.splunk.com/Splexicon:Subsearch" target="_blank" rel="noopener noreferrer"&gt;subsearch&lt;/A&gt;&lt;/STRONG&gt;, formats the results into a single result and places that result into a new field called&amp;nbsp;search.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=ind1&lt;BR /&gt;[search sttring 1&lt;BR /&gt;| table correlationId&lt;BR /&gt;| format]&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jun 2021 19:50:34 GMT</pubDate>
    <dc:creator>swong_splunk</dc:creator>
    <dc:date>2021-06-29T19:50:34Z</dc:date>
    <item>
      <title>Use the result from the subsearch to a main search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-the-result-from-the-subsearch-to-a-main-search/m-p/557669#M158377</link>
      <description>&lt;P&gt;In one of the search strings, I have an event from which i extract the correlation ids and in turn want to search through there correlation ids to get an event which has a text in from of the correlation id (eg: abc: &amp;lt;correlation_Id&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I try&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=ind1 [search sttring 1 | table correlationId], the log which has the string of "abc: &amp;lt;correlation_Id&amp;gt;" is not coming back. But if i search for one of the&amp;nbsp;correlationIds from the table I get that event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure what I'm doing wrong here. That event I'm trying to get has a string "abc" in front and I feel like that's causing the results to not come back.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 19:38:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-the-result-from-the-subsearch-to-a-main-search/m-p/557669#M158377</guid>
      <dc:creator>thenormalone</dc:creator>
      <dc:date>2021-06-29T19:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Use the result from the subsearch to a main search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-the-result-from-the-subsearch-to-a-main-search/m-p/557671#M158378</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Try adding the &lt;STRONG&gt;| format&lt;/STRONG&gt;&amp;nbsp;command in the subsearch&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/FORMAT" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/FORMAT&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This command takes the results of a&amp;nbsp;&lt;STRONG&gt;&lt;A title="Splexicon:Subsearch" href="https://docs.splunk.com/Splexicon:Subsearch" target="_blank" rel="noopener noreferrer"&gt;subsearch&lt;/A&gt;&lt;/STRONG&gt;, formats the results into a single result and places that result into a new field called&amp;nbsp;search.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=ind1&lt;BR /&gt;[search sttring 1&lt;BR /&gt;| table correlationId&lt;BR /&gt;| format]&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 19:50:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-the-result-from-the-subsearch-to-a-main-search/m-p/557671#M158378</guid>
      <dc:creator>swong_splunk</dc:creator>
      <dc:date>2021-06-29T19:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Use the result from the subsearch to a main search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-the-result-from-the-subsearch-to-a-main-search/m-p/557683#M158382</link>
      <description>&lt;P&gt;well if I'm not mistaken that gives me&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;index=ind1 "correlation-id=&amp;lt;correlation_Id&amp;gt;"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so it still isn't giving me that event which has the format "abc: &amp;lt;correlation_Id&amp;gt;"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 20:16:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-the-result-from-the-subsearch-to-a-main-search/m-p/557683#M158382</guid>
      <dc:creator>thenormalone</dc:creator>
      <dc:date>2021-06-29T20:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Use the result from the subsearch to a main search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-the-result-from-the-subsearch-to-a-main-search/m-p/557692#M158388</link>
      <description>&lt;P&gt;You should add rename correlation_id as search into sub search e.g.&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Can-a-subsearch-return-only-the-value-without-the-fieldname/m-p/11212" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/Can-a-subsearch-return-only-the-value-without-the-fieldname/m-p/11212&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also it’s more efficient to replace table with fields as then this search will run on indexers instead of search head.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 20:45:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-the-result-from-the-subsearch-to-a-main-search/m-p/557692#M158388</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-06-29T20:45:03Z</dc:date>
    </item>
  </channel>
</rss>

