<?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: Add a summary row to a statistics table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Add-a-summary-row-to-a-statistics-table/m-p/253369#M75817</link>
    <description>&lt;P&gt;updated query, a bit closer but still not quite there&lt;/P&gt;

&lt;P&gt;This one does get an entry into the first column (the one that was omitted) but no entry in the last column &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mso_statistics sourcetype=ic_connectivity_5min-too_small stat_name = "cell" |eval mso = upper(substr(mso,1,1)).lower(substr(mso,2)) |appendpipe [stats avg(stat_val) as "Current Cell Connectivity %" | eval mso = "ALL MSO's"]|stats sparkline(avg(stat_val)) as "Trend" first(stat_val) as "Current Cell Connectivity %" by mso|rename mso as "MSO - Click for Expanded View"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 29 Aug 2016 16:32:58 GMT</pubDate>
    <dc:creator>dbcase</dc:creator>
    <dc:date>2016-08-29T16:32:58Z</dc:date>
    <item>
      <title>Add a summary row to a statistics table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-summary-row-to-a-statistics-table/m-p/253368#M75816</link>
      <description>&lt;P&gt;Hi,  &lt;/P&gt;

&lt;P&gt;I have this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mso_statistics sourcetype=ic_connectivity_5min-too_small stat_name = "cell" |eval mso = upper(substr(mso,1,1)).lower(substr(mso,2)) |stats sparkline(avg(stat_val)) as "Trend" first(stat_val) as "Current Cell Connectivity %" by mso|rename mso as "MSO - Click for Expanded View"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which produces this Statistics Table (first column intentionally omitted)&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1779iA4EAC22946841BB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;What I'd like to do is append to the table at the bottom a row that indicates Avg, mean, etc of the data.   I've tired append and appendpipe but the data never seems to display.  (note:  I've never used append or appendpipe before so it is VERY likely it is something I'm doing wrong)&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 16:22:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-summary-row-to-a-statistics-table/m-p/253368#M75816</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-08-29T16:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add a summary row to a statistics table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-summary-row-to-a-statistics-table/m-p/253369#M75817</link>
      <description>&lt;P&gt;updated query, a bit closer but still not quite there&lt;/P&gt;

&lt;P&gt;This one does get an entry into the first column (the one that was omitted) but no entry in the last column &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mso_statistics sourcetype=ic_connectivity_5min-too_small stat_name = "cell" |eval mso = upper(substr(mso,1,1)).lower(substr(mso,2)) |appendpipe [stats avg(stat_val) as "Current Cell Connectivity %" | eval mso = "ALL MSO's"]|stats sparkline(avg(stat_val)) as "Trend" first(stat_val) as "Current Cell Connectivity %" by mso|rename mso as "MSO - Click for Expanded View"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Aug 2016 16:32:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-summary-row-to-a-statistics-table/m-p/253369#M75817</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-08-29T16:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Add a summary row to a statistics table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-summary-row-to-a-statistics-table/m-p/253370#M75818</link>
      <description>&lt;P&gt;Try moving the &lt;CODE&gt;appendpipe&lt;/CODE&gt; to after the &lt;CODE&gt;stats&lt;/CODE&gt; command. Like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=mso_statistics sourcetype=ic_connectivity_5min-too_small stat_name = "cell" |eval mso = upper(substr(mso,1,1)).lower(substr(mso,2)) |stats sparkline(avg(stat_val)) as "Trend" first(stat_val) as "Current Cell Connectivity %" by mso |appendpipe [stats avg(stat_val) as "Current Cell Connectivity %" | eval mso = "ALL MSO's"] |rename mso as "MSO - Click for Expanded View"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Aug 2016 16:40:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-summary-row-to-a-statistics-table/m-p/253370#M75818</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-29T16:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Add a summary row to a statistics table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-summary-row-to-a-statistics-table/m-p/253371#M75819</link>
      <description>&lt;P&gt;Hi Sundareshr,&lt;/P&gt;

&lt;P&gt;I tried that one as well hoping it would do the trick but when I do the resulting table doesn't have any of the entries.  &lt;/P&gt;

&lt;P&gt;Meaning, no average and no "ALL MSO's" in the first column.  I only got the ALL MSO's to show up when I put the appendpipe before the stats command&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 16:44:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-summary-row-to-a-statistics-table/m-p/253371#M75819</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-08-29T16:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Add a summary row to a statistics table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-summary-row-to-a-statistics-table/m-p/253372#M75820</link>
      <description>&lt;P&gt;Then try this..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=mso_statistics sourcetype=ic_connectivity_5min-too_small stat_name = "cell" |eval mso = upper(substr(mso,1,1)).lower(substr(mso,2)) |stats sparkline(avg(stat_val)) as "Trend" first(stat_val) as "Current Cell Connectivity %" by mso |append [search index=mso_statistics sourcetype=ic_connectivity_5min-too_small stat_name = "cell" |eval mso = upper(substr(mso,1,1)).lower(substr(mso,2))  
 stats avg(stat_val) as "Current Cell Connectivity %" | eval mso = "ALL MSO's"] |rename mso as "MSO - Click for Expanded View"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Aug 2016 16:48:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-summary-row-to-a-statistics-table/m-p/253372#M75820</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-29T16:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Add a summary row to a statistics table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-summary-row-to-a-statistics-table/m-p/253373#M75821</link>
      <description>&lt;P&gt;BINGO!!!!   Thank you Sundareshr!!!! &lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 16:53:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-summary-row-to-a-statistics-table/m-p/253373#M75821</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2016-08-29T16:53:16Z</dc:date>
    </item>
  </channel>
</rss>

