<?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: Variance between licence_usage.log and metrics.log in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Variance-between-licence-usage-log-and-metrics-log/m-p/55266#M7049</link>
    <description>&lt;P&gt;Hi Mark,&lt;/P&gt;

&lt;P&gt;no I see no reason why this should be a bad idea. If you see that it will get you any troubles, than simply revert to the original values.&lt;/P&gt;

&lt;P&gt;cheers,&lt;BR /&gt;
MuS&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2013 10:24:07 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2013-03-11T10:24:07Z</dc:date>
    <item>
      <title>Variance between licence_usage.log and metrics.log</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Variance-between-licence-usage-log-and-metrics-log/m-p/55263#M7046</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Using v4.3.3 - I’m attempting to track license usage per index. I have quite a decent discrepancy in figures the license_usage.log and metrics.log&lt;/P&gt;

&lt;P&gt;For example, using the following I get a figure of license used per day… (there is only one license pool)&lt;BR /&gt;
index=_internal source=*license_usage.log type=RolloverSummary | eval GB = b/1024/1024/1024 | eval _time = _time - 43200 | timechart span=1d sum(GB) AS "Total GB used"&lt;BR /&gt;
Sample result is: 59.5&lt;/P&gt;

&lt;P&gt;I’d like to break this down per index. I’m using something quite simple such as:&lt;BR /&gt;
index=_internal source=*metrics.log group="per_index_thruput" | timechart span=1d sum(eval(kb/1024/1024)) AS "GB indexed" by series&lt;BR /&gt;
Sample total result for yesterday is: 55.3&lt;/P&gt;

&lt;P&gt;I realise here that I should exclude summary indexes, etc… However the later search returns less volume than the top and this would only make the difference even greater…&lt;/P&gt;

&lt;P&gt;Furthermore, if I split by throughput group:&lt;BR /&gt;
index=&lt;EM&gt;internal source=*metrics.log | where like(group, "per&lt;/EM&gt;%")|timechart span=1d sum(eval(kb/1024/1024)) by group&lt;/P&gt;

&lt;P&gt;I get the following results over the same interval:&lt;BR /&gt;
license_usage.log: 59.5&lt;BR /&gt;
per_host_thruput: 42.5&lt;BR /&gt;
per_index_thruput: 55.3&lt;BR /&gt;
per_source_thruput: 55.6&lt;BR /&gt;
per_sourcetype_thruput: 53.8&lt;/P&gt;

&lt;P&gt;Seems to be a significant variance – surely the source, sourcetype,index thruput stats should have the same value!? Can anyone make any sense of this or can anyone provide a sensible way for me to get a breakdown of license usage per index without the variances I see here…&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Mark&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:28:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Variance-between-licence-usage-log-and-metrics-log/m-p/55263#M7046</guid>
      <dc:creator>mark</dc:creator>
      <dc:date>2020-09-28T13:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Variance between licence_usage.log and metrics.log</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Variance-between-licence-usage-log-and-metrics-log/m-p/55264#M7047</link>
      <description>&lt;P&gt;Hi mark&lt;/P&gt;

&lt;P&gt;I'll try to answer this:&lt;/P&gt;

&lt;P&gt;In the docs about &lt;CODE&gt;what splunk logs about itself&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Troubleshooting/WhatSplunklogsaboutitself" target="_blank"&gt;link&amp;gt;&lt;/A&gt;, you can find the following information:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;metrics.log&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Contains periodic snapshots of Splunk performance and system data, including information about CPU usage by internal processors and queue usage in Splunk's data processing. The metrics.log file is a sampling of the **top ten items&lt;/EM&gt;* in each category in 30 second intervals, based on the size of _raw. It can be used for limited analysis of volume trends for data inputs.* &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;license_usage.log&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;EM&gt;Indexed volume in bytes per pool, source, sourcetype, and host.&lt;/EM&gt; &lt;/P&gt;

&lt;P&gt;This means, if you want to get reliable information about your license usage you have to use license_usage.log. metrics.log can provide different results, because it only contains the top 10 hot data sources. You can change this setting in the &lt;CODE&gt;[metrics]&lt;/CODE&gt; stanza in &lt;CODE&gt;limits.conf&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Find further information on working with metrics.log &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Troubleshooting/Metricslog" target="_blank"&gt;here&amp;gt;&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;hope this helps and if my answer was wrong, I'm sure hexx and/or Ayn can provide a superb and detailed one &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;cheers,&lt;/P&gt;

&lt;P&gt;MuS&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:28:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Variance-between-licence-usage-log-and-metrics-log/m-p/55264#M7047</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2020-09-28T13:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Variance between licence_usage.log and metrics.log</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Variance-between-licence-usage-log-and-metrics-log/m-p/55265#M7048</link>
      <description>&lt;P&gt;Hi MuS&lt;/P&gt;

&lt;P&gt;That completely answers my questions with regard to the difference between the various thruput volume and also between metrics.log and license_usage.log.&lt;/P&gt;

&lt;P&gt;A final question though.For more accurate volume per index reporting, would you believe is any performance hit in increasing the [metrics] maxseries significantly? 10x more series and also 10x less frequent.&lt;/P&gt;

&lt;P&gt;[metrics]&lt;BR /&gt;
maxseries=100&lt;BR /&gt;
interval=300&lt;/P&gt;

&lt;P&gt;This I assume would make the per index volumes in metrics.log much closer to actual volume count in license_usage.log.&lt;/P&gt;

&lt;P&gt;Any reason you can see why this would be a bad idea?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Mark&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2013 23:02:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Variance-between-licence-usage-log-and-metrics-log/m-p/55265#M7048</guid>
      <dc:creator>mark</dc:creator>
      <dc:date>2013-03-10T23:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Variance between licence_usage.log and metrics.log</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Variance-between-licence-usage-log-and-metrics-log/m-p/55266#M7049</link>
      <description>&lt;P&gt;Hi Mark,&lt;/P&gt;

&lt;P&gt;no I see no reason why this should be a bad idea. If you see that it will get you any troubles, than simply revert to the original values.&lt;/P&gt;

&lt;P&gt;cheers,&lt;BR /&gt;
MuS&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2013 10:24:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Variance-between-licence-usage-log-and-metrics-log/m-p/55266#M7049</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-03-11T10:24:07Z</dc:date>
    </item>
  </channel>
</rss>

