<?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: Rename as Search vs Rename as Query? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Rename-as-Search-vs-Rename-as-Query/m-p/480749#M134699</link>
    <description>&lt;P&gt;Right, it really doesn't matter what the new field name's are...rename does not filter events.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Sep 2019 14:30:27 GMT</pubDate>
    <dc:creator>solarboyz1</dc:creator>
    <dc:date>2019-09-13T14:30:27Z</dc:date>
    <item>
      <title>Rename as Search vs Rename as Query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-as-Search-vs-Rename-as-Query/m-p/480746#M134696</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;
I need a little clarification as the related posts I have found are confusing.&lt;/P&gt;

&lt;P&gt;I inherited a lot of reports from a previous admin, where a subsearch contains a field renamed as search to pass the field value to the next phase of the overall query...&lt;/P&gt;

&lt;P&gt;Does renaming as search only give you a single result (the last or latest result) in the next phase of the query?  Does it limit results?&lt;/P&gt;

&lt;P&gt;Does rename as query give you all the results  in the next phase of the query?&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 13:22:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-as-Search-vs-Rename-as-Query/m-p/480746#M134696</guid>
      <dc:creator>Glasses</dc:creator>
      <dc:date>2019-09-13T13:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rename as Search vs Rename as Query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-as-Search-vs-Rename-as-Query/m-p/480747#M134697</link>
      <description>&lt;P&gt;&lt;EM&gt;a subsearch contains a field renamed as search to pass the field value to the next phase of the overall query&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search [ search | rename field as search_field ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;EM&gt;Does renaming as search only give you a single result (the last or latest result) in the next phase of the query? Does it limit results?&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;The subsearch should pass ALL fields found as arguments, there should be an additional limiting search command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search [ search | rename field as search_field | fields search_field  ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;EM&gt;Does rename as query give you all the results in the next phase of the query?&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Correct, a rename should not filter any results&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 14:13:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-as-Search-vs-Rename-as-Query/m-p/480747#M134697</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2019-09-13T14:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Rename as Search vs Rename as Query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-as-Search-vs-Rename-as-Query/m-p/480748#M134698</link>
      <description>&lt;P&gt;Thank you for the reply.&lt;/P&gt;

&lt;P&gt;Sorry, I should clarify...  this is what I meant... &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search ... [search ... | rename &amp;lt;somefield&amp;gt; as search]

vs.

search ... [search ... | rename &amp;lt;somefield&amp;gt; as query]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Sep 2019 14:24:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-as-Search-vs-Rename-as-Query/m-p/480748#M134698</guid>
      <dc:creator>Glasses</dc:creator>
      <dc:date>2019-09-13T14:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rename as Search vs Rename as Query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-as-Search-vs-Rename-as-Query/m-p/480749#M134699</link>
      <description>&lt;P&gt;Right, it really doesn't matter what the new field name's are...rename does not filter events.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 14:30:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-as-Search-vs-Rename-as-Query/m-p/480749#M134699</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2019-09-13T14:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rename as Search vs Rename as Query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rename-as-Search-vs-Rename-as-Query/m-p/480750#M134700</link>
      <description>&lt;P&gt;we might not be thinking about the same thing...&lt;/P&gt;

&lt;P&gt;I was referring to  the topic in this post...&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/7472/subsearch-fields-query-search-how-do-i-know-which-to-use.html"&gt;https://answers.splunk.com/answers/7472/subsearch-fields-query-search-how-do-i-know-which-to-use.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 15:00:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rename-as-Search-vs-Rename-as-Query/m-p/480750#M134700</guid>
      <dc:creator>Glasses</dc:creator>
      <dc:date>2019-09-13T15:00:12Z</dc:date>
    </item>
  </channel>
</rss>

