<?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: Help with collect and searching stash files in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-collect-and-searching-stash-files/m-p/73548#M18440</link>
    <description>&lt;P&gt;let me note that your particular query is probably best improved &lt;STRONG&gt;not&lt;/STRONG&gt; by using summary indexing, but instead by using the Splunk index:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=some_index (NAME=values OR NAME=that OR NAME=are OR NAME=needed) (LV=errors OR LV=warning OR LV=critical)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=some_index (NAME=*values* OR NAME=*that* OR NAME=*are* OR NAME=*needed*) (LV=errors OR LV=warning OR LV=critical)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or whatever is appropriate.&lt;/P&gt;

&lt;P&gt;This should run considerably faster than your initial query and is far less complicated than generating a summary. &lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2011 10:12:02 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2011-04-06T10:12:02Z</dc:date>
    <item>
      <title>Help with collect and searching stash files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-collect-and-searching-stash-files/m-p/73545#M18437</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm trying to use collect and the subsequent stash file to save time on a large search query.  The documentation on collect, &lt;A href="http://www.splunk.com/base/Documentation/4.2/SearchReference/Collect" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.2/SearchReference/Collect&lt;/A&gt;, doesn't mention how to then use the stash file.&lt;/P&gt;

&lt;P&gt;For example, this is the search query I'm using:
index=some_index | regex NAME="(values|that|are|needed)" | regex LV = "(errors|warning|critical)" | collect index="saved_results"&lt;/P&gt;

&lt;P&gt;It will then notify that it's saved to the stash file.  How can I run a search on the stash?&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2011 07:11:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-collect-and-searching-stash-files/m-p/73545#M18437</guid>
      <dc:creator>williamsweat</dc:creator>
      <dc:date>2011-04-02T07:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help with collect and searching stash files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-collect-and-searching-stash-files/m-p/73546#M18438</link>
      <description>&lt;P&gt;The data you pipe to the &lt;CODE&gt;collect&lt;/CODE&gt; command will be indexed, automatically, in the index you specify.  In your example, the following search will show your results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=saved_results
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Apr 2011 06:31:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-collect-and-searching-stash-files/m-p/73546#M18438</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-04-06T06:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help with collect and searching stash files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-collect-and-searching-stash-files/m-p/73547#M18439</link>
      <description>&lt;P&gt;Note:  You will need to create the respective index, prior to running the collect command.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2011 06:37:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-collect-and-searching-stash-files/m-p/73547#M18439</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-04-06T06:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with collect and searching stash files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-collect-and-searching-stash-files/m-p/73548#M18440</link>
      <description>&lt;P&gt;let me note that your particular query is probably best improved &lt;STRONG&gt;not&lt;/STRONG&gt; by using summary indexing, but instead by using the Splunk index:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=some_index (NAME=values OR NAME=that OR NAME=are OR NAME=needed) (LV=errors OR LV=warning OR LV=critical)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=some_index (NAME=*values* OR NAME=*that* OR NAME=*are* OR NAME=*needed*) (LV=errors OR LV=warning OR LV=critical)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or whatever is appropriate.&lt;/P&gt;

&lt;P&gt;This should run considerably faster than your initial query and is far less complicated than generating a summary. &lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2011 10:12:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-collect-and-searching-stash-files/m-p/73548#M18440</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-04-06T10:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help with collect and searching stash files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-collect-and-searching-stash-files/m-p/73549#M18441</link>
      <description>&lt;P&gt;Ah, thanks for the tips.  It was for a fairly lengthy saved query (about 4800 chars) with a lot of NOT and OR's.  I was testing to see if creating a summary index would help with performance.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2011 00:17:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-collect-and-searching-stash-files/m-p/73549#M18441</guid>
      <dc:creator>williamsweat</dc:creator>
      <dc:date>2011-04-07T00:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with collect and searching stash files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-collect-and-searching-stash-files/m-p/73550#M18442</link>
      <description>&lt;P&gt;A summary is really only going to help with post-processing, not retrieval, i.e., if you're doing &lt;CODE&gt;stats&lt;/CODE&gt;, &lt;CODE&gt;chart&lt;/CODE&gt; or &lt;CODE&gt;timechart&lt;/CODE&gt; on results.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2011 07:52:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-collect-and-searching-stash-files/m-p/73550#M18442</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-04-07T07:52:19Z</dc:date>
    </item>
  </channel>
</rss>

