<?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 Will you help me fix my license usage by host query? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Will-you-help-me-fix-my-license-usage-by-host-query/m-p/455105#M128738</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I am using Splunk version 7.1.0 for the Distributed Management Console (DMC) and I want to calculate the license usage by host. I am using the below query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*license_usage.log* type="Usage" |search h=*10d*
| 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
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I get the value of "b" in GB? I am confused by the value of "b" . Is it in MB or any other metrics?&lt;/P&gt;</description>
    <pubDate>Wed, 12 Sep 2018 17:24:24 GMT</pubDate>
    <dc:creator>vrmandadi</dc:creator>
    <dc:date>2018-09-12T17:24:24Z</dc:date>
    <item>
      <title>Will you help me fix my license usage by host query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Will-you-help-me-fix-my-license-usage-by-host-query/m-p/455105#M128738</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I am using Splunk version 7.1.0 for the Distributed Management Console (DMC) and I want to calculate the license usage by host. I am using the below query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*license_usage.log* type="Usage" |search h=*10d*
| 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
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I get the value of "b" in GB? I am confused by the value of "b" . Is it in MB or any other metrics?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 17:24:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Will-you-help-me-fix-my-license-usage-by-host-query/m-p/455105#M128738</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2018-09-12T17:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Will you help me fix my license usage by host query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Will-you-help-me-fix-my-license-usage-by-host-query/m-p/455106#M128739</link>
      <description>&lt;P&gt;The value of b is 256722093 for the last 60 minutes&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 17:26:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Will-you-help-me-fix-my-license-usage-by-host-query/m-p/455106#M128739</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2018-09-12T17:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Will you help me fix my license usage by host query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Will-you-help-me-fix-my-license-usage-by-host-query/m-p/455107#M128740</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Please try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*license_usage.log* type="Usage" |search h=*10d*
 | 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
 | eval GB=round((((b/1024)/1024)/1024),2)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Sep 2018 17:39:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Will-you-help-me-fix-my-license-usage-by-host-query/m-p/455107#M128740</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-09-12T17:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Will you help me fix my license usage by host query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Will-you-help-me-fix-my-license-usage-by-host-query/m-p/455108#M128741</link>
      <description>&lt;P&gt;Thank you for your reply but what is the unit of b ?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 17:42:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Will-you-help-me-fix-my-license-usage-by-host-query/m-p/455108#M128741</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2018-09-12T17:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Will you help me fix my license usage by host query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Will-you-help-me-fix-my-license-usage-by-host-query/m-p/455109#M128742</link>
      <description>&lt;P&gt;&lt;CODE&gt;b&lt;/CODE&gt; is in &lt;CODE&gt;bytes&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 17:45:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Will-you-help-me-fix-my-license-usage-by-host-query/m-p/455109#M128742</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-09-12T17:45:15Z</dc:date>
    </item>
  </channel>
</rss>

