<?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 sorted stacked bar chart ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-sorted-stacked-bar-chart/m-p/25832#M4906</link>
    <description>&lt;P&gt;not that, clearly to say, i hope sort by total count of DEST_IP firstly, then chart it into stacked bar chart where each bar stand for one DEST_IP, and in each bar it can be seen different SRC_IP_country count&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:39:54 GMT</pubDate>
    <dc:creator>hjwang</dc:creator>
    <dc:date>2020-09-28T09:39:54Z</dc:date>
    <item>
      <title>How to sorted stacked bar chart ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sorted-stacked-bar-chart/m-p/25830#M4904</link>
      <description>&lt;P&gt;dear all&lt;/P&gt;

&lt;P&gt;i wanna show ratio in bar chart by special field, for example&lt;BR /&gt;
i use&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;my search | stats count by DEST_IP | sort - count | head 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but i want to show country count in each DEST_IP stats, then i use &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;my search | chart count over DEST_IP by SRC_IP_countryname
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but this will list all DEST_IP with different country count, and can not be sorted by each DEST_IP total count, is there anyway to do this? thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:39:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sorted-stacked-bar-chart/m-p/25830#M4904</guid>
      <dc:creator>hjwang</dc:creator>
      <dc:date>2020-09-28T09:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to sorted stacked bar chart ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sorted-stacked-bar-chart/m-p/25831#M4905</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;You can do a search where you count by more than one field. So for example you could do a search like:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;my search | stats count by DEST_IP SRC_IP_countryname | fields DEST_IP SRC_IP_countryname count | sort - count&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Alternatively, you might want to join two fields together like shown in this example:&lt;BR /&gt;
`my search | eval twofields=DEST_IP."-".SRC_IP_countryname | stats count by twofields | sort - count&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:39:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sorted-stacked-bar-chart/m-p/25831#M4905</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2020-09-28T09:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to sorted stacked bar chart ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sorted-stacked-bar-chart/m-p/25832#M4906</link>
      <description>&lt;P&gt;not that, clearly to say, i hope sort by total count of DEST_IP firstly, then chart it into stacked bar chart where each bar stand for one DEST_IP, and in each bar it can be seen different SRC_IP_country count&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:39:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sorted-stacked-bar-chart/m-p/25832#M4906</guid>
      <dc:creator>hjwang</dc:creator>
      <dc:date>2020-09-28T09:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to sorted stacked bar chart ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sorted-stacked-bar-chart/m-p/25833#M4907</link>
      <description>&lt;P&gt;sounds like you want to do the following search:&lt;BR /&gt;
my search | chart sum(SRC_IP_country) by DEST_IP&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:39:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sorted-stacked-bar-chart/m-p/25833#M4907</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2020-09-28T09:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to sorted stacked bar chart ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sorted-stacked-bar-chart/m-p/25834#M4908</link>
      <description>&lt;P&gt;for example:&lt;/P&gt;

&lt;P&gt;if i directly use stats count by DEST_IP | sort - count | head 10, it will be as follows&lt;/P&gt;

&lt;P&gt;1.1.1.1 ||||||||||||||||||||&lt;/P&gt;

&lt;P&gt;2.2.2.2 ||||||||||||||||||&lt;/P&gt;

&lt;P&gt;3.3.3.3 ||||||||||||&lt;/P&gt;

&lt;P&gt;4.4.4.4 |||||||||&lt;/P&gt;

&lt;P&gt;now, if i use char count over DEST_IP by SRC_IP_countryname, it will be as follows&lt;/P&gt;

&lt;P&gt;2.2.2.2 ||||####@@@@^^^^^&lt;/P&gt;

&lt;P&gt;1.1.1.1 @@@^^^^^||||||||########&lt;/P&gt;

&lt;P&gt;3.3.3.3 |||$$$%%%&amp;amp;&amp;amp;&lt;/P&gt;

&lt;P&gt;4.4.4.4 !!!$$$@&lt;/P&gt;

&lt;P&gt;here different symbols means different country and its length indicates its ratio in total count&lt;BR /&gt;
but now it can not be sorted by total count as case 1. how can i do that? thanks&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2011 11:01:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sorted-stacked-bar-chart/m-p/25834#M4908</guid>
      <dc:creator>hjwang</dc:creator>
      <dc:date>2011-06-10T11:01:08Z</dc:date>
    </item>
  </channel>
</rss>

