<?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 Summarize field by specific field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Summarize-field-by-specific-field/m-p/370030#M169859</link>
    <description>&lt;P&gt;Hey All,&lt;/P&gt;

&lt;P&gt;I'm trying to accomplish a search here that  seems so simple but I got stucked. I have this one where give me all Origination who made a call, good so far:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=xyz Dur&amp;gt;0  OTG=* Int_DTG=Brazil
| top route_name, OTG limit=0 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I got all customers that called to Brazil, here I got 100 events on statistics area but grouped as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;OTG | Count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the count here is how many times the OTG made the call.&lt;/P&gt;

&lt;P&gt;Sample:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;OTG - Wesley Franklin | Count 40 calls
OTG - Jhon | Count 60
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The total here is 100. I just want to made count/summ of all Count by OTG field that shows me a simple math as 100&lt;/P&gt;

&lt;P&gt;Sorry if it's no clear I will really appreciate your patience and time.&lt;/P&gt;

&lt;P&gt;Thank you so much.&lt;/P&gt;</description>
    <pubDate>Sat, 28 Apr 2018 04:47:33 GMT</pubDate>
    <dc:creator>WesleyFranklin</dc:creator>
    <dc:date>2018-04-28T04:47:33Z</dc:date>
    <item>
      <title>Summarize field by specific field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Summarize-field-by-specific-field/m-p/370030#M169859</link>
      <description>&lt;P&gt;Hey All,&lt;/P&gt;

&lt;P&gt;I'm trying to accomplish a search here that  seems so simple but I got stucked. I have this one where give me all Origination who made a call, good so far:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=xyz Dur&amp;gt;0  OTG=* Int_DTG=Brazil
| top route_name, OTG limit=0 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I got all customers that called to Brazil, here I got 100 events on statistics area but grouped as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;OTG | Count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the count here is how many times the OTG made the call.&lt;/P&gt;

&lt;P&gt;Sample:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;OTG - Wesley Franklin | Count 40 calls
OTG - Jhon | Count 60
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The total here is 100. I just want to made count/summ of all Count by OTG field that shows me a simple math as 100&lt;/P&gt;

&lt;P&gt;Sorry if it's no clear I will really appreciate your patience and time.&lt;/P&gt;

&lt;P&gt;Thank you so much.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Apr 2018 04:47:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Summarize-field-by-specific-field/m-p/370030#M169859</guid>
      <dc:creator>WesleyFranklin</dc:creator>
      <dc:date>2018-04-28T04:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize field by specific field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Summarize-field-by-specific-field/m-p/370031#M169860</link>
      <description>&lt;P&gt;If I read your question correctly, simply add to the end of your search &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
| addcoltotals
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That might do what you want.  If it doesn't, please provide the search you use and a sample event or two so that we have a better idea of what you have now.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Apr 2018 21:50:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Summarize-field-by-specific-field/m-p/370031#M169860</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2018-04-28T21:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize field by specific field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Summarize-field-by-specific-field/m-p/370032#M169861</link>
      <description>&lt;P&gt;Hey,&lt;BR /&gt;
Maybe I haven't explained it correctly, let's break it down:&lt;/P&gt;

&lt;P&gt;So my current search it's:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=Brazil Dur&amp;gt;0 dn=026*
| top OTG limit=0
| fields - percent
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Well, here I will get: All customers from Brazil that are calling using dialed number 026 (at the beginning, dn field) and its source by OTG field then I got something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| OTG     | count | 
| Wesley  | 50 calls
| Jhon    | 50 calls
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where: OTG stands for Origination customer.&lt;/P&gt;

&lt;P&gt;I'm getting 2differents OTG here I'd like to count it like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| OTG |
| 10  |
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sorry if what I put firstly isn't that.&lt;/P&gt;

&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Apr 2018 22:45:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Summarize-field-by-specific-field/m-p/370032#M169861</guid>
      <dc:creator>WesleyFranklin</dc:creator>
      <dc:date>2018-04-28T22:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize field by specific field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Summarize-field-by-specific-field/m-p/370033#M169862</link>
      <description>&lt;P&gt;So skip the &lt;CODE&gt;top&lt;/CODE&gt; and do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=Brazil Dur&amp;gt;0 dn=026*
| stats count BY OTG
| sort 0 - count
| addtotals row=f col=t
| fillnull value="TOTAL"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Apr 2018 19:28:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Summarize-field-by-specific-field/m-p/370033#M169862</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-04-30T19:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize field by specific field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Summarize-field-by-specific-field/m-p/370034#M169863</link>
      <description>&lt;P&gt;how do you use makeresults command to generate this kind of sample eventset. I want to try this on my system &lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 20:58:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Summarize-field-by-specific-field/m-p/370034#M169863</guid>
      <dc:creator>macadminrohit</dc:creator>
      <dc:date>2018-04-30T20:58:59Z</dc:date>
    </item>
  </channel>
</rss>

