<?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 limit number of column in xyseries with TOP or RARE? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-limit-number-of-column-in-xyseries-with-TOP-or-RARE/m-p/610171#M212181</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/165039"&gt;@chaker&lt;/a&gt;&amp;nbsp;Unfortunately, your suggestion that still provide another way to express a table but only take the top 5 in alphabetic not in term of less or most use&lt;/P&gt;</description>
    <pubDate>Fri, 19 Aug 2022 19:01:04 GMT</pubDate>
    <dc:creator>ephenix</dc:creator>
    <dc:date>2022-08-19T19:01:04Z</dc:date>
    <item>
      <title>How to limit number of column in xyseries with TOP or RARE?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-limit-number-of-column-in-xyseries-with-TOP-or-RARE/m-p/610075#M212144</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm building a report to count the numbers of events per AWS accounts vs Regions with stats and xyseries. It works well but I would like to filter to have only the 5 rare regions (fewer events). When I'm adding the rare, it just doesn’t work.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;index=aws sourcetype="aws:cloudtrail"&lt;BR /&gt;| rare limit=5 awsRegion&amp;nbsp;&lt;BR /&gt;| stats count by awsRegion, account&lt;BR /&gt;| xyseries account awsRegion count&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 05:52:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-limit-number-of-column-in-xyseries-with-TOP-or-RARE/m-p/610075#M212144</guid>
      <dc:creator>ephenix</dc:creator>
      <dc:date>2022-08-19T05:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit number of column in xyseries with TOP or RARE?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-limit-number-of-column-in-xyseries-with-TOP-or-RARE/m-p/610077#M212145</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Something like this should work, I don't have any cloudtrail data on hand at the moment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;index=aws sourcetype="aws:cloudtrail"&lt;/SPAN&gt;&lt;BR /&gt;| chart count by &lt;SPAN&gt;account&lt;/SPAN&gt; &lt;SPAN&gt;awsRegion&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;limit=0&lt;BR /&gt;| addtotals&lt;BR /&gt;| sort limit=5 Total&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 06:03:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-limit-number-of-column-in-xyseries-with-TOP-or-RARE/m-p/610077#M212145</guid>
      <dc:creator>chaker</dc:creator>
      <dc:date>2022-08-19T06:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit number of column in xyseries with TOP or RARE?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-limit-number-of-column-in-xyseries-with-TOP-or-RARE/m-p/610083#M212146</link>
      <description>&lt;P&gt;The reason it doesn't work is that rare will only leave the regions without the corresponding accounts&lt;/P&gt;&lt;P&gt;Assuming you want the counts for all the accounts in the 5 lowest total regions, you could do something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=aws sourcetype="aws:cloudtrail"
| stats count by awsRegion account
| eventstats sum(count) as total by awsRegion
| sort 0 total awsRegion
| streamstats dc(awsRegion) as rank
| where rank &amp;lt; 6
| xyseries account awsRegion count&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 19 Aug 2022 07:07:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-limit-number-of-column-in-xyseries-with-TOP-or-RARE/m-p/610083#M212146</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-08-19T07:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit number of column in xyseries with TOP or RARE?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-limit-number-of-column-in-xyseries-with-TOP-or-RARE/m-p/610169#M212180</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;, Great look like it is working! Interesting new approach that I will explore more.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I also add a total to sort it not sure it is the most efficient way but it did work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;index=aws sourcetype="aws:cloudtrail"&lt;BR /&gt;| stats count by awsRegion account&lt;BR /&gt;| eventstats sum(count) as total by awsRegion&lt;BR /&gt;| sort 0 total awsRegion&lt;BR /&gt;| streamstats dc(awsRegion) as rank&lt;BR /&gt;| where rank &amp;lt; 5&lt;BR /&gt;| xyseries account awsRegion count&lt;BR /&gt;| addtotals fieldname=TotalEvents&lt;BR /&gt;| eval TotalEvents=TotalEvents-account&lt;BR /&gt;| sort TotalEvents&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 19:08:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-limit-number-of-column-in-xyseries-with-TOP-or-RARE/m-p/610169#M212180</guid>
      <dc:creator>ephenix</dc:creator>
      <dc:date>2022-08-19T19:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit number of column in xyseries with TOP or RARE?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-limit-number-of-column-in-xyseries-with-TOP-or-RARE/m-p/610171#M212181</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/165039"&gt;@chaker&lt;/a&gt;&amp;nbsp;Unfortunately, your suggestion that still provide another way to express a table but only take the top 5 in alphabetic not in term of less or most use&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 19:01:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-limit-number-of-column-in-xyseries-with-TOP-or-RARE/m-p/610171#M212181</guid>
      <dc:creator>ephenix</dc:creator>
      <dc:date>2022-08-19T19:01:04Z</dc:date>
    </item>
  </channel>
</rss>

