<?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 to calculate the license usage for specific sourcetype in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-license-usage-for-specific-sourcetype/m-p/374098#M109963</link>
    <description>&lt;P&gt;Thank you for the reply. But i would like to know how data is that sourcetype sending to splunk before indexing .&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2017 18:38:12 GMT</pubDate>
    <dc:creator>kteng2024</dc:creator>
    <dc:date>2017-08-21T18:38:12Z</dc:date>
    <item>
      <title>How to calculate the license usage for specific sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-license-usage-for-specific-sourcetype/m-p/374092#M109957</link>
      <description>&lt;P&gt;Can i please know how to calculate license usage of a particular sourcetype from a specific host  before indexing ? For example , i have host "webapp01" having a sourcetype "access_log" but i would like to calculate how much data this sourcetype is sending to splunk before indexing to understand license consumption .&lt;/P&gt;</description>
      <pubDate>Sat, 19 Aug 2017 17:25:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-license-usage-for-specific-sourcetype/m-p/374092#M109957</guid>
      <dc:creator>kteng2024</dc:creator>
      <dc:date>2017-08-19T17:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the license usage for specific sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-license-usage-for-specific-sourcetype/m-p/374093#M109958</link>
      <description>&lt;P&gt;Try this app&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/2949/"&gt;https://splunkbase.splunk.com/app/2949/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Aug 2017 18:07:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-license-usage-for-specific-sourcetype/m-p/374093#M109958</guid>
      <dc:creator>muralikoppula</dc:creator>
      <dc:date>2017-08-19T18:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the license usage for specific sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-license-usage-for-specific-sourcetype/m-p/374094#M109959</link>
      <description>&lt;P&gt;hi kteng2024!&lt;/P&gt;

&lt;P&gt;Your best bet is to simply calculate the total size of your access.log on the server over a few of your busiest days. This should give you a pretty close estimate of how much license it will consume per day.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;ls -lah&lt;/CODE&gt; should give you the access.log size in human readable in nix.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Aug 2017 19:18:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-license-usage-for-specific-sourcetype/m-p/374094#M109959</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-08-19T19:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the license usage for specific sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-license-usage-for-specific-sourcetype/m-p/374095#M109960</link>
      <description>&lt;P&gt;Without downloading an app here is a search that should help:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*license_usage.log type="Usage"    | eval indexname = if(len(idx)=0 OR isnull(idx),"(UNKNOWN)",idx)   | eval sourcetypename = st   | eval host=h | bin _time span=1d    | stats sum(b) as b by _time, host, indexname, sourcetypename | eval GB=(b/1024/1024/1024)  | fields _time, indexname, sourcetypename, host, GB |  stats sum(GB) as GB by indexname, sourcetypename, host | search indexname=* sourcetypename=* host=*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can use the last pipe to filter what you want to see. One thing to be aware of is host/source reporting can sometimes get squashed and you may see blank values for hosts/sources at that granularity. This thread explains squashing pretty well: &lt;A href="https://answers.splunk.com/answers/48542/blank-h-and-s-in-license-usage-log.html"&gt;https://answers.splunk.com/answers/48542/blank-h-and-s-in-license-usage-log.html&lt;/A&gt;. &lt;/P&gt;

&lt;P&gt;There is a tunable setting in server.conf for this.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 13:58:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-license-usage-for-specific-sourcetype/m-p/374095#M109960</guid>
      <dc:creator>mdsnmss</dc:creator>
      <dc:date>2017-08-21T13:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the license usage for specific sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-license-usage-for-specific-sourcetype/m-p/374096#M109961</link>
      <description>&lt;P&gt;this search could perhaps do the trick as well:&lt;BR /&gt;
index=_internal source=*license_usage.log type=Usage  h=yourhost | stats  sum(b) AS bytes by st  | eval  MB= round(bytes/1024/1024,3)  | fields  st MB  | rename  st as Sourcetype  | sort  -MB&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:24:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-license-usage-for-specific-sourcetype/m-p/374096#M109961</guid>
      <dc:creator>preotesoiu</dc:creator>
      <dc:date>2020-09-29T15:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the license usage for specific sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-license-usage-for-specific-sourcetype/m-p/374097#M109962</link>
      <description>&lt;P&gt;I stick by this answer seeing as you asked PRE-INDEX. After indexing my vote goes to meta woot app FOR SURE!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 15:57:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-license-usage-for-specific-sourcetype/m-p/374097#M109962</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-08-21T15:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the license usage for specific sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-license-usage-for-specific-sourcetype/m-p/374098#M109963</link>
      <description>&lt;P&gt;Thank you for the reply. But i would like to know how data is that sourcetype sending to splunk before indexing .&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 18:38:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-the-license-usage-for-specific-sourcetype/m-p/374098#M109963</guid>
      <dc:creator>kteng2024</dc:creator>
      <dc:date>2017-08-21T18:38:12Z</dc:date>
    </item>
  </channel>
</rss>

