<?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: Dumb question - average of a count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Dumb-question-average-of-a-count/m-p/59153#M14565</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;index=corrtest sourcetype=AS-CDR
| rex field=AS_Local_Call_ID "(?P&amp;lt;AS_Local_Call_ID_Trimmed&amp;gt;\d+)(?=:)" 
| stats count by AS_Local_Call_ID_Trimmed
| stats avg(count)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 17 Aug 2011 15:45:13 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2011-08-17T15:45:13Z</dc:date>
    <item>
      <title>Dumb question - average of a count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dumb-question-average-of-a-count/m-p/59152#M14564</link>
      <description>&lt;P&gt;Hey everyone. I'm having a dumb moment, so please be gentle.&lt;BR /&gt;
I have a number of records, and each one has an ID to identify which set of transactions it belongs to (Local_Call_ID_Trimmed). What I am trying to do is find out what the average number of records is, per transaction. Here is what I'm currently using, which isn't working. I'm not really interested in sorting it in any particular way so i'm not sure if the "by" statement is needed.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=corrtest sourcetype=AS-CDR|rex field=AS_Local_Call_ID "(?P&amp;lt;AS_Local_Call_ID_Trimmed&amp;gt;\d+)(?=:)"|stats avg(count(AS_Local_Call_ID_Trimmed)) by AS_Local_Call_ID_Trimmed
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I know this should be way easier than it is, but for some reason my brain isn't working this morning &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Any help would be appreciated. thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:48:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dumb-question-average-of-a-count/m-p/59152#M14564</guid>
      <dc:creator>msarro</dc:creator>
      <dc:date>2020-09-28T09:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dumb question - average of a count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dumb-question-average-of-a-count/m-p/59153#M14565</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=corrtest sourcetype=AS-CDR
| rex field=AS_Local_Call_ID "(?P&amp;lt;AS_Local_Call_ID_Trimmed&amp;gt;\d+)(?=:)" 
| stats count by AS_Local_Call_ID_Trimmed
| stats avg(count)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Aug 2011 15:45:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dumb-question-average-of-a-count/m-p/59153#M14565</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-08-17T15:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dumb question - average of a count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dumb-question-average-of-a-count/m-p/59154#M14566</link>
      <description>&lt;P&gt;Worked wonderfully, thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2011 16:11:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dumb-question-average-of-a-count/m-p/59154#M14566</guid>
      <dc:creator>msarro</dc:creator>
      <dc:date>2011-08-17T16:11:46Z</dc:date>
    </item>
  </channel>
</rss>

