<?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: Display timechart by adding values from other panels in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Display-timechart-by-adding-values-from-other-panels/m-p/426788#M122271</link>
    <description>&lt;P&gt;Hi @balash1979, You're looking for total time as a timechart as well ? The sum of averages doesn't really make sense does it ? What exactly are you trying to achieve and why don't you simply put the three charts and the total on the same panel ?&lt;/P&gt;</description>
    <pubDate>Sun, 04 Aug 2019 07:47:58 GMT</pubDate>
    <dc:creator>DavidHourani</dc:creator>
    <dc:date>2019-08-04T07:47:58Z</dc:date>
    <item>
      <title>Display timechart by adding values from other panels</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-timechart-by-adding-values-from-other-panels/m-p/426787#M122270</link>
      <description>&lt;P&gt;I have 3 panels. Each panel runs a query and displays the result in timechart. This works fine. &lt;BR /&gt;
Now , I would like to add a 4th panel and display the results from the first 3 panel queries in timechart. How can I achieve that ? &lt;BR /&gt;
I dont want to run the queries again in the 4th panel. Just need to do display the total time = time1+time2+time3.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;row&amp;gt;
&amp;lt;panel&amp;gt;
  &amp;lt;title&amp;gt;First panel&amp;lt;/title&amp;gt;
  &amp;lt;chart&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt; &amp;lt;&amp;lt;some_query&amp;gt;&amp;gt; |  timechart avg(time1) &amp;lt;/query&amp;gt;
     &amp;lt;/search&amp;gt;
  &amp;lt;/chart&amp;gt;
&amp;lt;/panel&amp;gt;
&amp;lt;/row&amp;gt;

&amp;lt;row&amp;gt;
&amp;lt;panel&amp;gt;
  &amp;lt;title&amp;gt;Second panel&amp;lt;/title&amp;gt;
  &amp;lt;chart&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt; &amp;lt;&amp;lt;some_query&amp;gt;&amp;gt; | timechart avg(time2) &amp;lt;/query&amp;gt;
     &amp;lt;/search&amp;gt;
   &amp;lt;/chart&amp;gt;
&amp;lt;/panel&amp;gt;
&amp;lt;/row&amp;gt;


&amp;lt;row&amp;gt;
&amp;lt;panel&amp;gt;
  &amp;lt;title&amp;gt;Third panel&amp;lt;/title&amp;gt;
  &amp;lt;chart&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt; &amp;lt;&amp;lt;some_query&amp;gt;&amp;gt; | timechart avg(time3) &amp;lt;/query&amp;gt;
     &amp;lt;/search&amp;gt;
  &amp;lt;/chart&amp;gt;
&amp;lt;/panel&amp;gt;
&amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 04 Aug 2019 05:33:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-timechart-by-adding-values-from-other-panels/m-p/426787#M122270</guid>
      <dc:creator>balash1979</dc:creator>
      <dc:date>2019-08-04T05:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Display timechart by adding values from other panels</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-timechart-by-adding-values-from-other-panels/m-p/426788#M122271</link>
      <description>&lt;P&gt;Hi @balash1979, You're looking for total time as a timechart as well ? The sum of averages doesn't really make sense does it ? What exactly are you trying to achieve and why don't you simply put the three charts and the total on the same panel ?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2019 07:47:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-timechart-by-adding-values-from-other-panels/m-p/426788#M122271</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-08-04T07:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Display timechart by adding values from other panels</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-timechart-by-adding-values-from-other-panels/m-p/426789#M122272</link>
      <description>&lt;P&gt;hi @balash1979 &lt;/P&gt;

&lt;P&gt;Same question as @DavidHourani - Isnt having 1 panel with all 3 times and a addtotals to sum up the times a better option? In case your use case demands separation of the panels and you want a 4th panel displaying total times, the best way is to still write all 3 queries, do a addtotals and then display only the totals in a single panel.&lt;BR /&gt;
You say - 'I dont want to run the queries again in the 4th panel' , any reason? If you are worried about query execution time or performance and your base queries are taking long to load, it does not matter whether you have a 4th panel or not, the dashboard will still be slow. Can you please clarify? &lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2019 08:31:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-timechart-by-adding-values-from-other-panels/m-p/426789#M122272</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-04T08:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Display timechart by adding values from other panels</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-timechart-by-adding-values-from-other-panels/m-p/426790#M122273</link>
      <description>&lt;P&gt;I have a product use case in which each panel is built to provide average times. But the overall start to end time is calculated based by adding all the 3 different times and hence i am adding the averages. &lt;/P&gt;

&lt;P&gt;If I have all the 3 queries in the same panel and show the total, how can i accomplish that ?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2019 14:16:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-timechart-by-adding-values-from-other-panels/m-p/426790#M122273</guid>
      <dc:creator>balash1979</dc:creator>
      <dc:date>2019-08-04T14:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Display timechart by adding values from other panels</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-timechart-by-adding-values-from-other-panels/m-p/426791#M122274</link>
      <description>&lt;P&gt;You can &lt;CODE&gt;appendcols&lt;/CODE&gt; multiple time charts and then simply use &lt;CODE&gt;addtotals&lt;/CODE&gt; as @Sukisen1981 said. &lt;/P&gt;

&lt;P&gt;To append time charts have a look here :&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/7556/timechart-how-do-i-combine-these-two-charts-into-one.html"&gt;https://answers.splunk.com/answers/7556/timechart-how-do-i-combine-these-two-charts-into-one.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Let me know if that works for you!&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2019 14:22:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-timechart-by-adding-values-from-other-panels/m-p/426791#M122274</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-08-04T14:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Display timechart by adding values from other panels</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-timechart-by-adding-values-from-other-panels/m-p/426792#M122275</link>
      <description>&lt;P&gt;Why do you not want to run the queries again? IF it is for performance, I would suggest collecting the results to a summary index and running your fourth query against the summary index.&lt;/P&gt;

&lt;P&gt;Another solution is to save your queries as a saved search which returns time1, time2, time3 or total based on a parameter.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2019 14:32:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-timechart-by-adding-values-from-other-panels/m-p/426792#M122275</guid>
      <dc:creator>arjunpkishore5</dc:creator>
      <dc:date>2019-08-04T14:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Display timechart by adding values from other panels</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-timechart-by-adding-values-from-other-panels/m-p/426793#M122276</link>
      <description>&lt;P&gt;@balash1979 if your three searches are correlated then run a base search with results for three panel and then perform post processing to display individual series as per your needs. Refer to Splunk Documentation: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/Savedsearches#Examples_2"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Viz/Savedsearches#Examples_2&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2019 14:40:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-timechart-by-adding-values-from-other-panels/m-p/426793#M122276</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-08-04T14:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Display timechart by adding values from other panels</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-timechart-by-adding-values-from-other-panels/m-p/426794#M122277</link>
      <description>&lt;P&gt;Thanks that works.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2019 14:49:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-timechart-by-adding-values-from-other-panels/m-p/426794#M122277</guid>
      <dc:creator>balash1979</dc:creator>
      <dc:date>2019-08-04T14:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Display timechart by adding values from other panels</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-timechart-by-adding-values-from-other-panels/m-p/426795#M122278</link>
      <description>&lt;P&gt;Awesome ! I changed this to an answer, please up-vote and accept it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2019 16:48:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-timechart-by-adding-values-from-other-panels/m-p/426795#M122278</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-08-04T16:48:26Z</dc:date>
    </item>
  </channel>
</rss>

