<?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 subsearch result as fulltext search in outer search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Use-subsearch-result-as-fulltext-search-in-outer-search/m-p/112569#M29573</link>
    <description>&lt;P&gt;Further testing is also strange:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|noop | stats count | eval _raw="*972*" | fields _raw | format
|noop | stats count | eval raw="*972*" | fields raw | format | replace "*raw*" with "*_raw*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;These should both create a field called &lt;CODE&gt;search&lt;/CODE&gt; with value &lt;CODE&gt;( ( _raw="*972*" ) )&lt;/CODE&gt; but they don't.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jul 2015 15:47:43 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-07-10T15:47:43Z</dc:date>
    <item>
      <title>Use subsearch result as fulltext search in outer search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-subsearch-result-as-fulltext-search-in-outer-search/m-p/112567#M29571</link>
      <description>&lt;P&gt;Is it possible to use the result value of a subsearch as a fulltext (or wildcard) search in the outer search. I have a subsearch like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;servertype=abc "some search terms" |&amp;nbsp;fields correlation_id
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and now I want to use the resulting correlation ids to find other entries, but these entries do not have a dedicated correlation_id field, it is just somewhere inside the text, so this is not working&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;servertype=xyz "some other seach terms" [search servertype=abc "some search key" |&amp;nbsp;fields correlation_id]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;because splunk is searching for a correlation_id field, which does not exist.&lt;/P&gt;

&lt;P&gt;This is a very simplified example, but I hope you get my problem.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 07:22:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-subsearch-result-as-fulltext-search-in-outer-search/m-p/112567#M29571</guid>
      <dc:creator>woezelmann</dc:creator>
      <dc:date>2015-07-10T07:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Use subsearch result as fulltext search in outer search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-subsearch-result-as-fulltext-search-in-outer-search/m-p/112568#M29572</link>
      <description>&lt;P&gt;This should work (but performance will be slow)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[servertype=abc "some search terms" | eval _raw = "*" . correlation_id . "*" | fields _raw]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But for some reason it does not and I don't know why!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 13:50:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-subsearch-result-as-fulltext-search-in-outer-search/m-p/112568#M29572</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-10T13:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Use subsearch result as fulltext search in outer search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-subsearch-result-as-fulltext-search-in-outer-search/m-p/112569#M29573</link>
      <description>&lt;P&gt;Further testing is also strange:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|noop | stats count | eval _raw="*972*" | fields _raw | format
|noop | stats count | eval raw="*972*" | fields raw | format | replace "*raw*" with "*_raw*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;These should both create a field called &lt;CODE&gt;search&lt;/CODE&gt; with value &lt;CODE&gt;( ( _raw="*972*" ) )&lt;/CODE&gt; but they don't.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 15:47:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-subsearch-result-as-fulltext-search-in-outer-search/m-p/112569#M29573</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-10T15:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Use subsearch result as fulltext search in outer search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-subsearch-result-as-fulltext-search-in-outer-search/m-p/112570#M29574</link>
      <description>&lt;P&gt;OK, this is funky but it works:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ... | eval raw=_raw | search [search servertype=abc "some search terms" | eval raw= "*" . correlation_id . "*" | fields raw]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jul 2015 20:06:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-subsearch-result-as-fulltext-search-in-outer-search/m-p/112570#M29574</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-10T20:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Use subsearch result as fulltext search in outer search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-subsearch-result-as-fulltext-search-in-outer-search/m-p/112571#M29575</link>
      <description>&lt;P&gt;Great, now it works. Thank you very much!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2015 15:38:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-subsearch-result-as-fulltext-search-in-outer-search/m-p/112571#M29575</guid>
      <dc:creator>woezelmann</dc:creator>
      <dc:date>2015-07-13T15:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Use subsearch result as fulltext search in outer search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-subsearch-result-as-fulltext-search-in-outer-search/m-p/112572#M29576</link>
      <description>&lt;P&gt;Use this: &lt;/P&gt;

&lt;P&gt;servertype=xyz "some other seach terms" [search servertype=abc "some search key" | fields correlation_id | &lt;STRONG&gt;&lt;EM&gt;rename correlation_id as search&lt;/EM&gt;&lt;/STRONG&gt;]&lt;/P&gt;

&lt;P&gt;as stated here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Search/Changetheformatofsubsearchresults" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Search/Changetheformatofsubsearchresults&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:07:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-subsearch-result-as-fulltext-search-in-outer-search/m-p/112572#M29576</guid>
      <dc:creator>marcoscala</dc:creator>
      <dc:date>2020-09-29T09:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Use subsearch result as fulltext search in outer search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-subsearch-result-as-fulltext-search-in-outer-search/m-p/112573#M29577</link>
      <description>&lt;P&gt;I had to use ..... | rename correlation_id as &lt;STRONG&gt;query&lt;/STRONG&gt;]&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 13:11:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-subsearch-result-as-fulltext-search-in-outer-search/m-p/112573#M29577</guid>
      <dc:creator>606866581</dc:creator>
      <dc:date>2018-07-27T13:11:09Z</dc:date>
    </item>
  </channel>
</rss>

