<?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 get sum of a column in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358022#M105869</link>
    <description>&lt;P&gt;Thanks. there is another option dbxquery. if want to fire sql only.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Apr 2018 06:35:53 GMT</pubDate>
    <dc:creator>singh321</dc:creator>
    <dc:date>2018-04-26T06:35:53Z</dc:date>
    <item>
      <title>How to get sum of a column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358009#M105856</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am new in Splunk and trying to figure out sum of a column.&lt;/P&gt;

&lt;P&gt;i run following sql query on database:&lt;BR /&gt;
SELECT count(distinct successTransaction) FROM testDB.TranTable; // it gives me 11 records which is true.&lt;BR /&gt;
SELECT sum(successTransaction) FROM testDB.TranTable; // it gives me 64152 which is true.&lt;/P&gt;

&lt;P&gt;I have made mysql db connection using Splunk DB connect.&lt;BR /&gt;
i run followin query on splunk:&lt;BR /&gt;
index=mysql_testDB_index | stats distinct_count(successTransaction) // it gives me 11 records which is true.&lt;BR /&gt;
index=mysql_testDB_index | stats sum(successTransaction) as SuccessTransaction // it gives me 12253032 &lt;/P&gt;

&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:12:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358009#M105856</guid>
      <dc:creator>singh321</dc:creator>
      <dc:date>2020-09-29T19:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sum of a column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358010#M105857</link>
      <description>&lt;P&gt;Are you dumping data OR using rising column for DB connect input? Can you share the input conf?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 13:49:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358010#M105857</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-04-24T13:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sum of a column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358011#M105858</link>
      <description>&lt;P&gt;I think &lt;CODE&gt;addcoltotals&lt;/CODE&gt; is what your looking for &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mysql_testDB_index 
| stats dc(successTransaction) AS successTransaction
| addcoltotals 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.3/SearchReference/Addcoltotals"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.3/SearchReference/Addcoltotals&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 14:18:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358011#M105858</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-04-24T14:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sum of a column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358012#M105859</link>
      <description>&lt;P&gt;Did you count of events in sql side and splunk side match ??&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 14:47:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358012#M105859</guid>
      <dc:creator>ssadanala1</dc:creator>
      <dc:date>2018-04-24T14:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sum of a column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358013#M105860</link>
      <description>&lt;P&gt;I have first create identity then create a index and make sql connection and select input type Batch&lt;BR /&gt;
this is my input.conf file under C:\Program Files\Splunk\etc\system\default&lt;/P&gt;

&lt;H1&gt;Version 7.0.3&lt;/H1&gt;

&lt;H1&gt;DO NOT EDIT THIS FILE!&lt;/H1&gt;

&lt;H1&gt;Changes to default files will be lost on update and are difficult to&lt;/H1&gt;

&lt;H1&gt;manage and support.&lt;/H1&gt;

&lt;H1&gt;Please make any changes to system defaults by overriding them in&lt;/H1&gt;

&lt;H1&gt;apps or $SPLUNK_HOME/etc/system/local&lt;/H1&gt;

&lt;H1&gt;(See "Configuration file precedence" in the web documentation).&lt;/H1&gt;

&lt;H1&gt;To override a specific setting, copy the name of the stanza and&lt;/H1&gt;

&lt;H1&gt;setting to the file where you wish to override it.&lt;/H1&gt;

&lt;H1&gt;This file contains possible attributes and values you can use to&lt;/H1&gt;

&lt;H1&gt;configure inputs, distributed inputs and file system monitoring.&lt;/H1&gt;

&lt;P&gt;[default]&lt;BR /&gt;
index         = default&lt;BR /&gt;
_rcvbuf        = 1572864&lt;BR /&gt;
host = $decideOnStartup&lt;BR /&gt;
evt_resolve_ad_obj = 0&lt;BR /&gt;
evt_dc_name=&lt;BR /&gt;
evt_dns_name=&lt;/P&gt;

&lt;P&gt;[blacklist:$SPLUNK_HOME\etc\auth]&lt;/P&gt;

&lt;P&gt;[monitor://$SPLUNK_HOME\var\log\splunk]&lt;BR /&gt;
index = _internal&lt;/P&gt;

&lt;P&gt;[monitor://$SPLUNK_HOME\var\log\splunk\license_usage_summary.log]&lt;BR /&gt;
index = _telemetry&lt;/P&gt;

&lt;P&gt;[monitor://$SPLUNK_HOME\etc\splunk.version]&lt;BR /&gt;
_TCP_ROUTING = *&lt;BR /&gt;
index = _internal&lt;BR /&gt;
sourcetype=splunk_version&lt;/P&gt;

&lt;P&gt;[batch://$SPLUNK_HOME\var\spool\splunk]&lt;BR /&gt;
move_policy = sinkhole&lt;BR /&gt;
crcSalt = &lt;/P&gt;

&lt;P&gt;[batch://$SPLUNK_HOME\var\spool\splunk...stash_new]&lt;BR /&gt;
queue       = stashparsing&lt;BR /&gt;
sourcetype  = stash_new&lt;BR /&gt;
move_policy = sinkhole&lt;BR /&gt;
crcSalt     = &lt;/P&gt;

&lt;P&gt;[fschange:$SPLUNK_HOME\etc]&lt;/P&gt;

&lt;H1&gt;poll every 10 minutes&lt;/H1&gt;

&lt;P&gt;pollPeriod = 600&lt;/P&gt;

&lt;H1&gt;generate audit events into the audit index, instead of fschange events&lt;/H1&gt;

&lt;P&gt;signedaudit=true&lt;BR /&gt;
recurse=true&lt;BR /&gt;
followLinks=false&lt;BR /&gt;
hashMaxSize=-1&lt;BR /&gt;
fullEvent=false&lt;BR /&gt;
sendEventMaxSize=-1&lt;BR /&gt;
filesPerDelay = 10&lt;BR /&gt;
delayInMills = 100&lt;/P&gt;

&lt;P&gt;[udp]&lt;BR /&gt;
connection_host=ip&lt;/P&gt;

&lt;P&gt;[tcp]&lt;BR /&gt;
acceptFrom=*&lt;BR /&gt;
connection_host=dns&lt;/P&gt;

&lt;P&gt;[splunktcp]&lt;BR /&gt;
route=has_key:_replicationBucketUUID:replicationQueue;has_key:_dstrx:typingQueue;has_key:_linebreaker:indexQueue;absent_key:_linebreaker:parsingQueue&lt;BR /&gt;
acceptFrom=*&lt;BR /&gt;
connection_host=ip&lt;/P&gt;

&lt;P&gt;[script]&lt;BR /&gt;
interval = 60.0&lt;BR /&gt;
start_by_shell = false&lt;/P&gt;

&lt;P&gt;[SSL]&lt;/P&gt;

&lt;H1&gt;SSL settings&lt;/H1&gt;

&lt;H1&gt;The following provides modern TLS configuration that guarantees forward-&lt;/H1&gt;

&lt;H1&gt;secrecy and efficiency. This configuration drops support for old Splunk&lt;/H1&gt;

&lt;H1&gt;versions (Splunk 5.x and earlier).&lt;/H1&gt;

&lt;H1&gt;To add support for Splunk 5.x set sslVersions to tls and add this to the&lt;/H1&gt;

&lt;H1&gt;end of cipherSuite:&lt;/H1&gt;

&lt;H1&gt;DHE-RSA-AES256-SHA:AES256-SHA:DHE-RSA-AES128-SHA:AES128-SHA&lt;/H1&gt;

&lt;H1&gt;and this, in case Diffie Hellman is not configured:&lt;/H1&gt;

&lt;H1&gt;AES256-SHA:AES128-SHA&lt;/H1&gt;

&lt;P&gt;sslVersions = tls1.2&lt;BR /&gt;
cipherSuite = ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256&lt;BR /&gt;
ecdhCurves = prime256v1, secp384r1, secp521r1&lt;/P&gt;

&lt;P&gt;allowSslRenegotiation = true&lt;BR /&gt;
sslQuietShutdown = false&lt;/P&gt;

&lt;P&gt;[script://$SPLUNK_HOME\bin\scripts\splunk-wmi.path]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
interval = 10000000&lt;BR /&gt;
source = wmi&lt;BR /&gt;
sourcetype = wmi&lt;BR /&gt;
queue = winparsing&lt;BR /&gt;
persistentQueueSize=200MB&lt;/P&gt;

&lt;H1&gt;default single instance modular input restarts&lt;/H1&gt;

&lt;P&gt;[admon]&lt;BR /&gt;
interval=60&lt;BR /&gt;
baseline=0&lt;/P&gt;

&lt;P&gt;[MonitorNoHandle]&lt;BR /&gt;
interval=60&lt;/P&gt;

&lt;P&gt;[WinEventLog]&lt;BR /&gt;
interval=60&lt;BR /&gt;
evt_resolve_ad_obj = 0&lt;BR /&gt;
evt_dc_name=&lt;BR /&gt;
evt_dns_name=&lt;/P&gt;

&lt;P&gt;[WinNetMon]&lt;BR /&gt;
interval=60&lt;/P&gt;

&lt;P&gt;[WinPrintMon]&lt;BR /&gt;
interval=60&lt;/P&gt;

&lt;P&gt;[WinRegMon]&lt;BR /&gt;
interval=60&lt;BR /&gt;
baseline=0&lt;/P&gt;

&lt;P&gt;[perfmon]&lt;BR /&gt;
interval=300&lt;/P&gt;

&lt;P&gt;[powershell]&lt;BR /&gt;
interval=60&lt;/P&gt;

&lt;P&gt;[powershell2]&lt;BR /&gt;
interval=60&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:14:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358013#M105860</guid>
      <dc:creator>singh321</dc:creator>
      <dc:date>2020-09-29T19:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sum of a column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358014#M105861</link>
      <description>&lt;P&gt;I have run this query. this shows 2 records of 11.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 05:19:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358014#M105861</guid>
      <dc:creator>singh321</dc:creator>
      <dc:date>2018-04-25T05:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sum of a column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358015#M105862</link>
      <description>&lt;P&gt;Hai,&lt;/P&gt;

&lt;P&gt;First check the Events in splunk and rows in database matches or not. &lt;BR /&gt;
Check what kind of input type you have provided either Batch or rising while setting up DB connect.&lt;BR /&gt;
If your using Batch each time the complete set of data from your database will  be loaded into splunk (so you can get huge duplicate).&lt;BR /&gt;
If your using Rising, you can set the rising column and checkpoint. so already existing data wont be loaded into splunk again.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 06:31:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358015#M105862</guid>
      <dc:creator>Shan</dc:creator>
      <dc:date>2018-04-25T06:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sum of a column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358016#M105863</link>
      <description>&lt;P&gt;How to check events in sql side. i have not a timestamp column.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 06:47:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358016#M105863</guid>
      <dc:creator>singh321</dc:creator>
      <dc:date>2018-04-25T06:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sum of a column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358017#M105864</link>
      <description>&lt;P&gt;input.conf file:&lt;/P&gt;

&lt;P&gt;[default]&lt;BR /&gt;
index         = default&lt;BR /&gt;
_rcvbuf        = 1572864&lt;BR /&gt;
host = $decideOnStartup&lt;BR /&gt;
evt_resolve_ad_obj = 0&lt;BR /&gt;
evt_dc_name=&lt;BR /&gt;
evt_dns_name=&lt;/P&gt;

&lt;P&gt;[blacklist:$SPLUNK_HOME\etc\auth]&lt;/P&gt;

&lt;P&gt;[monitor://$SPLUNK_HOME\var\log\splunk]&lt;BR /&gt;
index = _internal&lt;/P&gt;

&lt;P&gt;[monitor://$SPLUNK_HOME\var\log\splunk\license_usage_summary.log]&lt;BR /&gt;
index = _telemetry&lt;/P&gt;

&lt;P&gt;[monitor://$SPLUNK_HOME\etc\splunk.version]&lt;BR /&gt;
_TCP_ROUTING = *&lt;BR /&gt;
index = _internal&lt;BR /&gt;
sourcetype=splunk_version&lt;/P&gt;

&lt;P&gt;[batch://$SPLUNK_HOME\var\spool\splunk]&lt;BR /&gt;
move_policy = sinkhole&lt;BR /&gt;
crcSalt = &lt;/P&gt;

&lt;P&gt;[batch://$SPLUNK_HOME\var\spool\splunk...stash_new]&lt;BR /&gt;
queue       = stashparsing&lt;BR /&gt;
sourcetype  = stash_new&lt;BR /&gt;
move_policy = sinkhole&lt;BR /&gt;
crcSalt     = &lt;/P&gt;

&lt;P&gt;[fschange:$SPLUNK_HOME\etc]&lt;/P&gt;

&lt;H1&gt;poll every 10 minutes&lt;/H1&gt;

&lt;P&gt;pollPeriod = 600&lt;/P&gt;

&lt;H1&gt;generate audit events into the audit index, instead of fschange events&lt;/H1&gt;

&lt;P&gt;signedaudit=true&lt;BR /&gt;
recurse=true&lt;BR /&gt;
followLinks=false&lt;BR /&gt;
hashMaxSize=-1&lt;BR /&gt;
fullEvent=false&lt;BR /&gt;
sendEventMaxSize=-1&lt;BR /&gt;
filesPerDelay = 10&lt;BR /&gt;
delayInMills = 100&lt;/P&gt;

&lt;P&gt;[udp]&lt;BR /&gt;
connection_host=ip&lt;/P&gt;

&lt;P&gt;[tcp]&lt;BR /&gt;
acceptFrom=*&lt;BR /&gt;
connection_host=dns&lt;/P&gt;

&lt;P&gt;[splunktcp]&lt;BR /&gt;
route=has_key:_replicationBucketUUID:replicationQueue;has_key:_dstrx:typingQueue;has_key:_linebreaker:indexQueue;absent_key:_linebreaker:parsingQueue&lt;BR /&gt;
acceptFrom=*&lt;BR /&gt;
connection_host=ip&lt;/P&gt;

&lt;P&gt;[script]&lt;BR /&gt;
interval = 60.0&lt;BR /&gt;
start_by_shell = false&lt;/P&gt;

&lt;P&gt;[SSL]&lt;/P&gt;

&lt;H1&gt;SSL settings&lt;/H1&gt;

&lt;H1&gt;The following provides modern TLS configuration that guarantees forward-&lt;/H1&gt;

&lt;H1&gt;secrecy and efficiency. This configuration drops support for old Splunk&lt;/H1&gt;

&lt;H1&gt;versions (Splunk 5.x and earlier).&lt;/H1&gt;

&lt;H1&gt;To add support for Splunk 5.x set sslVersions to tls and add this to the&lt;/H1&gt;

&lt;H1&gt;end of cipherSuite:&lt;/H1&gt;

&lt;H1&gt;DHE-RSA-AES256-SHA:AES256-SHA:DHE-RSA-AES128-SHA:AES128-SHA&lt;/H1&gt;

&lt;H1&gt;and this, in case Diffie Hellman is not configured:&lt;/H1&gt;

&lt;H1&gt;AES256-SHA:AES128-SHA&lt;/H1&gt;

&lt;P&gt;sslVersions = tls1.2&lt;BR /&gt;
cipherSuite = ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256&lt;BR /&gt;
ecdhCurves = prime256v1, secp384r1, secp521r1&lt;/P&gt;

&lt;P&gt;allowSslRenegotiation = true&lt;BR /&gt;
sslQuietShutdown = false&lt;/P&gt;

&lt;P&gt;[script://$SPLUNK_HOME\bin\scripts\splunk-wmi.path]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
interval = 10000000&lt;BR /&gt;
source = wmi&lt;BR /&gt;
sourcetype = wmi&lt;BR /&gt;
queue = winparsing&lt;BR /&gt;
persistentQueueSize=200MB&lt;/P&gt;

&lt;H1&gt;default single instance modular input restarts&lt;/H1&gt;

&lt;P&gt;[admon]&lt;BR /&gt;
interval=60&lt;BR /&gt;
baseline=0&lt;/P&gt;

&lt;P&gt;[MonitorNoHandle]&lt;BR /&gt;
interval=60&lt;/P&gt;

&lt;P&gt;[WinEventLog]&lt;BR /&gt;
interval=60&lt;BR /&gt;
evt_resolve_ad_obj = 0&lt;BR /&gt;
evt_dc_name=&lt;BR /&gt;
evt_dns_name=&lt;/P&gt;

&lt;P&gt;[WinNetMon]&lt;BR /&gt;
interval=60&lt;/P&gt;

&lt;P&gt;[WinPrintMon]&lt;BR /&gt;
interval=60&lt;/P&gt;

&lt;P&gt;[WinRegMon]&lt;BR /&gt;
interval=60&lt;BR /&gt;
baseline=0&lt;/P&gt;

&lt;P&gt;[perfmon]&lt;BR /&gt;
interval=300&lt;/P&gt;

&lt;P&gt;[powershell]&lt;BR /&gt;
interval=60&lt;/P&gt;

&lt;P&gt;[powershell2]&lt;BR /&gt;
interval=60&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:14:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358017#M105864</guid>
      <dc:creator>singh321</dc:creator>
      <dc:date>2020-09-29T19:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sum of a column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358018#M105865</link>
      <description>&lt;P&gt;I have first create identities, connection, index (App- Splunk DB connect) and input. i have used both of the input type- Batch and Rising. still facing the issue.  data is not dynamic right now.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 07:05:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358018#M105865</guid>
      <dc:creator>singh321</dc:creator>
      <dc:date>2018-04-25T07:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sum of a column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358019#M105866</link>
      <description>&lt;P&gt;now i have create new sql connection and gave input type- rising column (id)&lt;/P&gt;

&lt;P&gt;i run following sql query on database:&lt;BR /&gt;
select  sum(successDimension1),  sum(successDimension2), sum(successDimension3) from testDB.TranTable&lt;BR /&gt;
// 64152  123787    2258371 which is true&lt;BR /&gt;
i run following query on splunk:&lt;BR /&gt;
index=mysql_testDB_index  | dedup successDimension1 successDimension2 successDimension3 | stats sum(successDimension1) AS successDimension1, sum(successDimension2) as successDimension2, sum(successDimension3) as successDimension3&lt;BR /&gt;
// 64152    123787  2241023   -- sum(successDimension3) are not coming right.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:13:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358019#M105866</guid>
      <dc:creator>singh321</dc:creator>
      <dc:date>2020-09-29T19:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sum of a column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358020#M105867</link>
      <description>&lt;P&gt;Hi.. now i have create new sql connection and gave input type- rising column (id)&lt;/P&gt;

&lt;P&gt;i run following sql query on database:&lt;BR /&gt;
select sum(successDimension1), sum(successDimension2), sum(successDimension3) from testDB.TranTable&lt;BR /&gt;
// 64152 123787 2258371 which is true&lt;BR /&gt;
i run following query on splunk:&lt;BR /&gt;
index=mysql_testDB_index | dedup successDimension1 successDimension2 successDimension3 | stats sum(successDimension1) AS successDimension1, sum(successDimension2) as successDimension2, sum(successDimension3) as successDimension3&lt;BR /&gt;
// 64152 123787 2241023     sum(successDimension3) are not coming right.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:14:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358020#M105867</guid>
      <dc:creator>singh321</dc:creator>
      <dc:date>2020-09-29T19:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sum of a column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358021#M105868</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;When you use &lt;CODE&gt;SELECT sum(successTransaction) FROM testDB.TranTable;&lt;/CODE&gt;the result is  64152  &lt;CODE&gt;OK&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;When you use &lt;CODE&gt;index=mysql_testDB_index | stats sum(successTransaction) as SuccessTransaction&lt;/CODE&gt; the result is  12253032 &lt;CODE&gt;KO&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;And Mathematically :  &lt;CODE&gt;12253032/64152  = 191&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The problem you index the same event several time, because database connect you have in option do that, when you configure db to run by cron expression SO.&lt;/P&gt;

&lt;P&gt;Solution??&lt;/P&gt;

&lt;P&gt;is here &lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/73554/avoid-duplicate-events-using-splunk-db-connect.html"&gt;https://answers.splunk.com/answers/73554/avoid-duplicate-events-using-splunk-db-connect.html&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Happy Splunk
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Apr 2018 12:47:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358021#M105868</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2018-04-25T12:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sum of a column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358022#M105869</link>
      <description>&lt;P&gt;Thanks. there is another option dbxquery. if want to fire sql only.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 06:35:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358022#M105869</guid>
      <dc:creator>singh321</dc:creator>
      <dc:date>2018-04-26T06:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get sum of a column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358023#M105870</link>
      <description>&lt;P&gt;Thanks for giving input type clarification. there is duplicate data in my splunk.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 06:38:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-sum-of-a-column/m-p/358023#M105870</guid>
      <dc:creator>singh321</dc:creator>
      <dc:date>2018-04-26T06:38:06Z</dc:date>
    </item>
  </channel>
</rss>

