<?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: Chart using span logs does not show the columns in range order in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Chart-using-span-logs-does-not-show-the-columns-in-range-order/m-p/302425#M91012</link>
    <description>&lt;P&gt;thanks for the proposal, unfortunately that does not seem to work for me as the names are not getting changed with that process. I guess the chart is done before the rename and rename gets no effect. Looking at the splunk sample, &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.0/SearchReference/Chart#9:_Chart_the_average_number_of_events_in_a_transaction.2C_based_on_transaction_duration"&gt;http://docs.splunk.com/Documentation/Splunk/6.6.0/SearchReference/Chart#9:_Chart_the_average_number_of_events_in_a_transaction.2C_based_on_transaction_duration&lt;/A&gt; I am getting a different result as the statistics data are not sorted on my side on my example, so I guess I may have some configuration issue or an invalid release.&lt;/P&gt;</description>
    <pubDate>Fri, 19 May 2017 10:26:42 GMT</pubDate>
    <dc:creator>srenou</dc:creator>
    <dc:date>2017-05-19T10:26:42Z</dc:date>
    <item>
      <title>Chart using span logs does not show the columns in range order</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-using-span-logs-does-not-show-the-columns-in-range-order/m-p/302423#M91010</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I am trying to chart some response time and wanted to use the log span as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myIndex "time_value" | chart count by time_ms bins=100 span=2log5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My concern is that Splunk seems to be doing some alphabetical sorting which mixes my span ranges&lt;/P&gt;

&lt;P&gt;for example it shows the span in the order of :&lt;BR /&gt;
0 10-50 1250-6250 250-1250&lt;BR /&gt;
while I would expect:&lt;BR /&gt;
0 10-50 250-1250 1250-6250&lt;/P&gt;

&lt;P&gt;Thanks for any help.&lt;BR /&gt;
Stephane&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 10:20:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-using-span-logs-does-not-show-the-columns-in-range-order/m-p/302423#M91010</guid>
      <dc:creator>srenou</dc:creator>
      <dc:date>2017-05-18T10:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Chart using span logs does not show the columns in range order</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-using-span-logs-does-not-show-the-columns-in-range-order/m-p/302424#M91011</link>
      <description>&lt;P&gt;You can fix this after the fact, like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rename 0 AS "   0" "10-50" AS "  10-50" "250-1250" AS " 250-1250"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note that &lt;CODE&gt;0&lt;/CODE&gt; has been renamed with 3 leading spaces and &lt;CODE&gt;10-50&lt;/CODE&gt; with just two (and so on until &lt;CODE&gt;1250-6250&lt;/CODE&gt; is not renamed at all, so it has 0 spaces).&lt;BR /&gt;
The whitespace is invisible in the chart but forces the alphabetical order that you desire.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 15:20:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-using-span-logs-does-not-show-the-columns-in-range-order/m-p/302424#M91011</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-18T15:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Chart using span logs does not show the columns in range order</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-using-span-logs-does-not-show-the-columns-in-range-order/m-p/302425#M91012</link>
      <description>&lt;P&gt;thanks for the proposal, unfortunately that does not seem to work for me as the names are not getting changed with that process. I guess the chart is done before the rename and rename gets no effect. Looking at the splunk sample, &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.0/SearchReference/Chart#9:_Chart_the_average_number_of_events_in_a_transaction.2C_based_on_transaction_duration"&gt;http://docs.splunk.com/Documentation/Splunk/6.6.0/SearchReference/Chart#9:_Chart_the_average_number_of_events_in_a_transaction.2C_based_on_transaction_duration&lt;/A&gt; I am getting a different result as the statistics data are not sorted on my side on my example, so I guess I may have some configuration issue or an invalid release.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 10:26:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-using-span-logs-does-not-show-the-columns-in-range-order/m-p/302425#M91012</guid>
      <dc:creator>srenou</dc:creator>
      <dc:date>2017-05-19T10:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Chart using span logs does not show the columns in range order</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-using-span-logs-does-not-show-the-columns-in-range-order/m-p/302426#M91013</link>
      <description>&lt;P&gt;If you are running a &lt;CODE&gt;fileds&lt;/CODE&gt; or &lt;CODE&gt;table&lt;/CODE&gt; command, the fields may be re-sorted.  Try stripping off the commands after the chart command to see where the resorting happens and see if you can use a different command or perhaps that command has a &lt;CODE&gt;keepcolorder&lt;/CODE&gt; option (some commands do).&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 14:14:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-using-span-logs-does-not-show-the-columns-in-range-order/m-p/302426#M91013</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-19T14:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Chart using span logs does not show the columns in range order</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-using-span-logs-does-not-show-the-columns-in-range-order/m-p/302427#M91014</link>
      <description>&lt;P&gt;Thanks for the feedback.&lt;BR /&gt;
unfortunately no. My request is just an index search piped to a chart count by MyCounter span=2log5.&lt;/P&gt;

&lt;P&gt;My graph is strangely sorted as well as my statistics as if it is doing alphabetical sorting instead of looking at the ranges.&lt;BR /&gt;
But that drove me to thinking that I should force the sorting, so adding sort MyCounter that made the trick.&lt;BR /&gt;
Thanks again.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 16:04:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-using-span-logs-does-not-show-the-columns-in-range-order/m-p/302427#M91014</guid>
      <dc:creator>srenou</dc:creator>
      <dc:date>2017-05-19T16:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Chart using span logs does not show the columns in range order</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-using-span-logs-does-not-show-the-columns-in-range-order/m-p/302428#M91015</link>
      <description>&lt;P&gt;So what exactly was your final search?&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 20:10:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-using-span-logs-does-not-show-the-columns-in-range-order/m-p/302428#M91015</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-19T20:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Chart using span logs does not show the columns in range order</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-using-span-logs-does-not-show-the-columns-in-range-order/m-p/302429#M91016</link>
      <description>&lt;P&gt;My final search is:&lt;BR /&gt;
index=myIndex "time_value" | chart count by time_ms bins=100 span=2log5 | sort time_ms bins&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:09:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-using-span-logs-does-not-show-the-columns-in-range-order/m-p/302429#M91016</guid>
      <dc:creator>srenou</dc:creator>
      <dc:date>2020-09-29T14:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Chart using span logs does not show the columns in range order</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-using-span-logs-does-not-show-the-columns-in-range-order/m-p/302430#M91017</link>
      <description>&lt;P&gt;You need &lt;CODE&gt;sort 0&lt;/CODE&gt;, not just &lt;CODE&gt;sort&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 19:11:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-using-span-logs-does-not-show-the-columns-in-range-order/m-p/302430#M91017</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-22T19:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Chart using span logs does not show the columns in range order</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-using-span-logs-does-not-show-the-columns-in-range-order/m-p/302431#M91018</link>
      <description>&lt;P&gt;Thanks for the feedback, strangely in my case the sort with the value is enough. &lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 09:00:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-using-span-logs-does-not-show-the-columns-in-range-order/m-p/302431#M91018</guid>
      <dc:creator>srenou</dc:creator>
      <dc:date>2017-05-23T09:00:40Z</dc:date>
    </item>
  </channel>
</rss>

