<?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: How to validate license numbers in Installation</title>
    <link>https://community.splunk.com/t5/Installation/How-to-validate-actual-GB-count-of-license-usage/m-p/242743#M3784</link>
    <description>&lt;P&gt;This is spot on. Summarizing: You have bytes (b) broken down by source (s), sourcetype (st), host (h), etc... in the license_usage.log when type=Usage. It's possible that those get collapsed if usage is too intense. So as &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/172708"&gt;@martin_mueller&lt;/a&gt; points out, there are other data points that can be used OR go to the data itself with an &lt;CODE&gt;eval size = len(_raw)&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;If these numbers add up and the customer is still pushing back, feel free to engage the account team from Splunk for assistance.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 11:54:15 GMT</pubDate>
    <dc:creator>sloshburch</dc:creator>
    <dc:date>2020-09-29T11:54:15Z</dc:date>
    <item>
      <title>How to validate actual GB count of license usage?</title>
      <link>https://community.splunk.com/t5/Installation/How-to-validate-actual-GB-count-of-license-usage/m-p/242738#M3779</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a customer who is challenging the license numbers being reported by Splunk for his hosts. Is there a way to actually count the number of bytes for all of his events over a time period?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 00:20:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-validate-actual-GB-count-of-license-usage/m-p/242738#M3779</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2020-06-17T00:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to validate license numbers</title>
      <link>https://community.splunk.com/t5/Installation/How-to-validate-actual-GB-count-of-license-usage/m-p/242739#M3780</link>
      <description>&lt;P&gt;Well you could use Splunk to count it for you, but if you suspect Splunk is reporting it incorrectly then this may not solve your problem.. You will have to go and tally up the file sizes on the servers between a specific time period and sum them up &lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2016 21:40:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-validate-actual-GB-count-of-license-usage/m-p/242739#M3780</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2016-11-19T21:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to validate license numbers</title>
      <link>https://community.splunk.com/t5/Installation/How-to-validate-actual-GB-count-of-license-usage/m-p/242740#M3781</link>
      <description>&lt;P&gt;I'd rather go the route of having Splunk count it, at least initially.  How can I do that?  &lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2016 22:22:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-validate-actual-GB-count-of-license-usage/m-p/242740#M3781</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2016-11-19T22:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to validate license numbers</title>
      <link>https://community.splunk.com/t5/Installation/How-to-validate-actual-GB-count-of-license-usage/m-p/242741#M3782</link>
      <description>&lt;P&gt;You can get an approximate count of character length in events by doing average of len(_raw) over a small set of events and then multiply the average length with the total eventcount using |tstats and convert your # of characters into bytes, MB and so on.. again this is clearly an approximation but gives you fair idea&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2016 02:41:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-validate-actual-GB-count-of-license-usage/m-p/242741#M3782</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2016-11-20T02:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to validate license numbers</title>
      <link>https://community.splunk.com/t5/Installation/How-to-validate-actual-GB-count-of-license-usage/m-p/242742#M3783</link>
      <description>&lt;P&gt;Depending on the amount of data and what parts of Splunk's internal counting you trust or mistrust, there are several approaches.&lt;/P&gt;

&lt;P&gt;In any case, you're probably comparing against the license usage view, so Settings -&amp;gt; License or something like that on your license master. That's nice visually, but underneath there is anactual log you want to look at: &lt;CODE&gt;index=_internal source=*license_usage* component=LicenseUsage&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;type=RolloverSummary&lt;/CODE&gt; has daily summaries, that's what is displayed in the 30-day view by default.&lt;BR /&gt;
&lt;CODE&gt;type=Usage&lt;/CODE&gt; has detailed usage on 30-second intervals iirc, that's displayed in the 30-day view if you split by some of the more specific fields.&lt;/P&gt;

&lt;P&gt;Assuming the view itself isn't broken and is reporting that log correctly, you'll want to compare other sources of information against that log. You can use short timespans and compare with Usage over that span, or whole days and compare with RolloverSummary, or both.&lt;/P&gt;

&lt;P&gt;As for other sources of info, here are a few ideas.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;brute force&lt;BR /&gt;
Pick a suspicious, high-volume set of data like a certain sourcetype or index, and pipe it through &lt;CODE&gt;| eval length = length(_raw) | stats sum(length)&lt;/CODE&gt;, then compare that number to the data you get from license usage logging. The search may be unfeasible for larger sets of data, but should be most precise.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;metrics logging&lt;BR /&gt;
In the internal index there's also &lt;CODE&gt;source=*metrics*&lt;/CODE&gt; that provides a second source of data. It won't always line up with licensing, but for your larger indexes, sourcetypes, etc. the &lt;CODE&gt;group=per_index_thruput&lt;/CODE&gt; or &lt;CODE&gt;group=per_sourcetype_thruput&lt;/CODE&gt; should be pretty good data.&lt;BR /&gt;
For a twist, forwarders also log metrics... but getting the right metric from the right set of forwarders can be tricky. I'd recommend starting with indexer metrics logs.&lt;BR /&gt;
You might ask "but that's splunk counting, I don't trust splunk's counting!" ... well yeah, but assuming the license counter had a bug in your case, the metrics counter might not have that same bug.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;dbinspect&lt;BR /&gt;
This should be the fastest, least-splunk-counter-dependent way... but also the least accurate. When you run &lt;CODE&gt;| dbinspect index=foo&lt;/CODE&gt; you get a &lt;CODE&gt;rawSize&lt;/CODE&gt; field for each bucket. If you have an index that has never had buckets rolled out and you have license usage log data for the entire life of the index, comparing the total &lt;CODE&gt;rawSize&lt;/CODE&gt; should line up with the total license usage for that index.&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Finally, make sure you're comparing apples with apples.&lt;BR /&gt;
Have you looked at all indexers connected to your license master?&lt;BR /&gt;
Have you looked at all data for the to-be-compared time range? There could be data for yesterday coming in today, so it'll be timerange-sorted into yesterday but license-reported into today.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2016 17:56:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-validate-actual-GB-count-of-license-usage/m-p/242742#M3783</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-11-20T17:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to validate license numbers</title>
      <link>https://community.splunk.com/t5/Installation/How-to-validate-actual-GB-count-of-license-usage/m-p/242743#M3784</link>
      <description>&lt;P&gt;This is spot on. Summarizing: You have bytes (b) broken down by source (s), sourcetype (st), host (h), etc... in the license_usage.log when type=Usage. It's possible that those get collapsed if usage is too intense. So as &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/172708"&gt;@martin_mueller&lt;/a&gt; points out, there are other data points that can be used OR go to the data itself with an &lt;CODE&gt;eval size = len(_raw)&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;If these numbers add up and the customer is still pushing back, feel free to engage the account team from Splunk for assistance.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:54:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-validate-actual-GB-count-of-license-usage/m-p/242743#M3784</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2020-09-29T11:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to validate license numbers</title>
      <link>https://community.splunk.com/t5/Installation/How-to-validate-actual-GB-count-of-license-usage/m-p/242744#M3785</link>
      <description>&lt;P&gt;Cross referencing similar post: &lt;A href="https://answers.splunk.com/answers/476227/help-with-license-validation.html"&gt;https://answers.splunk.com/answers/476227/help-with-license-validation.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 13:17:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-validate-actual-GB-count-of-license-usage/m-p/242744#M3785</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2016-11-21T13:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to validate license numbers</title>
      <link>https://community.splunk.com/t5/Installation/How-to-validate-actual-GB-count-of-license-usage/m-p/242745#M3786</link>
      <description>&lt;P&gt;Gooooood info.  Thanks!  &lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 18:21:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-validate-actual-GB-count-of-license-usage/m-p/242745#M3786</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2016-11-22T18:21:52Z</dc:date>
    </item>
  </channel>
</rss>

