<?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 License Usage past 30 days does not work. (Distributed Management Console) in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/License-Usage-past-30-days-does-not-work-Distributed-Management/m-p/243878#M8015</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Overview of Issue&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I've seen a few discussions on this topic, but none of them seem clear to me. We have two indexers configured as license slaves that report back to our license master. The license master runs on the same server as the Distributed Management Console. The indexers are also setup as search peers from the DMC console.  I'm not sure why I would want to forward my DMC _internal events to the indexers when the indexers specifically state that they report licensing info back to the DMC. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;The default search returns no results:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;index=_internal host=lspldmc source=*license_usage.log type="RolloverSummary" earliest=-30d@d   | eval _time=_time - 43200 | bin _time span=1d | stats latest(b) AS b by slave, pool, _time | timechart span=1d sum(b) AS "volume" fixedrange=false | join type=outer _time [search index=_internal host=lspldmc source=*license_usage.log type="RolloverSummary" earliest=-30d@d | eval _time=_time - 43200 | bin _time span=1d | stats latest(stacksz) AS "stack size" by _time] | fields - _timediff  | foreach * [eval &amp;lt;&amp;gt;=round('&amp;lt;&amp;gt;'/1024/1024/1024, 3)]&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Returns accurate license data&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;index=_internal splunk_server=local source=*license_usage.log type="RolloverSummary" earliest=-30d@d   | eval _time=_time - 43200 | bin _time span=1d | stats latest(b) AS b by slave, pool, _time | timechart span=1d sum(b) AS "volume" fixedrange=false | join type=outer _time [search index=_internal host=lspldmc source=*license_usage.log type="RolloverSummary" earliest=-30d@d | eval _time=_time - 43200 | bin _time span=1d | stats latest(stacksz) AS "stack size" by _time] | fields - _timediff  | foreach * [eval &amp;lt;&amp;gt;=round('&amp;lt;&amp;gt;'/1024/1024/1024, 3)]&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Troubleshooting&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Running the below search from the dmc returns the event below.&lt;/P&gt;

&lt;P&gt;index=_internal source=*license_usage.log&lt;/P&gt;

&lt;P&gt;03-03-2016 19:08:01.766 -0600 INFO  LicenseUsage - type=Message - License usage logging not available for slave licensing instances, please see license_usage.log on license master=&lt;A href="https://lspldmc:8089" target="_blank"&gt;https://lspldmc:8089&lt;/A&gt; for usage breakdown&lt;/P&gt;

&lt;P&gt;The two hosts searched are my indexers.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Links already researched:&lt;/STRONG&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/LicenseUsageReportViewexamples" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/LicenseUsageReportViewexamples&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://answers.splunk.com/answers/113466/license-usage-past-30-days-dont-work.html" target="_blank"&gt;https://answers.splunk.com/answers/113466/license-usage-past-30-days-dont-work.html&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Tue, 29 Sep 2020 09:04:13 GMT</pubDate>
    <dc:creator>pattokt</dc:creator>
    <dc:date>2020-09-29T09:04:13Z</dc:date>
    <item>
      <title>License Usage past 30 days does not work. (Distributed Management Console)</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/License-Usage-past-30-days-does-not-work-Distributed-Management/m-p/243878#M8015</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Overview of Issue&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I've seen a few discussions on this topic, but none of them seem clear to me. We have two indexers configured as license slaves that report back to our license master. The license master runs on the same server as the Distributed Management Console. The indexers are also setup as search peers from the DMC console.  I'm not sure why I would want to forward my DMC _internal events to the indexers when the indexers specifically state that they report licensing info back to the DMC. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;The default search returns no results:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;index=_internal host=lspldmc source=*license_usage.log type="RolloverSummary" earliest=-30d@d   | eval _time=_time - 43200 | bin _time span=1d | stats latest(b) AS b by slave, pool, _time | timechart span=1d sum(b) AS "volume" fixedrange=false | join type=outer _time [search index=_internal host=lspldmc source=*license_usage.log type="RolloverSummary" earliest=-30d@d | eval _time=_time - 43200 | bin _time span=1d | stats latest(stacksz) AS "stack size" by _time] | fields - _timediff  | foreach * [eval &amp;lt;&amp;gt;=round('&amp;lt;&amp;gt;'/1024/1024/1024, 3)]&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Returns accurate license data&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;index=_internal splunk_server=local source=*license_usage.log type="RolloverSummary" earliest=-30d@d   | eval _time=_time - 43200 | bin _time span=1d | stats latest(b) AS b by slave, pool, _time | timechart span=1d sum(b) AS "volume" fixedrange=false | join type=outer _time [search index=_internal host=lspldmc source=*license_usage.log type="RolloverSummary" earliest=-30d@d | eval _time=_time - 43200 | bin _time span=1d | stats latest(stacksz) AS "stack size" by _time] | fields - _timediff  | foreach * [eval &amp;lt;&amp;gt;=round('&amp;lt;&amp;gt;'/1024/1024/1024, 3)]&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Troubleshooting&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Running the below search from the dmc returns the event below.&lt;/P&gt;

&lt;P&gt;index=_internal source=*license_usage.log&lt;/P&gt;

&lt;P&gt;03-03-2016 19:08:01.766 -0600 INFO  LicenseUsage - type=Message - License usage logging not available for slave licensing instances, please see license_usage.log on license master=&lt;A href="https://lspldmc:8089" target="_blank"&gt;https://lspldmc:8089&lt;/A&gt; for usage breakdown&lt;/P&gt;

&lt;P&gt;The two hosts searched are my indexers.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Links already researched:&lt;/STRONG&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/LicenseUsageReportViewexamples" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/LicenseUsageReportViewexamples&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://answers.splunk.com/answers/113466/license-usage-past-30-days-dont-work.html" target="_blank"&gt;https://answers.splunk.com/answers/113466/license-usage-past-30-days-dont-work.html&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:04:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/License-Usage-past-30-days-does-not-work-Distributed-Management/m-p/243878#M8015</guid>
      <dc:creator>pattokt</dc:creator>
      <dc:date>2020-09-29T09:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: License Usage past 30 days does not work. (Distributed Management Console)</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/License-Usage-past-30-days-does-not-work-Distributed-Management/m-p/243879#M8016</link>
      <description>&lt;P&gt;I use this search and i believe that it should work in your environment as well (I might be wrong &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; )&lt;/P&gt;

&lt;P&gt;index=_internal source=&lt;EM&gt;license_usage&lt;/EM&gt; (type=Usage OR type=RolloverSummary) earliest=-30d&lt;BR /&gt;
 | timechart span=1d sum(eval(if(type="Usage", b, 0))) AS volume max(eval(if(type="RolloverSummary", stacksz, 0))) AS limit&lt;BR /&gt;
 | eval volume=round((volume / 1024 / 1024 / 1024), 2)&lt;BR /&gt;
 | eval limit=round((limit / 1024 / 1024 / 1024), 2)&lt;BR /&gt;
 | eval free=(limit - volume)&lt;BR /&gt;
 | fields - limit&lt;BR /&gt;
 | rename volume as "Used GB" free as "Free GB"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:04:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/License-Usage-past-30-days-does-not-work-Distributed-Management/m-p/243879#M8016</guid>
      <dc:creator>polymorphic</dc:creator>
      <dc:date>2020-09-29T09:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: License Usage past 30 days does not work. (Distributed Management Console)</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/License-Usage-past-30-days-does-not-work-Distributed-Management/m-p/243880#M8017</link>
      <description>&lt;P&gt;Your search does work, but it goes back to the original issue where I have to specify &lt;STRONG&gt;splunk_server=local&lt;/STRONG&gt; in order to make it work. I do like your search though for license usage.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 14:38:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/License-Usage-past-30-days-does-not-work-Distributed-Management/m-p/243880#M8017</guid>
      <dc:creator>pattokt</dc:creator>
      <dc:date>2016-03-10T14:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: License Usage past 30 days does not work. (Distributed Management Console)</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/License-Usage-past-30-days-does-not-work-Distributed-Management/m-p/243881#M8018</link>
      <description>&lt;P&gt;Your search does work, but I arrive at the same issue where I need to specify &lt;STRONG&gt;splunk_server=local&lt;/STRONG&gt; in the search. I do like the search you provided though. &lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 14:50:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/License-Usage-past-30-days-does-not-work-Distributed-Management/m-p/243881#M8018</guid>
      <dc:creator>pattokt</dc:creator>
      <dc:date>2016-03-10T14:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: License Usage past 30 days does not work. (Distributed Management Console)</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/License-Usage-past-30-days-does-not-work-Distributed-Management/m-p/243882#M8019</link>
      <description>&lt;P&gt;Maybe if you added &lt;CODE&gt;splunk_server=*&lt;/CODE&gt; instead?&lt;/P&gt;

&lt;P&gt;Unfortunately i don't have a setup similar to yours, so i'm unable to test.&lt;/P&gt;

&lt;P&gt;Some sample data might be helpfull&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 14:55:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/License-Usage-past-30-days-does-not-work-Distributed-Management/m-p/243882#M8019</guid>
      <dc:creator>polymorphic</dc:creator>
      <dc:date>2016-03-10T14:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: License Usage past 30 days does not work. (Distributed Management Console)</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/License-Usage-past-30-days-does-not-work-Distributed-Management/m-p/243883#M8020</link>
      <description>&lt;P&gt;I was having a similar issue but I think I figured it out. So, my setup was a license server/DMC server. My last 30 days license reports weren't working. I did a bunch of digging on answers and found some ideas like yours. It was working in a similar setup in non-prod. By chance I looked at my distsearch.conf and noticed that my DMC/license server was categorized as an indexer (it was not setup to forward the data to the other indexers) while in prod that was not the case.&lt;/P&gt;

&lt;P&gt;I went into the DMC roles in prod and made my DMC/License server also have the indexer role and my reports started working again.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 11:25:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/License-Usage-past-30-days-does-not-work-Distributed-Management/m-p/243883#M8020</guid>
      <dc:creator>stevepraz</dc:creator>
      <dc:date>2016-06-03T11:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: License Usage past 30 days does not work. (Distributed Management Console)</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/License-Usage-past-30-days-does-not-work-Distributed-Management/m-p/243884#M8021</link>
      <description>&lt;P&gt;As soon as I changed my DMC role to also be an indexer like you suggested it started working!!! &lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 13:34:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/License-Usage-past-30-days-does-not-work-Distributed-Management/m-p/243884#M8021</guid>
      <dc:creator>pattokt</dc:creator>
      <dc:date>2016-06-03T13:34:47Z</dc:date>
    </item>
  </channel>
</rss>

