<?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 by subnet in Installation</title>
    <link>https://community.splunk.com/t5/Installation/License-usage-by-subnet/m-p/39767#M620</link>
    <description>&lt;P&gt;Hello,  &lt;/P&gt;

&lt;P&gt;I have a request that I cannot seem to figure out. What I need to do is monitor the license usage on a per subnet basis (ex. daily license usage for 192.168.*), then break it down to the host level. For example, lets say I have 5 hosts: 192.168.1.1, 192.168.2.4, 192.168.7.8, 192.168.42.12, 192.168.87.16. I need to have a search scan the entire 192.168.0.0/16 range, then break the report down to license usage per host. (Sorry, having a bit of a problem expressing my thoughts)  &lt;/P&gt;

&lt;P&gt;The twist is from that search, I need to set up an alert to report when a host goes over x% license usage.  &lt;/P&gt;

&lt;P&gt;I am not exactly sure how to do this. I have a search that reads total number of logs from all hosts, one that shows the top reporting hosts, and one that shows the total daily license usage.  &lt;/P&gt;

&lt;P&gt;Any advice is welcome.&lt;BR /&gt;&lt;BR /&gt;
Please do not reference &lt;A href="http://splunk-base.splunk.com/answers/4897/how-to-determine-daily-license-usage-in-gb"&gt;this thread&lt;/A&gt; as this doesn't do what I want it to do.  &lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Mon, 30 Apr 2012 15:47:29 GMT</pubDate>
    <dc:creator>mchandx</dc:creator>
    <dc:date>2012-04-30T15:47:29Z</dc:date>
    <item>
      <title>License usage by subnet</title>
      <link>https://community.splunk.com/t5/Installation/License-usage-by-subnet/m-p/39767#M620</link>
      <description>&lt;P&gt;Hello,  &lt;/P&gt;

&lt;P&gt;I have a request that I cannot seem to figure out. What I need to do is monitor the license usage on a per subnet basis (ex. daily license usage for 192.168.*), then break it down to the host level. For example, lets say I have 5 hosts: 192.168.1.1, 192.168.2.4, 192.168.7.8, 192.168.42.12, 192.168.87.16. I need to have a search scan the entire 192.168.0.0/16 range, then break the report down to license usage per host. (Sorry, having a bit of a problem expressing my thoughts)  &lt;/P&gt;

&lt;P&gt;The twist is from that search, I need to set up an alert to report when a host goes over x% license usage.  &lt;/P&gt;

&lt;P&gt;I am not exactly sure how to do this. I have a search that reads total number of logs from all hosts, one that shows the top reporting hosts, and one that shows the total daily license usage.  &lt;/P&gt;

&lt;P&gt;Any advice is welcome.&lt;BR /&gt;&lt;BR /&gt;
Please do not reference &lt;A href="http://splunk-base.splunk.com/answers/4897/how-to-determine-daily-license-usage-in-gb"&gt;this thread&lt;/A&gt; as this doesn't do what I want it to do.  &lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2012 15:47:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/License-usage-by-subnet/m-p/39767#M620</guid>
      <dc:creator>mchandx</dc:creator>
      <dc:date>2012-04-30T15:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: License usage by subnet</title>
      <link>https://community.splunk.com/t5/Installation/License-usage-by-subnet/m-p/39768#M621</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*license_usage.log type=Usage h=192.168.0.0/16 | stats sum(b) as bytes by h | eval usagePercent=bytes/( 50 *1024*1024*1024)*100 | where usagePercent&amp;gt;5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This search would output the hosts in the 192.168.0.0/16 range using more than 5 % of the 50 GB license for the selected time range. You'd have to customize this search (ie. change 50 to the actual licensed volume and set the threshold). &lt;/P&gt;

&lt;P&gt;Also, this search assumes the host values in splunk to be IP addresses. You'd have to add reverse DNS resolution if this isn't the case. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*license_usage.log type=Usage | lookup dnslookup clienthost as h OUTPUT clientip as ip | eval h=coalesce(ip,h) | search h=192.168.0.0/16 | stats sum(b) as bytes by h | eval usagePercent=bytes/( 50 *1024*1024*1024)*100 | where usagePercent&amp;gt;5
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Apr 2012 16:39:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/License-usage-by-subnet/m-p/39768#M621</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2012-04-30T16:39:48Z</dc:date>
    </item>
  </channel>
</rss>

