<?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 to sum of two result of appending subsearch in Total in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-sum-of-two-result-of-appending-subsearch-in-Total/m-p/515627#M144784</link>
    <description>&lt;P&gt;Thanks ! Its worked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I m using append query multiple times for different searches for same index.&lt;/P&gt;&lt;P&gt;Its parsing my job. Please advise solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Manasi25_0-1598176730143.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10450iB36A388830303F82/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Manasi25_0-1598176730143.png" alt="Manasi25_0-1598176730143.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 23 Aug 2020 09:59:12 GMT</pubDate>
    <dc:creator>Manasi25</dc:creator>
    <dc:date>2020-08-23T09:59:12Z</dc:date>
    <item>
      <title>How to sum of two result of appending subsearch in Total</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sum-of-two-result-of-appending-subsearch-in-Total/m-p/514841#M144526</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have two OUTPUT as " IA" and "IB" in one chart by appending sub search.&lt;/P&gt;&lt;P&gt;I want addcoltotals of sum of "IA" and "IB"&lt;/P&gt;&lt;P&gt;My input -&lt;/P&gt;&lt;P&gt;source type = router&amp;nbsp; routingKey=routingA OR routingKey=routingB&lt;/P&gt;&lt;P&gt;| stats sum(count) as count, avg(percent) as percent&lt;/P&gt;&lt;P&gt;| eval routingKey = "IA"&lt;BR /&gt;| append [ search routingKey=routingAA OR routingBB&lt;/P&gt;&lt;P&gt;| stats sum(count) as count, avg(percent) as percent&lt;/P&gt;&lt;P&gt;|eval routingKey = "IB" ]&lt;/P&gt;&lt;P&gt;| addcoltotals labelfield= routingKey label= “Total”&lt;BR /&gt;&lt;BR /&gt;| table routingKey, count, percent&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Result should be -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;routingKey&amp;nbsp; &amp;nbsp;count&amp;nbsp; &amp;nbsp;percent&lt;/P&gt;&lt;P&gt;IA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50%&lt;/P&gt;&lt;P&gt;IB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50%&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Total&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ?&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Also, when i m searching result, its saying parsing job while giving output.&lt;/P&gt;&lt;P&gt;Do append command parsing my output? Is there any other command i can use instead of append.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 06:43:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sum-of-two-result-of-appending-subsearch-in-Total/m-p/514841#M144526</guid>
      <dc:creator>Manasi25</dc:creator>
      <dc:date>2020-08-19T06:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum of two result of appending subsearch in Total</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sum-of-two-result-of-appending-subsearch-in-Total/m-p/514883#M144534</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224603"&gt;@Manasi25&lt;/a&gt;&amp;nbsp;, what is the issue you are facing, as your query seems alright? Are you getting different result than what is expected or not getting any results at all? Also, I believe count and percent are existing fields in your logs, is that so?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 09:34:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sum-of-two-result-of-appending-subsearch-in-Total/m-p/514883#M144534</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2020-08-19T09:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum of two result of appending subsearch in Total</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sum-of-two-result-of-appending-subsearch-in-Total/m-p/515081#M144595</link>
      <description>&lt;P&gt;the query - | addcoltotals labelfield= routingKey label= “Total” not resulting Output as below--&lt;/P&gt;&lt;P&gt;Total ?&amp;nbsp; &amp;nbsp;?&lt;/P&gt;&lt;P&gt;Yes, count and percent are existing fields in my logs.&lt;/P&gt;&lt;P&gt;I need output in a table as below. Total of count and percentage of "IA" and "IB" in last row.&lt;/P&gt;&lt;P&gt;routingKey count percent&lt;/P&gt;&lt;P&gt;IA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50%&lt;/P&gt;&lt;P&gt;IB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 50&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50%&lt;/P&gt;&lt;P&gt;Total&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ?&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I m getting only this -&lt;/P&gt;&lt;P&gt;IA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50%&lt;/P&gt;&lt;P&gt;IB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50%&lt;/P&gt;&lt;P&gt;I have mentions field values as well.here is my query --&lt;/P&gt;&lt;P&gt;source type = router routingKey=routingA OR routingKey=routingB&lt;/P&gt;&lt;P&gt;| stats sum(count) as count, avg(percent) as percent | eval routingKey = "IA"&lt;/P&gt;&lt;P&gt;| append [ search routingKey=routingAA OR routingBB&lt;/P&gt;&lt;P&gt;| stats sum(count) as count, avg(percent) as percent |eval routingKey = "IB" ]&lt;/P&gt;&lt;P&gt;| addcoltotals labelfield= routingKey label= “Total”&lt;/P&gt;&lt;P&gt;| table routingKey, count, percent&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 00:48:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sum-of-two-result-of-appending-subsearch-in-Total/m-p/515081#M144595</guid>
      <dc:creator>Manasi25</dc:creator>
      <dc:date>2020-08-20T00:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum of two result of appending subsearch in Total</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sum-of-two-result-of-appending-subsearch-in-Total/m-p/515130#M144609</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224603"&gt;@Manasi25&lt;/a&gt;&amp;nbsp;, please use&lt;/P&gt;&lt;P&gt;| stats sum(count) as count, avg(percent) as percent | eval routingKey = "IA"&lt;/P&gt;&lt;P&gt;| append [ search routingKey=routingAA OR routingBB&lt;/P&gt;&lt;P&gt;| stats sum(count) as count, avg(percent) as percent |eval routingKey = "IB" ]&lt;/P&gt;&lt;P&gt;| addcoltotals labelfield=routingKey label=Total&lt;/P&gt;&lt;P&gt;| table routingKey, count, percent&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 07:10:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sum-of-two-result-of-appending-subsearch-in-Total/m-p/515130#M144609</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2020-08-20T07:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum of two result of appending subsearch in Total</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sum-of-two-result-of-appending-subsearch-in-Total/m-p/515627#M144784</link>
      <description>&lt;P&gt;Thanks ! Its worked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I m using append query multiple times for different searches for same index.&lt;/P&gt;&lt;P&gt;Its parsing my job. Please advise solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Manasi25_0-1598176730143.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10450iB36A388830303F82/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Manasi25_0-1598176730143.png" alt="Manasi25_0-1598176730143.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Aug 2020 09:59:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sum-of-two-result-of-appending-subsearch-in-Total/m-p/515627#M144784</guid>
      <dc:creator>Manasi25</dc:creator>
      <dc:date>2020-08-23T09:59:12Z</dc:date>
    </item>
  </channel>
</rss>

