<?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: I have a dashboard with too many searches. How to best split these searches using a base search and post-process searches? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/I-have-a-dashboard-with-too-many-searches-How-to-best-split/m-p/335674#M99698</link>
    <description>&lt;P&gt;That's exactly what I was looking for!  So close yet still so far. Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 06 Mar 2017 13:58:54 GMT</pubDate>
    <dc:creator>kmaron</dc:creator>
    <dc:date>2017-03-06T13:58:54Z</dc:date>
    <item>
      <title>I have a dashboard with too many searches. How to best split these searches using a base search and post-process searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-have-a-dashboard-with-too-many-searches-How-to-best-split/m-p/335671#M99695</link>
      <description>&lt;P&gt;I have a dashboard that has way too many searches on it so I was trying to split it up using a base search and the post-process searches. However I'm not having any luck and I'm ready to throw things so I'm hoping someone here can help. &lt;/P&gt;

&lt;P&gt;I have 10 different queries that look like this - only for each one the %TABLENAME% is different to give me a separate search per table.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ecm sourcetype="sql" source="%TABLENAME%" QUEUE_DEPTH_PROD 
 | fields _time QUEUE_DEPTH_PROD
 | eval mytimes=mvappend(_time,relative_time(_time,"-10m"),relative_time(_time,"+10m"))
 | mvexpand mytimes
 | search mytimes &amp;lt; now()
 | eval _time=mytimes
 | timechart  avg(QUEUE_DEPTH_PROD) span=15m
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried putting the base search and timechart  without the tablename:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ecm sourcetype="sql" QUEUE_DEPTH_PROD | timechart  avg(QUEUE_DEPTH_PROD) span=15m
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And then have just the source in the post-process search but that doesn't seem to work either or I'm doing it wrong. &lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated. &lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 21:31:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-have-a-dashboard-with-too-many-searches-How-to-best-split/m-p/335671#M99695</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2017-03-03T21:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: I have a dashboard with too many searches. How to best split these searches using a base search and post-process searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-have-a-dashboard-with-too-many-searches-How-to-best-split/m-p/335672#M99696</link>
      <description>&lt;P&gt;You can take advantage of Post Processing when you use transforming or statistical functions in your base search. You should not be trying to send raw data through Post Process.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/Savedsearches#Post-process_limitations"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/Savedsearches#Post-process_limitations&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You can create a base search with combination all 10 sources in the single base search and perform sitimechart. Finally you can created 10 base searches one for each Panel. However, you would need to test the performance of your dahsboard with and without post-processing. As it has been mentioned in the document sometimes you are better of running same search multiple time.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ecm sourcetype=sql source=source1 source=source2 ...  source=source10 
| &amp;lt;your remainining search&amp;gt;
| sitimechart span=15m avg(QUEUE_DEPTH_PROD) by source
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Mar 2017 22:54:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-have-a-dashboard-with-too-many-searches-How-to-best-split/m-p/335672#M99696</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-03T22:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: I have a dashboard with too many searches. How to best split these searches using a base search and post-process searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-have-a-dashboard-with-too-many-searches-How-to-best-split/m-p/335673#M99697</link>
      <description>&lt;P&gt;Your basesearch should be&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ecm sourcetype="sql" QUEUE_DEPTH_PROD 
| stats count by _time QUEUE_DEPTH_PROD  TABLENAME
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then your postprocess searches should be something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;base-search&amp;gt;
    | search TABLENAME="myfirstTable"
    |eval mytimes=mvappend(_time,relative_time(_time,"-10m"),relative_time(_time,"+10m"))
    | mvexpand mytimes
    | search mytimes &amp;lt; now()
    | eval _time=mytimes
    | timechart  avg(QUEUE_DEPTH_PROD) span=15m
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Mar 2017 23:17:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-have-a-dashboard-with-too-many-searches-How-to-best-split/m-p/335673#M99697</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2017-03-03T23:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: I have a dashboard with too many searches. How to best split these searches using a base search and post-process searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-have-a-dashboard-with-too-many-searches-How-to-best-split/m-p/335674#M99698</link>
      <description>&lt;P&gt;That's exactly what I was looking for!  So close yet still so far. Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 13:58:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-have-a-dashboard-with-too-many-searches-How-to-best-split/m-p/335674#M99698</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2017-03-06T13:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: I have a dashboard with too many searches. How to best split these searches using a base search and post-process searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-have-a-dashboard-with-too-many-searches-How-to-best-split/m-p/335675#M99699</link>
      <description>&lt;P&gt;And how do we decide which part has to be put in the base and the post processing search..&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 07:39:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-have-a-dashboard-with-too-many-searches-How-to-best-split/m-p/335675#M99699</guid>
      <dc:creator>AshimaE</dc:creator>
      <dc:date>2017-06-27T07:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: I have a dashboard with too many searches. How to best split these searches using a base search and post-process searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-have-a-dashboard-with-too-many-searches-How-to-best-split/m-p/335676#M99700</link>
      <description>&lt;P&gt;Why is the stats count part put in the Base search in the answer.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 07:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-have-a-dashboard-with-too-many-searches-How-to-best-split/m-p/335676#M99700</guid>
      <dc:creator>AshimaE</dc:creator>
      <dc:date>2017-06-27T07:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: I have a dashboard with too many searches. How to best split these searches using a base search and post-process searches?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-have-a-dashboard-with-too-many-searches-How-to-best-split/m-p/335677#M99701</link>
      <description>&lt;P&gt;stats  is very efficient and the base-search will reduce the dataset from millions to handful. It is all about efficiency . You can extend the fields to be just enough to satisfy your "pre-process" searches&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 10:33:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-have-a-dashboard-with-too-many-searches-How-to-best-split/m-p/335677#M99701</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2017-06-27T10:33:24Z</dc:date>
    </item>
  </channel>
</rss>

