<?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: Sort for chart not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245401#M73157</link>
    <description>&lt;P&gt;@JeremyHagan - So which answer is acceptable. this one on which I commented or the one I actually answered &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; which is down below &lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2016 23:05:15 GMT</pubDate>
    <dc:creator>gokadroid</dc:creator>
    <dc:date>2016-10-13T23:05:15Z</dc:date>
    <item>
      <title>Sort for chart not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245393#M73149</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I'm doing a search on the _internal index for license usage by host. I'd like the histogram to have the biggest values of X by Y on the left and I've been searching here for half an hour and it seems that what I am trying to do should be working, but it isn't.&lt;BR /&gt;
Can anyone point out the issue?&lt;/P&gt;

&lt;P&gt;Here is my search:&lt;BR /&gt;
&lt;CODE&gt;index=_internal source=*license_usage.log type=Usage | eval MB = round(b/1024/1024,1) | chart sum(MB) as MegaBytes by h | rename h as device | sort –MegaBytes&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 06:00:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245393#M73149</guid>
      <dc:creator>JeremyHagan</dc:creator>
      <dc:date>2016-10-13T06:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sort for chart not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245394#M73150</link>
      <description>&lt;P&gt;Minus sign is too close to MegaBytes.&lt;BR /&gt;
Can you try this&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
|sort - MegaBytes&lt;BR /&gt;
&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;Adding  complete query if above was not self explanatory:&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
index=_internal source=*license_usage.log type=Usage | eval MB = round(b/1024/1024,1) | chart sum(MB) as MegaBytes by h | rename h as device | sort – MegaBytes&lt;BR /&gt;
&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:22:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245394#M73150</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2020-09-29T11:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sort for chart not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245395#M73151</link>
      <description>&lt;P&gt;Hi Jeremy, &lt;/P&gt;

&lt;P&gt;Aside from creating your own search query, you can also view license usage information in DMC: &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;In Splunk Web, select &lt;STRONG&gt;Settings&lt;/STRONG&gt; from the menu and click &lt;STRONG&gt;Monitoring Console&lt;/STRONG&gt;. &lt;/LI&gt;
&lt;LI&gt;From the DMC menu, select &lt;STRONG&gt;Indexing&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;License Usage&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;License Usage - Previous 30 days&lt;/STRONG&gt; to view license usage statistics and charts in the past month.&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Hope it helps. Thanks!&lt;BR /&gt;
Hunter&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 07:29:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245395#M73151</guid>
      <dc:creator>hunters_splunk</dc:creator>
      <dc:date>2016-10-13T07:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sort for chart not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245396#M73152</link>
      <description>&lt;P&gt;i copy pasted your query and it didn't sort. i just deleted the "-" character before MegaBytes and typed it again. &lt;BR /&gt;
the search query gave me sorted results. Strange Though. &lt;/P&gt;

&lt;P&gt;index=_internal source=*license_usage.log type=Usage | eval MB = round(b/1024/1024,1) | chart sum(MB) as MegaBytes by h | rename h as device | sort -MegaBytes&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:24:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245396#M73152</guid>
      <dc:creator>pavankumarh</dc:creator>
      <dc:date>2020-09-29T11:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sort for chart not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245397#M73153</link>
      <description>&lt;P&gt;Hi Pavan,&lt;BR /&gt;
In the answer I gave I mentioned how will it sort with &lt;STRONG&gt;-&lt;/STRONG&gt; sign. Please try that.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 14:56:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245397#M73153</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2016-10-13T14:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sort for chart not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245398#M73154</link>
      <description>&lt;P&gt;Minus sign with space in between seems to work!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 19:12:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245398#M73154</guid>
      <dc:creator>vikashforsrm</dc:creator>
      <dc:date>2016-10-13T19:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sort for chart not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245399#M73155</link>
      <description>&lt;P&gt;Actually that is wrong. It turns out an en-dash managed to creep into my search from copy/paste. You don't need a space between the minus and the sort field.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 22:42:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245399#M73155</guid>
      <dc:creator>JeremyHagan</dc:creator>
      <dc:date>2016-10-13T22:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sort for chart not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245400#M73156</link>
      <description>&lt;P&gt;You are correct. Turns out an en-dash crept into my search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;PS C:\&amp;gt; [int][char]'–'
8211
PS C:\&amp;gt; [int][char]'-'
45
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Oct 2016 22:44:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245400#M73156</guid>
      <dc:creator>JeremyHagan</dc:creator>
      <dc:date>2016-10-13T22:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sort for chart not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245401#M73157</link>
      <description>&lt;P&gt;@JeremyHagan - So which answer is acceptable. this one on which I commented or the one I actually answered &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; which is down below &lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 23:05:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245401#M73157</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2016-10-13T23:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sort for chart not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245402#M73158</link>
      <description>&lt;P&gt;But to have the biggest histogram bar on the left most (which was your question) you have to sort it with en-dash(minus) else the requirement of the question is not fulfilled whether u have the space or not. So kind of get what u r saying..&lt;/P&gt;

&lt;P&gt;I quote like you stated&lt;BR /&gt;
&lt;STRONG&gt;Id like the histogram to have the biggest values of X by Y on the left "&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 23:08:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245402#M73158</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2016-10-13T23:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sort for chart not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245403#M73159</link>
      <description>&lt;P&gt;"minus sign too close to MegaBytes" is not the answer. No space is &lt;EM&gt;required&lt;/EM&gt; between the minus and the sort field. It works with or without the space between the minus and the sort field.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 23:49:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245403#M73159</guid>
      <dc:creator>JeremyHagan</dc:creator>
      <dc:date>2016-10-13T23:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sort for chart not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245404#M73160</link>
      <description>&lt;P&gt;Pavan's response was correct. gokadroid was not.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 23:51:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-for-chart-not-working/m-p/245404#M73160</guid>
      <dc:creator>JeremyHagan</dc:creator>
      <dc:date>2016-10-13T23:51:10Z</dc:date>
    </item>
  </channel>
</rss>

