<?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 Host over time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/License-Usage-by-Host-over-time/m-p/133444#M36425</link>
    <description>&lt;P&gt;You can play around with this.  We typically do earliest=@d so that we know the percent we have used today but you should be able to get what you want from this.&lt;/P&gt;

&lt;P&gt;index=_internal source=*license* type=Usage | stats sum(b) as BytesUsed max(poolsz) as PoolSize by pool | eval percent = BytesUsed/PoolSize | eval LicenseUsedInGB=round(BytesUsed/1024/1024/1024,2) | eval PoolSizeInGB=PoolSize/1024/1024/1024 | eval PercentUsed=round(percent*100,3) | fields PoolSizeInGB LicenseUsedInGB PercentUsed&lt;/P&gt;

&lt;P&gt;You can also look at the latest SoS.  The licensing info is accurate and you can tweak the searches form that.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2014 20:16:23 GMT</pubDate>
    <dc:creator>rmorlen</dc:creator>
    <dc:date>2014-02-18T20:16:23Z</dc:date>
    <item>
      <title>License Usage by Host over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/License-Usage-by-Host-over-time/m-p/133441#M36422</link>
      <description>&lt;P&gt;We are using Splunk 6.0.1, and I found a search that generates license usage by host:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*license_usage.log type=Usage | stats sum(b) as bytes by h | eval MB = round(bytes/1024/1024,1) | fields h MB | rename h as host | sort -MB
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I'd like to do is extend it further to 24 hour spans. The closest I've come is breaking it down by day:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*license_usage.log type=Usage | eval MB = round(b/1024/1024,1) | timechart per_day(MB) by h span=24h
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...but the end always shows today's stats looking much lower because there isn't enough data.&lt;/P&gt;

&lt;P&gt;Is there a way to get per_day to start at the current time rather than midnight?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 13:47:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/License-Usage-by-Host-over-time/m-p/133441#M36422</guid>
      <dc:creator>dbecker_AU</dc:creator>
      <dc:date>2014-01-31T13:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: License Usage by Host over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/License-Usage-by-Host-over-time/m-p/133442#M36423</link>
      <description>&lt;P&gt;Use the time picker and select the days from midnight to midnight.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 14:10:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/License-Usage-by-Host-over-time/m-p/133442#M36423</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-01-31T14:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: License Usage by Host over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/License-Usage-by-Host-over-time/m-p/133443#M36424</link>
      <description>&lt;P&gt;I tried that, but it still divides by calendar day, so today only reports from midnight to the current time.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 19:02:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/License-Usage-by-Host-over-time/m-p/133443#M36424</guid>
      <dc:creator>dbecker_AU</dc:creator>
      <dc:date>2014-01-31T19:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: License Usage by Host over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/License-Usage-by-Host-over-time/m-p/133444#M36425</link>
      <description>&lt;P&gt;You can play around with this.  We typically do earliest=@d so that we know the percent we have used today but you should be able to get what you want from this.&lt;/P&gt;

&lt;P&gt;index=_internal source=*license* type=Usage | stats sum(b) as BytesUsed max(poolsz) as PoolSize by pool | eval percent = BytesUsed/PoolSize | eval LicenseUsedInGB=round(BytesUsed/1024/1024/1024,2) | eval PoolSizeInGB=PoolSize/1024/1024/1024 | eval PercentUsed=round(percent*100,3) | fields PoolSizeInGB LicenseUsedInGB PercentUsed&lt;/P&gt;

&lt;P&gt;You can also look at the latest SoS.  The licensing info is accurate and you can tweak the searches form that.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2014 20:16:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/License-Usage-by-Host-over-time/m-p/133444#M36425</guid>
      <dc:creator>rmorlen</dc:creator>
      <dc:date>2014-02-18T20:16:23Z</dc:date>
    </item>
  </channel>
</rss>

