<?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: Need to pull the Top 100 Hosts License Usage In Splunk Cloud in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-the-Top-100-Hosts-License-Usage-In-Splunk-Cloud/m-p/690189#M235086</link>
    <description>&lt;P&gt;try like this (select time range from the search):&lt;BR /&gt;&lt;BR /&gt;index=_internal source=*license_usage.log type="Usage"&lt;BR /&gt;| stats sum(b) as totalBytes by host, index, source, sourcetype&lt;BR /&gt;| eval host=lower(host)&lt;BR /&gt;| eval MB=totalBytes/1024/1024&lt;BR /&gt;| eval GB=round(MB/1024,2)&lt;BR /&gt;| sort - GB&lt;BR /&gt;| head 100&lt;BR /&gt;| table host index source sourcetype GB&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Let me know &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;Best,&lt;BR /&gt;&lt;BR /&gt;Giulia&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2024 08:57:11 GMT</pubDate>
    <dc:creator>gcasaldi</dc:creator>
    <dc:date>2024-06-10T08:57:11Z</dc:date>
    <item>
      <title>Need to pull the Top 100 Hosts License Usage In Splunk Cloud</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-the-Top-100-Hosts-License-Usage-In-Splunk-Cloud/m-p/690182#M235083</link>
      <description>&lt;P&gt;Need to pull the License Usage in GB for the top 100 &lt;EM&gt;&lt;STRONG&gt;Host&lt;/STRONG&gt;&lt;/EM&gt; along with their respective Index Source and Souretype information on monthly basis for reports.&lt;/P&gt;&lt;P&gt;So kindly help with the query.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 07:58:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-the-Top-100-Hosts-License-Usage-In-Splunk-Cloud/m-p/690182#M235083</guid>
      <dc:creator>anandhalagaras1</dc:creator>
      <dc:date>2024-06-10T07:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need to pull the Top 100 Hosts License Usage In Splunk Cloud</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-the-Top-100-Hosts-License-Usage-In-Splunk-Cloud/m-p/690183#M235084</link>
      <description>&lt;P class=""&gt;&lt;SPAN&gt;You&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;can achieve this by leveraging internal indexes and configuring a report.&lt;/SPAN&gt;&lt;SPAN&gt; Here's how:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Search Query below&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This search query retrieves license usage data by host for a specific time range:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;index=_internal source=*license_usage.log type="Usage" | eval host=lower(host) # Standardize hostname (optional) | eval MB=b/1024/1024 # Convert bytes to Megabytes | eval GB=round(MB/1024,2) # Convert Megabytes to Gigabytes (round to 2 decimals) | search earliest=-1mo@d latest=now@d # Adjust timeframe as needed (e.g., -3mo@d for past 3 months) | sort - GB # Sort by license usage in descending order | head 100 # Limit results to top 100 hosts | table host GB source sourcetype&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 10 Jun 2024 08:18:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-the-Top-100-Hosts-License-Usage-In-Splunk-Cloud/m-p/690183#M235084</guid>
      <dc:creator>gcasaldi</dc:creator>
      <dc:date>2024-06-10T08:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need to pull the Top 100 Hosts License Usage In Splunk Cloud</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-the-Top-100-Hosts-License-Usage-In-Splunk-Cloud/m-p/690184#M235085</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/251965"&gt;@gcasaldi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your prompt response. For example, I want to pull the report for the entire month of May (from May 1st to May 31st, 2024) for the top 100 hosts by license usage, along with their index, host, source, and sourcetype. I used the following query:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;index=_internal source=*license_usage.log type="Usage" | eval host=lower(host) | eval MB=b/1024/1024 | eval GB=round(MB/1024,2) | search earliest=-1mo@d latest=now@d | sort - GB | head 100 | table host index source sourcetype GB&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;However, the query seems to be running continuously and does not produce any results. It is still running when I search for the previous month in the Search and Reporting app. Could you please let me know where I might have made a mistake?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 08:36:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-the-Top-100-Hosts-License-Usage-In-Splunk-Cloud/m-p/690184#M235085</guid>
      <dc:creator>anandhalagaras1</dc:creator>
      <dc:date>2024-06-10T08:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need to pull the Top 100 Hosts License Usage In Splunk Cloud</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-the-Top-100-Hosts-License-Usage-In-Splunk-Cloud/m-p/690189#M235086</link>
      <description>&lt;P&gt;try like this (select time range from the search):&lt;BR /&gt;&lt;BR /&gt;index=_internal source=*license_usage.log type="Usage"&lt;BR /&gt;| stats sum(b) as totalBytes by host, index, source, sourcetype&lt;BR /&gt;| eval host=lower(host)&lt;BR /&gt;| eval MB=totalBytes/1024/1024&lt;BR /&gt;| eval GB=round(MB/1024,2)&lt;BR /&gt;| sort - GB&lt;BR /&gt;| head 100&lt;BR /&gt;| table host index source sourcetype GB&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Let me know &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;Best,&lt;BR /&gt;&lt;BR /&gt;Giulia&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 08:57:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-the-Top-100-Hosts-License-Usage-In-Splunk-Cloud/m-p/690189#M235086</guid>
      <dc:creator>gcasaldi</dc:creator>
      <dc:date>2024-06-10T08:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need to pull the Top 100 Hosts License Usage In Splunk Cloud</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-the-Top-100-Hosts-License-Usage-In-Splunk-Cloud/m-p/690193#M235087</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/251965"&gt;@gcasaldi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here it just pulls the cluster master server information with GB when I ran the query for last month and not any other results. Refer screenshot for reference.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anandhalagaras1_1-1718010111530.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31250i728B6C240871E7B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anandhalagaras1_1-1718010111530.png" alt="anandhalagaras1_1-1718010111530.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 09:02:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-the-Top-100-Hosts-License-Usage-In-Splunk-Cloud/m-p/690193#M235087</guid>
      <dc:creator>anandhalagaras1</dc:creator>
      <dc:date>2024-06-10T09:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need to pull the Top 100 Hosts License Usage In Splunk Cloud</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-the-Top-100-Hosts-License-Usage-In-Splunk-Cloud/m-p/690195#M235088</link>
      <description>&lt;P&gt;right, change the index, for license:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=summary 
| stats sum(b) as totalBytes by host, index, source, sourcetype
| eval host=lower(host)
| eval MB=totalBytes/1024/1024
| eval GB=round(MB/1024,2)
| sort - GB
| head 100
| table host index source sourcetype GB&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;&lt;BR /&gt;Giulia&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 10:33:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-the-Top-100-Hosts-License-Usage-In-Splunk-Cloud/m-p/690195#M235088</guid>
      <dc:creator>gcasaldi</dc:creator>
      <dc:date>2024-06-10T10:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need to pull the Top 100 Hosts License Usage In Splunk Cloud</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-the-Top-100-Hosts-License-Usage-In-Splunk-Cloud/m-p/690302#M235126</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/251965"&gt;@gcasaldi&lt;/a&gt;&amp;nbsp;Now also i am getting the hostname of Clustermaster and not the client machine information.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="anandhalagaras1_0-1718014204161.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31252i7C653735A072E655/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anandhalagaras1_0-1718014204161.png" alt="anandhalagaras1_0-1718014204161.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to get the top 100 client machines with their respective index source and sourcetype information&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 07:04:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-pull-the-Top-100-Hosts-License-Usage-In-Splunk-Cloud/m-p/690302#M235126</guid>
      <dc:creator>anandhalagaras1</dc:creator>
      <dc:date>2024-06-11T07:04:47Z</dc:date>
    </item>
  </channel>
</rss>

