<?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 count total with only displaying one stat? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-total-with-only-displaying-one-stat/m-p/645964#M223635</link>
    <description>&lt;P&gt;Hey, so that gives me the count of the hosts, but what I am really looking for is to count up all of the numbers on the right side and have one total count of that without doing addcoltotals.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jun 2023 15:40:16 GMT</pubDate>
    <dc:creator>jialiu907</dc:creator>
    <dc:date>2023-06-06T15:40:16Z</dc:date>
    <item>
      <title>How to count total with only displaying one stat?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-total-with-only-displaying-one-stat/m-p/645955#M223632</link>
      <description>&lt;P&gt;I am looking to display only one statistic row being named Total with the count of all of the hosts added up, which should equal around 450, give or take. I know how to add it up in the way of using addcoltotals but I am only looking for the Total row, excluding the rest of the stats.&lt;/P&gt;&lt;P&gt;I have attached the base search and the current output.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=os source=ps host=deml* OR host=sefs* OR host=ingg* OR host=us* OR host=gblc* 
NOT user=dcv NOT user=root NOT user=chrony NOT user=dbus NOT user=gdm NOT user=libstor+ NOT user=nslcd NOT user=polkitd NOT user=postfix NOT user=rpc NOT user=rpcuser NOT user=rtkit NOT user=colord NOT user=nobody NOT user=sgeadmin NOT user=splunk NOT user=setroub+ NOT user=lp NOT user=68 NOT user=ntp NOT user=smmsp NOT user=dcvsmagent NOT user=libstoragemgmt
| dedup user
| stats count by host&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jialiu907_0-1686064924390.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25712i28ECA7118BA38919/image-size/large?v=v2&amp;amp;px=999" role="button" title="jialiu907_0-1686064924390.png" alt="jialiu907_0-1686064924390.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 15:26:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-total-with-only-displaying-one-stat/m-p/645955#M223632</guid>
      <dc:creator>jialiu907</dc:creator>
      <dc:date>2023-06-06T15:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to count total with only displaying one stat?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-total-with-only-displaying-one-stat/m-p/645961#M223633</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/255337"&gt;@jialiu907&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you want the total number of distinct hosts, you can use&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats dc(host) AS host_count&lt;/LI-CODE&gt;&lt;P&gt;ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 15:33:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-total-with-only-displaying-one-stat/m-p/645961#M223633</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-06-06T15:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to count total with only displaying one stat?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-total-with-only-displaying-one-stat/m-p/645962#M223634</link>
      <description>&lt;LI-CODE lang="markup"&gt;| stats count&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 06 Jun 2023 15:35:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-total-with-only-displaying-one-stat/m-p/645962#M223634</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-06T15:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to count total with only displaying one stat?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-total-with-only-displaying-one-stat/m-p/645964#M223635</link>
      <description>&lt;P&gt;Hey, so that gives me the count of the hosts, but what I am really looking for is to count up all of the numbers on the right side and have one total count of that without doing addcoltotals.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 15:40:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-total-with-only-displaying-one-stat/m-p/645964#M223635</guid>
      <dc:creator>jialiu907</dc:creator>
      <dc:date>2023-06-06T15:40:16Z</dc:date>
    </item>
  </channel>
</rss>

