<?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: Run SPL command once and store result to access faster in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472955#M133125</link>
    <description>&lt;P&gt;You can use summary indexing. Analyze large data and write output to summary index. Use summary index in the report so that it runs faster on less amount of data when compared to raw data.&lt;/P&gt;

&lt;P&gt;For more info check this:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Usesummaryindexing"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Usesummaryindexing&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 16 Feb 2020 18:02:16 GMT</pubDate>
    <dc:creator>manjunathmeti</dc:creator>
    <dc:date>2020-02-16T18:02:16Z</dc:date>
    <item>
      <title>Run SPL command once and store result to access faster</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472953#M133123</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
How can I Run SPL command once and store result to access result faster next time.&lt;BR /&gt;
for e.g. I need to analyses large logs every night and in next day access to "save search" and "dashboards"  quickly without waiting to query on data when open "save search" and "dashboards".&lt;BR /&gt;
I mean every night Splunk after analyze logs run queries on that exist on "save search" and "dashboards" and store output, so next day when I open  "save search" and "dashboards" Splunk load result quickly and display them.&lt;/P&gt;

&lt;P&gt;Any recommendation?&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 05:52:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472953#M133123</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2020-02-16T05:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Run SPL command once and store result to access faster</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472954#M133124</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/Report/Createandeditreports"&gt;Createandeditreports&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;check this.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 13:36:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472954#M133124</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-16T13:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Run SPL command once and store result to access faster</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472955#M133125</link>
      <description>&lt;P&gt;You can use summary indexing. Analyze large data and write output to summary index. Use summary index in the report so that it runs faster on less amount of data when compared to raw data.&lt;/P&gt;

&lt;P&gt;For more info check this:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Usesummaryindexing"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Usesummaryindexing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 18:02:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472955#M133125</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-02-16T18:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Run SPL command once and store result to access faster</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472956#M133126</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
I try commands (sichart, sitimechart, sistats, sitop, and sirare) But not work.&lt;/P&gt;

&lt;P&gt;Below is my SPL and I visual it with “single value“ pivot:&lt;BR /&gt;
source=index | search error* OR fail*&lt;/P&gt;

&lt;P&gt;For e.g. i try this&lt;BR /&gt;
source=index | sistats search error* OR fail*&lt;BR /&gt;
source=index | collect search error* OR fail*&lt;/P&gt;

&lt;P&gt;Any idea?&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 18:43:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472956#M133126</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2020-02-16T18:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Run SPL command once and store result to access faster</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472957#M133127</link>
      <description>&lt;P&gt;first search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=index error* OR fail* | collect index=error_index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;second search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=error_index as_you_like
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you create summary index, The next time you search there, it will be faster.&lt;/P&gt;

&lt;P&gt;I think a report is enough for your usage.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 20:03:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472957#M133127</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-16T20:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Run SPL command once and store result to access faster</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472958#M133128</link>
      <description>&lt;P&gt;Save your job as a report, run it based on your schedule and use the loadjob command.&lt;/P&gt;

&lt;P&gt;| loadjob savedsearch="admin:search:Savedsearch"&lt;/P&gt;

&lt;P&gt;when running loadjob on scheduled report, only latest result will be shown.&lt;/P&gt;

&lt;P&gt;You can additionally use these as a base query to run other queries on if you are using multiple transformative commands on the same dataset.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Feb 2020 20:48:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472958#M133128</guid>
      <dc:creator>martinpu</dc:creator>
      <dc:date>2020-02-16T20:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Run SPL command once and store result to access faster</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472959#M133129</link>
      <description>&lt;P&gt;Still not work,&lt;BR /&gt;
 |search error* OR fail* |  loadjob savedsearch="admin:search:Savedsearch"&lt;/P&gt;

&lt;P&gt;What is the last part of command “admin:search:Savedsearch“?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 01:56:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472959#M133129</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2020-02-17T01:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Run SPL command once and store result to access faster</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472960#M133130</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| loadjob savedsearch="YourUserID:App:SavedSearchname"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Loadjob must be the first line.&lt;/P&gt;

&lt;P&gt;Why are you  using: &lt;BR /&gt;
    |search error* OR fail*  ?&lt;/P&gt;

&lt;P&gt;You can also try     &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=yourindex 
| rex "(?&amp;lt;errorOrFail&amp;gt;error|fail)"
|eval errorOrFail=if(isnull(errorOrFail), "False","True")
| search errorOrFail="True"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or try with&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=yourindex error* OR fail*  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;see if you can use sourcetype/index or extract some statistical data. I think you need to optimize your query, use index and zero-in on the data that you need.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 17:21:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472960#M133130</guid>
      <dc:creator>martinpu</dc:creator>
      <dc:date>2020-02-17T17:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Run SPL command once and store result to access faster</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472961#M133131</link>
      <description>&lt;OL&gt;
&lt;LI&gt;Run SPL command : ....your spl ... | outputlookup nnn.csv&lt;/LI&gt;
&lt;LI&gt;dashboard:  | inputlookup nnn.csv&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 18 Feb 2020 09:13:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472961#M133131</guid>
      <dc:creator>hc_joycechen</dc:creator>
      <dc:date>2020-02-18T09:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Run SPL command once and store result to access faster</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472962#M133132</link>
      <description>&lt;P&gt;1-First command create file? Where it will be atore?&lt;BR /&gt;
2-load file on dashboard? &lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 15:41:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472962#M133132</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2020-02-18T15:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Run SPL command once and store result to access faster</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472963#M133133</link>
      <description>&lt;P&gt;1-First command create file? Where it will be atore?&lt;BR /&gt;
| makeresults &lt;BR /&gt;
| eval aa="1", bb="2", cc="3"&lt;BR /&gt;
| outputlookup nnn.csv&lt;/P&gt;

&lt;P&gt;file : /opt/splunk/etc/apps/your_app/lookups&lt;/P&gt;

&lt;P&gt;2-load file on dashboard?&lt;/P&gt;

&lt;P&gt;Sample&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel&amp;gt;
  &amp;lt;table&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;| inputlookup nnn.csv&amp;lt;/query&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="count"&amp;gt;30&amp;lt;/option&amp;gt;
    &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
    &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
  &amp;lt;/table&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Feb 2020 07:02:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Run-SPL-command-once-and-store-result-to-access-faster/m-p/472963#M133133</guid>
      <dc:creator>hc_joycechen</dc:creator>
      <dc:date>2020-02-19T07:02:18Z</dc:date>
    </item>
  </channel>
</rss>

