<?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: Using Asterisk's CDR stats from a CSV file, how can I create a report showing the sum of duration values per extension? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Using-Asterisk-s-CDR-stats-from-a-CSV-file-how-can-I-create-a/m-p/264012#M50659</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;sourcetype = "cdr" | stats sum(duration) by src 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Doesn't give you what you need?  When you say the entries in src are not unique, what other field makes a unique extension?  Or is it a combination of fields?&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2016 01:47:36 GMT</pubDate>
    <dc:creator>Jeremiah</dc:creator>
    <dc:date>2016-02-03T01:47:36Z</dc:date>
    <item>
      <title>Using Asterisk's CDR stats from a CSV file, how can I create a report showing the sum of duration values per extension?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-Asterisk-s-CDR-stats-from-a-CSV-file-how-can-I-create-a/m-p/264011#M50658</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;

&lt;P&gt;I am working with asterisk's cdr stats from a CSV file. &lt;/P&gt;

&lt;P&gt;Sample content of CSV:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; accountcode, src, dst, dcontext, clid, channel, dstchannel, lastapp, lastdata, start, answer, end, duration, billsec, disposition, amaflags, uniqueid, userfield 

 "","2013","1245876543","from-internal","""Mobile"" &amp;lt;2013&amp;gt;","SIP/2013-00001127","SIP/Goip-chan14-020112b","Dial","SIP/Goip-chan1/43174242618,300,","2016-02-02 22:14:15",,"2016-02-02 22:14:49",34,0,"ANSWERED","DOCUMENTATION","1454451255.4391","" 

  "","2013","12376530","from-internal","""Mobile"" &amp;lt;2013&amp;gt;","SIP/2013-00001121","SIP/Goip-chan12-00001123","Dial","SIP/Goip-chan12/23174849618,300,","2016-02-02 22:13:39",,"2016-02-02 22:14:11",32,0,"ANSWERED","DOCUMENTATION","1454451219.4385",""
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to show in a report the total "on-air" time by source extension, meaning a sum of the &lt;CODE&gt;duration&lt;/CODE&gt; value per extension. I tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype = "cdr" | table src, duration | addcolstats duration
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But doesn't work because the entries in src are not unique. Also, I tried using stats and top, but I can't show a unique list of extensions and the total duration time per day.&lt;/P&gt;

&lt;P&gt;Any suggestions?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 22:27:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-Asterisk-s-CDR-stats-from-a-CSV-file-how-can-I-create-a/m-p/264011#M50658</guid>
      <dc:creator>changux</dc:creator>
      <dc:date>2016-02-02T22:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using Asterisk's CDR stats from a CSV file, how can I create a report showing the sum of duration values per extension?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-Asterisk-s-CDR-stats-from-a-CSV-file-how-can-I-create-a/m-p/264012#M50659</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;sourcetype = "cdr" | stats sum(duration) by src 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Doesn't give you what you need?  When you say the entries in src are not unique, what other field makes a unique extension?  Or is it a combination of fields?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 01:47:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-Asterisk-s-CDR-stats-from-a-CSV-file-how-can-I-create-a/m-p/264012#M50659</guid>
      <dc:creator>Jeremiah</dc:creator>
      <dc:date>2016-02-03T01:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using Asterisk's CDR stats from a CSV file, how can I create a report showing the sum of duration values per extension?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-Asterisk-s-CDR-stats-from-a-CSV-file-how-can-I-create-a/m-p/264013#M50660</link>
      <description>&lt;P&gt;Thanks. Very useful.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 18:03:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-Asterisk-s-CDR-stats-from-a-CSV-file-how-can-I-create-a/m-p/264013#M50660</guid>
      <dc:creator>changux</dc:creator>
      <dc:date>2016-02-10T18:03:10Z</dc:date>
    </item>
  </channel>
</rss>

