<?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 get top 10 users by usage per day for last 30 days in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-users-by-usage-per-day-for-last-30-days/m-p/555484#M157679</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/120532"&gt;@vrmandadi&lt;/a&gt;&amp;nbsp;=&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=abc sourcetype=xyz | eval user_source=user."-".source | timechart span=1d sum(gb) as gb by user_source WHERE max in top10&lt;/LI-CODE&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jun 2021 14:48:14 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2021-06-11T14:48:14Z</dc:date>
    <item>
      <title>How to get top 10 users by usage per day for last 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-users-by-usage-per-day-for-last-30-days/m-p/555479#M157678</link>
      <description>&lt;P&gt;I have an index which gives user information of how much GB of data they used and from what source .I would like to get the top 10 users based on the GB used per day for the last 30 days in a report .How can a create a report which will show date top 10 users , GB used and the source followed by the next date with top 10 users,GB used and source&amp;nbsp;&lt;/P&gt;&lt;P&gt;The below search gives the top 10 users but I want to have it by each day for last 30 days&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=abc sourcetype=xyz&amp;nbsp; | stats sum(gb) as gb by user source&lt;BR /&gt;| sort - gb&lt;BR /&gt;| head 10&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 14:28:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-users-by-usage-per-day-for-last-30-days/m-p/555479#M157678</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2021-06-11T14:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get top 10 users by usage per day for last 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-users-by-usage-per-day-for-last-30-days/m-p/555484#M157679</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/120532"&gt;@vrmandadi&lt;/a&gt;&amp;nbsp;=&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=abc sourcetype=xyz | eval user_source=user."-".source | timechart span=1d sum(gb) as gb by user_source WHERE max in top10&lt;/LI-CODE&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 14:48:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-users-by-usage-per-day-for-last-30-days/m-p/555484#M157679</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-11T14:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get top 10 users by usage per day for last 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-users-by-usage-per-day-for-last-30-days/m-p/555485#M157680</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;&amp;nbsp; .Thank you fro you reply . the search you provided&amp;nbsp; which has&amp;nbsp; by user_source ..but my search has user and source as separate fields&amp;nbsp; not as one field like user_source and also the results are not sorting in highest order&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 15:11:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-users-by-usage-per-day-for-last-30-days/m-p/555485#M157680</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2021-06-11T15:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get top 10 users by usage per day for last 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-users-by-usage-per-day-for-last-30-days/m-p/555489#M157682</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/120532"&gt;@vrmandadi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my suggested search, the timechart command has been used to achieve per day summation in GB. &amp;nbsp;If you see in my search I created new field user_source by ```| eval user_source=user."-".source``` . The purpose of this eval is to simulate same value of user and source from chart command.&amp;nbsp;&lt;/P&gt;&lt;P&gt;mean while you can try this also for understanding of search.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=abc sourcetype=xyz 
| timechart span=1d sum(gb) as gb by user WHERE max in top10


index=abc sourcetype=xyz 
| timechart span=1d sum(gb) as gb by source WHERE max in top10&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 15:21:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-users-by-usage-per-day-for-last-30-days/m-p/555489#M157682</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-11T15:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get top 10 users by usage per day for last 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-users-by-usage-per-day-for-last-30-days/m-p/555494#M157684</link>
      <description>&lt;P&gt;Thank You but the join of two fields is correct because the user may have different value in different dates&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 16:30:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-users-by-usage-per-day-for-last-30-days/m-p/555494#M157684</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2021-06-11T16:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get top 10 users by usage per day for last 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-users-by-usage-per-day-for-last-30-days/m-p/555495#M157685</link>
      <description>&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;Please accept the answer to help community.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;/P&gt;&lt;P&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 16:32:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-top-10-users-by-usage-per-day-for-last-30-days/m-p/555495#M157685</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-11T16:32:48Z</dc:date>
    </item>
  </channel>
</rss>

