<?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 appendpipe variable in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/appendpipe-variable/m-p/132551#M184592</link>
    <description>&lt;P&gt;Hi Guys,&lt;/P&gt;

&lt;P&gt;appendpipe &lt;CODE&gt;[stats avg(*) as  *]&lt;/CODE&gt;,  adds a new row with the average of all the rows of the respective column.&lt;BR /&gt;
I wanted to get hold of this average value . So I did&lt;CODE&gt;appendpipe [stats avg(*) as average(*)]&lt;/CODE&gt; . So that I can use the "average"  as a variable . This is all fine. The issue is when i do the &lt;CODE&gt;appendpipe [stats avg(*) as average(*)]&lt;/CODE&gt; , I get new columns added, with the names average(colname) and the row that existed before , with &lt;CODE&gt;appendpipe [stats avg(*) as *]&lt;/CODE&gt; gets deleted..&lt;/P&gt;

&lt;P&gt;How do I keep the averages row as it is , still be able to use &lt;CODE&gt;average(*)&lt;/CODE&gt; , so that I can get the average value in a variable? is it possible?&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2014 22:08:30 GMT</pubDate>
    <dc:creator>daktapaal</dc:creator>
    <dc:date>2014-01-30T22:08:30Z</dc:date>
    <item>
      <title>appendpipe variable</title>
      <link>https://community.splunk.com/t5/Splunk-Search/appendpipe-variable/m-p/132551#M184592</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;

&lt;P&gt;appendpipe &lt;CODE&gt;[stats avg(*) as  *]&lt;/CODE&gt;,  adds a new row with the average of all the rows of the respective column.&lt;BR /&gt;
I wanted to get hold of this average value . So I did&lt;CODE&gt;appendpipe [stats avg(*) as average(*)]&lt;/CODE&gt; . So that I can use the "average"  as a variable . This is all fine. The issue is when i do the &lt;CODE&gt;appendpipe [stats avg(*) as average(*)]&lt;/CODE&gt; , I get new columns added, with the names average(colname) and the row that existed before , with &lt;CODE&gt;appendpipe [stats avg(*) as *]&lt;/CODE&gt; gets deleted..&lt;/P&gt;

&lt;P&gt;How do I keep the averages row as it is , still be able to use &lt;CODE&gt;average(*)&lt;/CODE&gt; , so that I can get the average value in a variable? is it possible?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2014 22:08:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/appendpipe-variable/m-p/132551#M184592</guid>
      <dc:creator>daktapaal</dc:creator>
      <dc:date>2014-01-30T22:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: appendpipe variable</title>
      <link>https://community.splunk.com/t5/Splunk-Search/appendpipe-variable/m-p/132552#M184593</link>
      <description>&lt;P&gt;I'm not quite sure I understand your question properly, so I'll take a stab in the dark. Are you trying to add horizontal average lines into a timechart?&lt;/P&gt;

&lt;P&gt;If so, do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;some search | timechart somethingorother | eventstats avg(*) as average(*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That will add a field in the table / a line in your timechart graph called average(foo) for every field foo.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2014 23:24:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/appendpipe-variable/m-p/132552#M184593</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-01-30T23:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: appendpipe variable</title>
      <link>https://community.splunk.com/t5/Splunk-Search/appendpipe-variable/m-p/132553#M184594</link>
      <description>&lt;P&gt;Now I'm sure I don't quite understand what you're ultimately trying to achieve.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 08:29:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/appendpipe-variable/m-p/132553#M184594</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-01-31T08:29:07Z</dc:date>
    </item>
  </channel>
</rss>

