<?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 do you create a total column in a chart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-total-column-in-a-chart/m-p/376178#M110487</link>
    <description>&lt;P&gt;|addcoltotals&lt;/P&gt;</description>
    <pubDate>Tue, 18 Sep 2018 07:16:25 GMT</pubDate>
    <dc:creator>barrowvian</dc:creator>
    <dc:date>2018-09-18T07:16:25Z</dc:date>
    <item>
      <title>How do you create a total column in a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-total-column-in-a-chart/m-p/376172#M110481</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm pretty new to Splunk and have been playing around with it. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=sse_cae_summary_idx new_sourcetype=sse_altair_log_summary_stype 
| search FEATURE_NAME="HWHyperMesh*"  FEATURE_VERSION="9.0" 
| eval DurationHour=DURATION/3600 
| chart dc(USER_NAME) as "Unique Users" by USER_NAME
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above code simply gives me each unique user that is using version 9 of Hypermesh. The chart has two columns, username and unique users. The unique users column has a 1 in for each of the users . Ideally, I'd rather have a total column that just details the amount of unique users that are in the search. Please could someone help me out? Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 13:52:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-total-column-in-a-chart/m-p/376172#M110481</guid>
      <dc:creator>barrowvian</dc:creator>
      <dc:date>2018-09-17T13:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a total column in a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-total-column-in-a-chart/m-p/376173#M110482</link>
      <description>&lt;P&gt;@barrowvian,&lt;/P&gt;

&lt;P&gt;Just add to your search &lt;CODE&gt;|eventstats sum("Unique Users") as Total&lt;/CODE&gt; to get a total in each record&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 13:59:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-total-column-in-a-chart/m-p/376173#M110482</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-09-17T13:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a total column in a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-total-column-in-a-chart/m-p/376174#M110483</link>
      <description>&lt;P&gt;Thanks, but this creates a separate column with a value in each of the rows ..&lt;/P&gt;

&lt;P&gt;e.g. &lt;BR /&gt;
User_Name                   Unique Users               Total&lt;BR /&gt;
User1                              1                                     3&lt;BR /&gt;
User2                              1                                     3&lt;BR /&gt;
User3                              1                                     3&lt;/P&gt;

&lt;P&gt;Is there a way to just have one field with the total value in instead? Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 06:44:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-total-column-in-a-chart/m-p/376174#M110483</guid>
      <dc:creator>barrowvian</dc:creator>
      <dc:date>2018-09-18T06:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a total column in a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-total-column-in-a-chart/m-p/376175#M110484</link>
      <description>&lt;P&gt;@barrowvian,&lt;BR /&gt;
Ofcourse we can do it.  just to be clear, how does your final output should look like?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 06:51:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-total-column-in-a-chart/m-p/376175#M110484</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-09-18T06:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a total column in a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-total-column-in-a-chart/m-p/376176#M110485</link>
      <description>&lt;P&gt;hi @barrowvian&lt;/P&gt;

&lt;P&gt;try to add end of your query with &lt;CODE&gt;| addtotals&lt;/CODE&gt; or &lt;CODE&gt;| addcoltotals&lt;/CODE&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 07:09:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-total-column-in-a-chart/m-p/376176#M110485</guid>
      <dc:creator>harishalipaka</dc:creator>
      <dc:date>2018-09-18T07:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a total column in a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-total-column-in-a-chart/m-p/376177#M110486</link>
      <description>&lt;P&gt;That worked perfectly, thank you. Was literally just reading about it as you posted.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 07:15:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-total-column-in-a-chart/m-p/376177#M110486</guid>
      <dc:creator>barrowvian</dc:creator>
      <dc:date>2018-09-18T07:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a total column in a chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-total-column-in-a-chart/m-p/376178#M110487</link>
      <description>&lt;P&gt;|addcoltotals&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 07:16:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-create-a-total-column-in-a-chart/m-p/376178#M110487</guid>
      <dc:creator>barrowvian</dc:creator>
      <dc:date>2018-09-18T07:16:25Z</dc:date>
    </item>
  </channel>
</rss>

