<?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: How do you build a table from multiple reports/searches? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/How-do-you-build-a-table-from-multiple-reports-searches/m-p/437526#M7106</link>
    <description>&lt;P&gt;you can create a dashboard using the query &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|savedsearch  &amp;lt;searchname1&amp;gt; |eval report="name1"| append[|savedsearch &amp;lt;searchname2&amp;gt;|eval report="name2"]|append[|savedsearch &amp;lt;searchname3&amp;gt;|eval report="name3"]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and so on till 8th search.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Dec 2018 20:20:31 GMT</pubDate>
    <dc:creator>Vijeta</dc:creator>
    <dc:date>2018-12-14T20:20:31Z</dc:date>
    <item>
      <title>How do you build a table from multiple reports/searches?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-build-a-table-from-multiple-reports-searches/m-p/437524#M7104</link>
      <description>&lt;P&gt;I have 8 separate reports that all return single value results (e.g.: 2500).  Each of these reports searches different indexes or source types.  How can I combine all the single value results from these 8 separate reports into a single 8-row table panel within a dashboard ?&lt;/P&gt;

&lt;P&gt;Report 1 - 25&lt;BR /&gt;
Report 2 - 47&lt;BR /&gt;
...&lt;BR /&gt;
Report 8 - 2719&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Dashboard Panel&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Summary of Reports
(report name or custom text) - 25
Report 2 - 47
Report 3 - 209273
...
Report 8 - 2719
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;FINAL WORKING QUERY&lt;/STRONG&gt;&lt;BR /&gt;
Turns out, I needed &lt;CODE&gt;appendpipe&lt;/CODE&gt; instead of &lt;CODE&gt;append&lt;/CODE&gt; since all my reports use a &lt;CODE&gt;stats&lt;/CODE&gt; count for the final single-value result.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| loadjob savedsearch="dead_beef:my_app:report_1"
| eval report="1. Report 1" 
| appendpipe 
    [| loadjob savedsearch="dead_beef:my_app:report_2"
    | eval report="2. Report 2"] 
| appendpipe 
    [| loadjob savedsearch="dead_beef:my_app:report_3" 
    | eval report="3. Report 3"] 
| appendpipe 
    [| loadjob savedsearch="dead_beef:my_app:report_4" 
    | eval report="4. Report 4"] 
| rename report AS Report count AS Count
| table Report Count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Dec 2018 19:58:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-build-a-table-from-multiple-reports-searches/m-p/437524#M7104</guid>
      <dc:creator>DEAD_BEEF</dc:creator>
      <dc:date>2018-12-14T19:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do you build a table from multiple reports/searches?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-build-a-table-from-multiple-reports-searches/m-p/437525#M7105</link>
      <description>&lt;P&gt;Are these 8 different saved searches?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 20:08:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-build-a-table-from-multiple-reports-searches/m-p/437525#M7105</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-12-14T20:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do you build a table from multiple reports/searches?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-build-a-table-from-multiple-reports-searches/m-p/437526#M7106</link>
      <description>&lt;P&gt;you can create a dashboard using the query &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|savedsearch  &amp;lt;searchname1&amp;gt; |eval report="name1"| append[|savedsearch &amp;lt;searchname2&amp;gt;|eval report="name2"]|append[|savedsearch &amp;lt;searchname3&amp;gt;|eval report="name3"]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and so on till 8th search.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 20:20:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-build-a-table-from-multiple-reports-searches/m-p/437526#M7106</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-12-14T20:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do you build a table from multiple reports/searches?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-build-a-table-from-multiple-reports-searches/m-p/437527#M7107</link>
      <description>&lt;P&gt;Yes, these are 8 separate saved searches/reports.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Dec 2018 02:51:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-build-a-table-from-multiple-reports-searches/m-p/437527#M7107</guid>
      <dc:creator>DEAD_BEEF</dc:creator>
      <dc:date>2018-12-15T02:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do you build a table from multiple reports/searches?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-build-a-table-from-multiple-reports-searches/m-p/437528#M7108</link>
      <description>&lt;P&gt;Okay, so some of the reports take a while to run so that's why I have them scheduled.  Thanks to you clueing me into &lt;CODE&gt;savedsearch&lt;/CODE&gt; that runs the search again so that wouldn't work for me.  But, I did find the command &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.2.1/SearchReference/Loadjob"&gt;loadjob&lt;/A&gt; which loads the results from a saved search.  I tried it with only one of my searches and so far it just sits at "Finalizing results." but nothing happens.  I'm going to clone one of the reports and just have it output a statistic table rather than a single value visual to see if that works.&lt;/P&gt;

&lt;P&gt;My not working SPL&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| loadjob savedsearch="dead_beef:my_custom_app:Saved Report One"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Dec 2018 03:26:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-build-a-table-from-multiple-reports-searches/m-p/437528#M7108</guid>
      <dc:creator>DEAD_BEEF</dc:creator>
      <dc:date>2018-12-15T03:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do you build a table from multiple reports/searches?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-build-a-table-from-multiple-reports-searches/m-p/437529#M7109</link>
      <description>&lt;P&gt;You have the right idea with &lt;CODE&gt;loadjob&lt;/CODE&gt;... i wonder if your saved searches are in Verbose mode? That will include all results in your saved job. I'm not sure exactly how &lt;CODE&gt;loadjob&lt;/CODE&gt; would handle it, but i definitely see a difference in dispatch directory when running Verbose vs Smart.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;jon@splunklab:~$ du -sh splunk-link/var/run/splunk/dispatch/1544846982.11835
17M splunk-link/var/run/splunk/dispatch/1544846982.11835
jon@splunklab:~$ du -sh splunk-link/var/run/splunk/dispatch/1544847158.11844
117K    splunk-link/var/run/splunk/dispatch/1544847158.11844
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The second job dir above is from smart mode. The first was verbose. Same exact data set. Same single line answer ( &lt;CODE&gt;| stats count by host&lt;/CODE&gt; )&lt;/P&gt;

&lt;P&gt;EDIT: well shooooooot. That ain't it. From savedsearches.conf.spec:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;display.page.search.mode = [fast|smart|verbose]
* This setting has no effect on saved search execution when dispatched by the
  scheduler. It only comes into effect when the search is opened in the UI and
  run manually.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Dec 2018 04:13:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-build-a-table-from-multiple-reports-searches/m-p/437529#M7109</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2018-12-15T04:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do you build a table from multiple reports/searches?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-build-a-table-from-multiple-reports-searches/m-p/437530#M7110</link>
      <description>&lt;P&gt;So ultimately, I was testing reports and they weren't always loading the results despite running the reports hourly.  Since all my reports return a single value, I ended up listing all 8 reports with the use of repeated &lt;CODE&gt;append&lt;/CODE&gt; to put them all in one table.  I have scheduled this massive search to remedy the timeliness issues.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Dec 2018 07:32:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-build-a-table-from-multiple-reports-searches/m-p/437530#M7110</guid>
      <dc:creator>DEAD_BEEF</dc:creator>
      <dc:date>2018-12-15T07:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do you build a table from multiple reports/searches?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-build-a-table-from-multiple-reports-searches/m-p/437531#M7111</link>
      <description>&lt;P&gt;&lt;CODE&gt;loadjob&lt;/CODE&gt; grabs the latest run. If you're running hourly, and they take a long time, there's a good chance the latest run will still be completing. Try using the &lt;CODE&gt;artifact_offset&lt;/CODE&gt; argument with &lt;CODE&gt;loadjob&lt;/CODE&gt; to grab the job 1 step back (and presumably complete).&lt;/P&gt;</description>
      <pubDate>Sat, 15 Dec 2018 15:34:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-build-a-table-from-multiple-reports-searches/m-p/437531#M7111</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2018-12-15T15:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do you build a table from multiple reports/searches?</title>
      <link>https://community.splunk.com/t5/Reporting/How-do-you-build-a-table-from-multiple-reports-searches/m-p/437532#M7112</link>
      <description>&lt;P&gt;The issue was that since I was using &lt;CODE&gt;stats&lt;/CODE&gt; in each report, I needed to add the results of each report via &lt;CODE&gt;appendpipe&lt;/CODE&gt; as the documentation states, "The appendpipe command is used to append the output of transforming commands, such as chart, timechart, &lt;STRONG&gt;stats&lt;/STRONG&gt;, and top."  I have modified it using &lt;CODE&gt;appendpipe&lt;/CODE&gt; and it works perfectly.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 18:55:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-do-you-build-a-table-from-multiple-reports-searches/m-p/437532#M7112</guid>
      <dc:creator>DEAD_BEEF</dc:creator>
      <dc:date>2018-12-26T18:55:41Z</dc:date>
    </item>
  </channel>
</rss>

