<?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: dedup with total counts in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/dedup-with-total-counts/m-p/210944#M176647</link>
    <description>&lt;P&gt;Perfect!  Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2016 18:55:29 GMT</pubDate>
    <dc:creator>phil_dupree</dc:creator>
    <dc:date>2016-09-22T18:55:29Z</dc:date>
    <item>
      <title>dedup with total counts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-with-total-counts/m-p/210941#M176644</link>
      <description>&lt;P&gt;I have been tasked with building a dashboard which shows the total number of transactions today for each server.  I can easily get the distinct servers using dedup; however, I am not sure how to directly get the number of transactions for the day.  In order for me to find the number of transactions, I can use eval to subtract the min(ID_Number) from the max(ID_Number) for today; but I cannot figure out how to incorporate this with dedup.  &lt;/P&gt;

&lt;P&gt;I would like the results to look something like this:&lt;/P&gt;

&lt;P&gt;ServerA            105&lt;BR /&gt;
ServerB            109&lt;BR /&gt;
ServerC             210&lt;/P&gt;

&lt;P&gt;Any assistance is greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:07:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-with-total-counts/m-p/210941#M176644</guid>
      <dc:creator>phil_dupree</dc:creator>
      <dc:date>2020-09-29T11:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: dedup with total counts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-with-total-counts/m-p/210942#M176645</link>
      <description>&lt;P&gt;Using &lt;CODE&gt;stats count(ID_Number) by server&lt;/CODE&gt; should get you the results you seek without &lt;CODE&gt;dedup&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 18:48:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-with-total-counts/m-p/210942#M176645</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-09-22T18:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: dedup with total counts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-with-total-counts/m-p/210943#M176646</link>
      <description>&lt;P&gt;If I understand correctly, one way would be to use the stats to get min &amp;amp; max per server and then use eval command to calculate total transactions for each. Example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats min(ID_Number) as min_id max(ID_Number) as max_id by server 
    | eval num_transactions = max_id - min_id
    | table server num_transactions
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Sep 2016 18:52:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-with-total-counts/m-p/210943#M176646</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2016-09-22T18:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: dedup with total counts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/dedup-with-total-counts/m-p/210944#M176647</link>
      <description>&lt;P&gt;Perfect!  Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 18:55:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/dedup-with-total-counts/m-p/210944#M176647</guid>
      <dc:creator>phil_dupree</dc:creator>
      <dc:date>2016-09-22T18:55:29Z</dc:date>
    </item>
  </channel>
</rss>

