<?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 determine which source/host/sourcetype has comsumed large amount of license for past 24 hours? in Security</title>
    <link>https://community.splunk.com/t5/Security/How-determine-which-source-host-sourcetype-has-comsumed-large/m-p/302033#M13535</link>
    <description>&lt;P&gt;Hi All can any one provide a query to find out the source which had consumed large amount of license for past 24 hours. &lt;/P&gt;

&lt;P&gt;thanks in advance.  &lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 17:37:05 GMT</pubDate>
    <dc:creator>Hemnaath</dc:creator>
    <dc:date>2017-02-16T17:37:05Z</dc:date>
    <item>
      <title>How determine which source/host/sourcetype has comsumed large amount of license for past 24 hours?</title>
      <link>https://community.splunk.com/t5/Security/How-determine-which-source-host-sourcetype-has-comsumed-large/m-p/302030#M13532</link>
      <description>&lt;P&gt;Hi All, Can any one guide us on how to search a which source/host/source type are consuming very high licenses, as we had seen sudden increase in license usage it seems it was due to one of syslog source has spiked high, but not sure how zero down which source had consumed the licenses.  Kindly provide me the query to capture the source which had consumed large amount of license for past 24 hours. &lt;/P&gt;

&lt;P&gt;thanks in advance. &lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 16:43:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-determine-which-source-host-sourcetype-has-comsumed-large/m-p/302030#M13532</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2017-02-16T16:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: How determine which source/host/sourcetype has comsumed large amount of license for past 24 hours?</title>
      <link>https://community.splunk.com/t5/Security/How-determine-which-source-host-sourcetype-has-comsumed-large/m-p/302031#M13533</link>
      <description>&lt;P&gt;Hi Hemnaath, you can get a report on license utilization as described more here : &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Admin/AboutSplunksLicenseUsageReportView"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Admin/AboutSplunksLicenseUsageReportView&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In particular, you can split by the various meta fields (index / host / source / sourcetype) in order to get a better idea what is blowing up your license.&lt;/P&gt;

&lt;P&gt;In particular, the search used to drive this report is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal host=yourLicenseServer source=*license_usage.log* type="Usage" | eval h=if(len(h)=0 OR isnull(h),"(SQUASHED)",h) | eval s=if(len(s)=0 OR isnull(s),"(SQUASHED)",s) | eval idx=if(len(idx)=0 OR isnull(idx),"(UNKNOWN)",idx) | bin _time span=1d | stats sum(b) as b by _time, pool, s, st, h, idx   | timechart span=1d sum(b) AS volumeB by s fixedrange=false  | join type=outer _time [search index=_internal host=yourLicenseServer 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;lt;FIELD&amp;gt;&amp;gt;=round('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'/1024/1024/1024, 3)]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you'd have to have access to the _internal index of course, and adjust the &lt;CODE&gt;host=&lt;/CODE&gt; line to be what the host value is for you license server.&lt;/P&gt;

&lt;P&gt;Additionally, you can see the span here is set as &lt;CODE&gt;span=1d&lt;/CODE&gt; at a couple points. Feel free to adjust that along with the overall search time frame to suit your needs.&lt;/P&gt;

&lt;P&gt;Please let me know if this answers your question! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 16:50:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-determine-which-source-host-sourcetype-has-comsumed-large/m-p/302031#M13533</guid>
      <dc:creator>muebel</dc:creator>
      <dc:date>2017-02-16T16:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: How determine which source/host/sourcetype has comsumed large amount of license for past 24 hours?</title>
      <link>https://community.splunk.com/t5/Security/How-determine-which-source-host-sourcetype-has-comsumed-large/m-p/302032#M13534</link>
      <description>&lt;P&gt;Is there any query which I can execute and get the required result, as I dnt have an access to that license manager. so could you please share me the query to find out the source which had consumed large amount of license for past 24 hours. &lt;/P&gt;

&lt;P&gt;thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 17:17:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-determine-which-source-host-sourcetype-has-comsumed-large/m-p/302032#M13534</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2017-02-16T17:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: How determine which source/host/sourcetype has comsumed large amount of license for past 24 hours?</title>
      <link>https://community.splunk.com/t5/Security/How-determine-which-source-host-sourcetype-has-comsumed-large/m-p/302033#M13535</link>
      <description>&lt;P&gt;Hi All can any one provide a query to find out the source which had consumed large amount of license for past 24 hours. &lt;/P&gt;

&lt;P&gt;thanks in advance.  &lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 17:37:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-determine-which-source-host-sourcetype-has-comsumed-large/m-p/302033#M13535</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2017-02-16T17:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: How determine which source/host/sourcetype has comsumed large amount of license for past 24 hours?</title>
      <link>https://community.splunk.com/t5/Security/How-determine-which-source-host-sourcetype-has-comsumed-large/m-p/302034#M13536</link>
      <description>&lt;P&gt;Here is query that breaks it down by host, source, sourcetype, and index where you see the individual values and the totals for each dimension. Not the most efficient, but it gives you all degrees of freedom to play with.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*license_usage.log* type="Usage" idx=* earliest=-24h@d
| stats sum(b) as bytes by h s st idx
| eventstats sum(bytes) as TotalSourcetype by st
| eventstats sum(bytes) as TotalSource by s
| eventstats sum(bytes) as TotalIndex by idx
| eventstats sum(bytes) as TotalHost by h
| sort -TotalSourcetype
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Feb 2017 17:44:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-determine-which-source-host-sourcetype-has-comsumed-large/m-p/302034#M13536</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-02-16T17:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: How determine which source/host/sourcetype has comsumed large amount of license for past 24 hours?</title>
      <link>https://community.splunk.com/t5/Security/How-determine-which-source-host-sourcetype-has-comsumed-large/m-p/302035#M13537</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal host=yourLicenseServer source=*license_usage.log* type="Usage" | eval h=if(len(h)=0 OR isnull(h),"(SQUASHED)",h) | eval s=if(len(s)=0 OR isnull(s),"(SQUASHED)",s) | eval idx=if(len(idx)=0 OR isnull(idx),"(UNKNOWN)",idx) | stats sum(b) as usage by idx st s h
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To get top license usage indexes&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;above query | stats sum(usage) as usage by idx | sort 10 -usage
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To get top license usage sourcetype&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;above query | stats sum(usage) as usage by st| sort 10 -usage
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To get top license usage sources&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;above query | stats sum(usage) as usage by s| sort 10 -usage
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Run it for whatever timerange you want to run. For this query to work, you should've License Master's splunkd logs coming to your Indexers OR run this from License master server's UI.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 20:41:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-determine-which-source-host-sourcetype-has-comsumed-large/m-p/302035#M13537</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-02-16T20:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: How determine which source/host/sourcetype has comsumed large amount of license for past 24 hours?</title>
      <link>https://community.splunk.com/t5/Security/How-determine-which-source-host-sourcetype-has-comsumed-large/m-p/302036#M13538</link>
      <description>&lt;P&gt;Here is what I use to get usage by index&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source="*license_usage.log*"|where idx!="NULL"| timechart limit=0 span=1d sum(eval(round(b/1024/1024/1024,5))) by idx
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then this one to get usage by host&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd group=per_host_thruput earliest=-1mon@mon latest=@mon NOT series=idx* NOT series=lm1* NOT series=c0m1* NOT series=sh1*| bucket _time span=1d | stats sum(kb) as total by series,_time | stats avg(total) as average by series |eval averageMB=round(average/1024,2) |fields - average |sort -averageMB| rename series as "Host Server",averageMB as "Average size per day in MB"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Feb 2017 21:22:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-determine-which-source-host-sourcetype-has-comsumed-large/m-p/302036#M13538</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-02-16T21:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: How determine which source/host/sourcetype has comsumed large amount of license for past 24 hours?</title>
      <link>https://community.splunk.com/t5/Security/How-determine-which-source-host-sourcetype-has-comsumed-large/m-p/302037#M13539</link>
      <description>&lt;P&gt;Hi Rjthibod, &lt;/P&gt;

&lt;P&gt;thanks for providing some inputs to capture the source which had consumed large amount of license for past 24 hours.   I have modified as per our requirement and got the expected output. &lt;/P&gt;

&lt;P&gt;index=_internal source=&lt;EM&gt;license_usage.log&lt;/EM&gt; type="Usage" idx=* &lt;BR /&gt;
 | stats sum(b) as bytes by host source sourcetype idx &lt;BR /&gt;
 | eventstats sum(bytes) as TotalSourcetype by sourcetype&lt;BR /&gt;
 | eventstats sum(bytes) as TotalSource by source&lt;BR /&gt;
 | eventstats sum(bytes) as TotalIndex by idx&lt;BR /&gt;
 | eventstats sum(bytes) as TotalHost by host |  eval Mbytes=bytes/(1024*1024) | sort -TotalSource Mbytes | eventstats sum(Mbytes) as Totalcount by sourcetype | eval P=round((Mbytes/Totalcount*100),2)|eval Percentage=P+" "+"%" | table host source sourcetype idx Mbytes Percentage | sort - Percentage &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:59:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-determine-which-source-host-sourcetype-has-comsumed-large/m-p/302037#M13539</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-09-29T12:59:56Z</dc:date>
    </item>
  </channel>
</rss>

