<?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: License usage by sourcetype in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Does-anyone-have-a-search-that-can-break-down-KBs-by-sourcetype/m-p/12931#M158</link>
    <description>&lt;P&gt;Here is a search you may find helpful, it does not 100% correlate to license usage, but you can get it pretty close by filtering out internal sourcetypes.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
  &lt;P&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd source=*metrics* "group=per_sourcetype_thruput" NOT series="filetrackercrclog" NOT series="splunk*" NOT series="audittrail" NOT series="scheduler" NOT series="searches" NOT series="stash" | eval events=eps*kb/kbps | stats sum(events) as events sum(kb) as kb by series | eval events=round(events,0) | eval kb=round(kb,1)&lt;/CODE&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;This search gives you the event count and kb by series (in this case &lt;EM&gt;series&lt;/EM&gt; means &lt;EM&gt;sourcetype&lt;/EM&gt;).  &lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Note that this is assuming your are on the latest 4.0.x release or any 4.1.x release, otherwise you should take out the &lt;CODE&gt;NOT series="stash"&lt;/CODE&gt; part because summary indexing does count towards your licensing in older releases.&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;I've run into issues trying to do meaningful things with the &lt;CODE&gt;kbps&lt;/CODE&gt; metric for 2 reasons:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;if you are looking at long-term analysis, you can't do much with it because it's already an average, so doing &lt;CODE&gt;avg(kbps)&lt;/CODE&gt; further skews your number.&lt;/LI&gt;
&lt;LI&gt;Metrics are only recorded for series that are part of the top 10 active series.  So it's likely that a sourcetype that varies in volume during the day will drop out of sight until the volume level increases again.  Normally this isn't too big of a deal...  (BTW, you can change the number of series to capture in &lt;CODE&gt;limits.conf&lt;/CODE&gt;, look for the &lt;CODE&gt;metrics&lt;/CODE&gt; stanza.)&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;If you are simply trying to get a view of activity at this moment or look for spikes, then &lt;CODE&gt;kbps&lt;/CODE&gt; can be helpful, but for longer-term analysis I recommend looking at actual data indexed in terms of &lt;CODE&gt;kb&lt;/CODE&gt; or &lt;CODE&gt;events&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;I wish that splunk gave you some additional metrics that indicated what was counting towards your license usage, but I don't think that information exists (other than the daily &lt;CODE&gt;LicenseManager-Audit&lt;/CODE&gt; message).  I think this is as good as it gets in the current release.&lt;/P&gt;</description>
    <pubDate>Wed, 05 May 2010 20:15:45 GMT</pubDate>
    <dc:creator>Lowell</dc:creator>
    <dc:date>2010-05-05T20:15:45Z</dc:date>
    <item>
      <title>Does anyone have a search that can break down KBs by sourcetype?</title>
      <link>https://community.splunk.com/t5/Installation/Does-anyone-have-a-search-that-can-break-down-KBs-by-sourcetype/m-p/12930#M157</link>
      <description>&lt;P&gt;Does anyone have a search that can break down kbs by sourcetype?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 18:44:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Does-anyone-have-a-search-that-can-break-down-KBs-by-sourcetype/m-p/12930#M157</guid>
      <dc:creator>dcroteau</dc:creator>
      <dc:date>2020-06-23T18:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: License usage by sourcetype</title>
      <link>https://community.splunk.com/t5/Installation/Does-anyone-have-a-search-that-can-break-down-KBs-by-sourcetype/m-p/12931#M158</link>
      <description>&lt;P&gt;Here is a search you may find helpful, it does not 100% correlate to license usage, but you can get it pretty close by filtering out internal sourcetypes.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
  &lt;P&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd source=*metrics* "group=per_sourcetype_thruput" NOT series="filetrackercrclog" NOT series="splunk*" NOT series="audittrail" NOT series="scheduler" NOT series="searches" NOT series="stash" | eval events=eps*kb/kbps | stats sum(events) as events sum(kb) as kb by series | eval events=round(events,0) | eval kb=round(kb,1)&lt;/CODE&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;This search gives you the event count and kb by series (in this case &lt;EM&gt;series&lt;/EM&gt; means &lt;EM&gt;sourcetype&lt;/EM&gt;).  &lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Note that this is assuming your are on the latest 4.0.x release or any 4.1.x release, otherwise you should take out the &lt;CODE&gt;NOT series="stash"&lt;/CODE&gt; part because summary indexing does count towards your licensing in older releases.&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;I've run into issues trying to do meaningful things with the &lt;CODE&gt;kbps&lt;/CODE&gt; metric for 2 reasons:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;if you are looking at long-term analysis, you can't do much with it because it's already an average, so doing &lt;CODE&gt;avg(kbps)&lt;/CODE&gt; further skews your number.&lt;/LI&gt;
&lt;LI&gt;Metrics are only recorded for series that are part of the top 10 active series.  So it's likely that a sourcetype that varies in volume during the day will drop out of sight until the volume level increases again.  Normally this isn't too big of a deal...  (BTW, you can change the number of series to capture in &lt;CODE&gt;limits.conf&lt;/CODE&gt;, look for the &lt;CODE&gt;metrics&lt;/CODE&gt; stanza.)&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;If you are simply trying to get a view of activity at this moment or look for spikes, then &lt;CODE&gt;kbps&lt;/CODE&gt; can be helpful, but for longer-term analysis I recommend looking at actual data indexed in terms of &lt;CODE&gt;kb&lt;/CODE&gt; or &lt;CODE&gt;events&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;I wish that splunk gave you some additional metrics that indicated what was counting towards your license usage, but I don't think that information exists (other than the daily &lt;CODE&gt;LicenseManager-Audit&lt;/CODE&gt; message).  I think this is as good as it gets in the current release.&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2010 20:15:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Does-anyone-have-a-search-that-can-break-down-KBs-by-sourcetype/m-p/12931#M158</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-05-05T20:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: License usage by sourcetype</title>
      <link>https://community.splunk.com/t5/Installation/Does-anyone-have-a-search-that-can-break-down-KBs-by-sourcetype/m-p/12932#M159</link>
      <description>&lt;P&gt;I am looking for something similar, I want to get a breakdwon by not only sourcetype, but by server. &lt;/P&gt;

&lt;P&gt;Ideally, I want a chart that has:&lt;/P&gt;

&lt;P&gt;Sourcetype  Hostname   Events   KB  &lt;/P&gt;

&lt;P&gt;I would take something that just has events, and not KB as well.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2010 22:20:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Does-anyone-have-a-search-that-can-break-down-KBs-by-sourcetype/m-p/12932#M159</guid>
      <dc:creator>tawollen</dc:creator>
      <dc:date>2010-08-05T22:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: License usage by sourcetype</title>
      <link>https://community.splunk.com/t5/Installation/Does-anyone-have-a-search-that-can-break-down-KBs-by-sourcetype/m-p/12933#M160</link>
      <description>&lt;P&gt;One option is to install the "Splunk License Usage" app available here.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunkbase.com/apps/All/4.x/App/app:Splunk+License+Usage" rel="nofollow"&gt;http://www.splunkbase.com/apps/All/4.x/App/app:Splunk+License+Usage&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2010 23:36:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Does-anyone-have-a-search-that-can-break-down-KBs-by-sourcetype/m-p/12933#M160</guid>
      <dc:creator>cdthompso1</dc:creator>
      <dc:date>2010-08-19T23:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: License usage by sourcetype</title>
      <link>https://community.splunk.com/t5/Installation/Does-anyone-have-a-search-that-can-break-down-KBs-by-sourcetype/m-p/12934#M161</link>
      <description>&lt;P&gt;Search relevant for this Question from the app:&lt;/P&gt;

&lt;P&gt;kBs Indexed in Past 24 Hours by Sourcetype&lt;/P&gt;

&lt;P&gt;search = index="_internal" source="*metrics.log" per_sourcetype_thruput | timechart sum(kb) by series&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:21:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Does-anyone-have-a-search-that-can-break-down-KBs-by-sourcetype/m-p/12934#M161</guid>
      <dc:creator>stanwin</dc:creator>
      <dc:date>2020-09-28T20:21:43Z</dc:date>
    </item>
  </channel>
</rss>

