<?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: CDR - Calculate number of Active Calls at any give time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/CDR-Calculate-number-of-Active-Calls-at-any-give-time/m-p/69673#M17462</link>
    <description>&lt;P&gt;Thanks. Looks like it did the trick!!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2011 14:14:58 GMT</pubDate>
    <dc:creator>hemantbhatta</dc:creator>
    <dc:date>2011-03-29T14:14:58Z</dc:date>
    <item>
      <title>CDR - Calculate number of Active Calls at any give time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CDR-Calculate-number-of-Active-Calls-at-any-give-time/m-p/69671#M17460</link>
      <description>&lt;P&gt;Hi, I am trying to calculate the number of Active Calls at any &lt;EM&gt;'given time'&lt;/EM&gt; from Call Detail Records (CDR). CDRs store the &lt;EM&gt;'callConnect'&lt;/EM&gt; and &lt;EM&gt;'callDisconnect'&lt;/EM&gt; time in a single CDR event. Logically speaking at any &lt;EM&gt;'given time'&lt;/EM&gt; the number of active calls = number of CDR events that have &lt;EM&gt;'callDisconnect' &amp;gt; 'given time'&lt;/EM&gt; (while evaluating all the CDR call records older than &lt;EM&gt;'given time'&lt;/EM&gt;). How can we implement this as Splunk search Querry? Any ideas. 
Thanks.
HB.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2011 10:24:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CDR-Calculate-number-of-Active-Calls-at-any-give-time/m-p/69671#M17460</guid>
      <dc:creator>hemantbhatta</dc:creator>
      <dc:date>2011-03-29T10:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: CDR - Calculate number of Active Calls at any give time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CDR-Calculate-number-of-Active-Calls-at-any-give-time/m-p/69672#M17461</link>
      <description>&lt;P&gt;You can use the &lt;CODE&gt;concurrency&lt;/CODE&gt; command, and let's assume that &lt;CODE&gt;callConnect&lt;/CODE&gt; is set as the Splunk event timestamp, i.e., &lt;CODE&gt;_time&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=mycdrs | eval dur = callDisconnect-_time | concurrency duration=dur
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Depending on the format, you may have to apply the &lt;CODE&gt;strptime()&lt;/CODE&gt; function to convert &lt;CODE&gt;callDisconnect&lt;/CODE&gt; to epoch time (&lt;CODE&gt;_time&lt;/CODE&gt; will already be in epoch time), but the above is pretty much it.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2011 11:10:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CDR-Calculate-number-of-Active-Calls-at-any-give-time/m-p/69672#M17461</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-03-29T11:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: CDR - Calculate number of Active Calls at any give time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/CDR-Calculate-number-of-Active-Calls-at-any-give-time/m-p/69673#M17462</link>
      <description>&lt;P&gt;Thanks. Looks like it did the trick!!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2011 14:14:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/CDR-Calculate-number-of-Active-Calls-at-any-give-time/m-p/69673#M17462</guid>
      <dc:creator>hemantbhatta</dc:creator>
      <dc:date>2011-03-29T14:14:58Z</dc:date>
    </item>
  </channel>
</rss>

