<?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: Splunk Query for license usages in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-Query-for-license-usages/m-p/429155#M3631</link>
    <description>&lt;P&gt;I can't see the query you are currently using, but I would suggest the following approach:&lt;/P&gt;

&lt;P&gt;Run a query like this to try and determine the average size of events. Run it over a small time frame (maybe a week or so).&lt;BR /&gt;
&lt;CODE&gt;some_search | eval len = len(_raw) | stats avg(_len)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Then after you know roughly the average size of events you can run a query over the full time range and count how many events have occured. For example:&lt;BR /&gt;
&lt;CODE&gt;some_search | stats count&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;
Multiple the result by your average event size to get a rough indication of how much license you used for that search.&lt;/P&gt;

&lt;P&gt;You can also use &lt;CODE&gt;tstats&lt;/CODE&gt; to really speed things up. If you post your search I can try make a &lt;CODE&gt;tstats&lt;/CODE&gt; version for you.&lt;/P&gt;</description>
    <pubDate>Sat, 26 Jan 2019 12:02:50 GMT</pubDate>
    <dc:creator>chrisyounger</dc:creator>
    <dc:date>2019-01-26T12:02:50Z</dc:date>
    <item>
      <title>Splunk Query for license usages</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-Query-for-license-usages/m-p/429154#M3630</link>
      <description>&lt;P&gt;Hi All, &lt;/P&gt;

&lt;P&gt;Can you please help me with the search query to extract the license usages for last 1 yr, I am trying below search query but it is taking too long to extract the results. &lt;/P&gt;

&lt;P&gt;Please suggest the same. &lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Sat, 26 Jan 2019 10:42:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-Query-for-license-usages/m-p/429154#M3630</guid>
      <dc:creator>rohitvjoshi</dc:creator>
      <dc:date>2019-01-26T10:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query for license usages</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-Query-for-license-usages/m-p/429155#M3631</link>
      <description>&lt;P&gt;I can't see the query you are currently using, but I would suggest the following approach:&lt;/P&gt;

&lt;P&gt;Run a query like this to try and determine the average size of events. Run it over a small time frame (maybe a week or so).&lt;BR /&gt;
&lt;CODE&gt;some_search | eval len = len(_raw) | stats avg(_len)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Then after you know roughly the average size of events you can run a query over the full time range and count how many events have occured. For example:&lt;BR /&gt;
&lt;CODE&gt;some_search | stats count&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;
Multiple the result by your average event size to get a rough indication of how much license you used for that search.&lt;/P&gt;

&lt;P&gt;You can also use &lt;CODE&gt;tstats&lt;/CODE&gt; to really speed things up. If you post your search I can try make a &lt;CODE&gt;tstats&lt;/CODE&gt; version for you.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jan 2019 12:02:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-Query-for-license-usages/m-p/429155#M3631</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-01-26T12:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query for license usages</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-Query-for-license-usages/m-p/429156#M3632</link>
      <description>&lt;P&gt;Do you have internals over one year? Default is 30 days if you did not change that you will not get your report over one year&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jan 2019 12:06:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-Query-for-license-usages/m-p/429156#M3632</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2019-01-26T12:06:15Z</dc:date>
    </item>
  </channel>
</rss>

