<?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: Is there a way to get addcoltotals to show up at the top of a report, rather than at the end? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-get-addcoltotals-to-show-up-at-the-top-of-a/m-p/339565#M100697</link>
    <description>&lt;P&gt;@jbezanson...If addcoltotals is showing results in the end just add the following in the end &lt;CODE&gt;| reverse&lt;/CODE&gt;. PS: If you are not sowing more than 10000 results then you can use sort as well. However, I would expect reverse to perform better.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2017 07:27:55 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-04-20T07:27:55Z</dc:date>
    <item>
      <title>Is there a way to get addcoltotals to show up at the top of a report, rather than at the end?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-get-addcoltotals-to-show-up-at-the-top-of-a/m-p/339562#M100694</link>
      <description>&lt;P&gt;I have a report that reports the count of events per another field.  I can get a total of all of these events but it shows up at the bottom.&lt;BR /&gt;
Can I get that total from "addcoltotals" to show up at the very top instead?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 22:55:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-get-addcoltotals-to-show-up-at-the-top-of-a/m-p/339562#M100694</guid>
      <dc:creator>jbezanson</dc:creator>
      <dc:date>2017-04-19T22:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get addcoltotals to show up at the top of a report, rather than at the end?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-get-addcoltotals-to-show-up-at-the-top-of-a/m-p/339563#M100695</link>
      <description>&lt;P&gt;You could put a &lt;CODE&gt;| sort fieldA fieldB&lt;/CODE&gt; etc at the end of your SPL. You will just need to figure out which fields to use for the sort to make the order come out the way you want...&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 00:50:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-get-addcoltotals-to-show-up-at-the-top-of-a/m-p/339563#M100695</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2017-04-20T00:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get addcoltotals to show up at the top of a report, rather than at the end?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-get-addcoltotals-to-show-up-at-the-top-of-a/m-p/339564#M100696</link>
      <description>&lt;P&gt;use sort option&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 03:46:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-get-addcoltotals-to-show-up-at-the-top-of-a/m-p/339564#M100696</guid>
      <dc:creator>puneethgowda</dc:creator>
      <dc:date>2017-04-20T03:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get addcoltotals to show up at the top of a report, rather than at the end?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-get-addcoltotals-to-show-up-at-the-top-of-a/m-p/339565#M100697</link>
      <description>&lt;P&gt;@jbezanson...If addcoltotals is showing results in the end just add the following in the end &lt;CODE&gt;| reverse&lt;/CODE&gt;. PS: If you are not sowing more than 10000 results then you can use sort as well. However, I would expect reverse to perform better.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 07:27:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-get-addcoltotals-to-show-up-at-the-top-of-a/m-p/339565#M100697</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-04-20T07:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get addcoltotals to show up at the top of a report, rather than at the end?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-get-addcoltotals-to-show-up-at-the-top-of-a/m-p/339566#M100698</link>
      <description>&lt;P&gt;One way to do this is to click the column name and it will bring it to the top, it will also sort the chart by highest to lowest. e.g. you couldn't have the column total at the top and have the lowest value below it. &lt;/P&gt;

&lt;P&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/2806iC654D7CFDC167280/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 06:27:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-get-addcoltotals-to-show-up-at-the-top-of-a/m-p/339566#M100698</guid>
      <dc:creator>ElijahLynn</dc:creator>
      <dc:date>2018-02-22T06:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get addcoltotals to show up at the top of a report, rather than at the end?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-get-addcoltotals-to-show-up-at-the-top-of-a/m-p/339567#M100699</link>
      <description>&lt;P&gt;Add the |sort - count after the |addcoltotals. It will sort your count by greatest to least. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{your search}
| addcoltotals
| sort - count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jul 2019 21:28:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-get-addcoltotals-to-show-up-at-the-top-of-a/m-p/339567#M100699</guid>
      <dc:creator>jbillings</dc:creator>
      <dc:date>2019-07-09T21:28:30Z</dc:date>
    </item>
  </channel>
</rss>

