<?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: [Need Help] how to reverse the time scale and corresponding count in  x axis from timechart. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-Help-how-to-reverse-the-time-scale-and-corresponding-count/m-p/526431#M148587</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/218024"&gt;@cheriemilk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to work with rename as well&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Base Query&amp;gt;
| bin span=2h _time
| stats count as number by _time SFDC
| rename _time as Time
| chart values(number)  by Time SFDC limit=0 useother=f
| reverse&lt;/LI-CODE&gt;&lt;P&gt;Although you might still need to format the field if that's important to you&lt;/P&gt;</description>
    <pubDate>Mon, 26 Oct 2020 09:07:03 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2020-10-26T09:07:03Z</dc:date>
    <item>
      <title>[Need Help] how to reverse the time scale and corresponding count in  x axis from timechart.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-Help-how-to-reverse-the-time-scale-and-corresponding-count/m-p/525945#M148441</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;I have below query&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=*bizx_application AND sourcetype=perf_log_bizx AND AutoSaveForm OR SaveFormV2 OR SaveForm&lt;/P&gt;&lt;P&gt;| timechart count by SFDC useother=false limit=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the timechart returned as below.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-10-21 at 6.18.36 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11438i09061CDD303DD180/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-10-21 at 6.18.36 PM.png" alt="Screen Shot 2020-10-21 at 6.18.36 PM.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Screen Shot 2020-10-21 at 6.18.36 PM.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now I want to adjust the _time scale in x axis to display from latest to earliest which means put the latest _time and corresponding count in the left.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should I modify my query to achieve this adjustment?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 02:26:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-Help-how-to-reverse-the-time-scale-and-corresponding-count/m-p/525945#M148441</guid>
      <dc:creator>cheriemilk</dc:creator>
      <dc:date>2020-10-22T02:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: [Need Help] how to reverse the time scale and corresponding count in  x axis from timechart.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-Help-how-to-reverse-the-time-scale-and-corresponding-count/m-p/525955#M148446</link>
      <description>&lt;P&gt;I don't think it's sensibly possible with timecharts. You can covert time to some string value, which is sorted datewise, but you will be limited on number of data points.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| timechart span=1h count
| reverse
| eval t=strftime(_time,"%F %T")
| table t count&lt;/LI-CODE&gt;&lt;P&gt;but it's not really what you're after&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 03:55:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-Help-how-to-reverse-the-time-scale-and-corresponding-count/m-p/525955#M148446</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-10-22T03:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: [Need Help] how to reverse the time scale and corresponding count in  x axis from timechart.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-Help-how-to-reverse-the-time-scale-and-corresponding-count/m-p/525994#M148462</link>
      <description>&lt;P&gt;I tried with stats and chart . but the chart doesn't reverse as expected.&lt;/P&gt;&lt;P&gt;baseQuery&lt;/P&gt;&lt;P&gt;| fieldformat _time=strftime(_time,"%Y-%m-%d %H:%M:%S")&lt;/P&gt;&lt;P&gt;| bin span=2h _time&lt;/P&gt;&lt;P&gt;| stats count by _time SFDC&lt;/P&gt;&lt;P&gt;| chart values(count) by _time, SFDC&lt;/P&gt;&lt;P&gt;| reverse&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 08:50:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-Help-how-to-reverse-the-time-scale-and-corresponding-count/m-p/525994#M148462</guid>
      <dc:creator>cheriemilk</dc:creator>
      <dc:date>2020-10-22T08:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: [Need Help] how to reverse the time scale and corresponding count in  x axis from timechart.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-Help-how-to-reverse-the-time-scale-and-corresponding-count/m-p/526000#M148465</link>
      <description>&lt;P&gt;It appears that chart will order time earliest to latest. The closest I have got is this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;baseQuery
``` new time as number of second until next hour ```
| eval time=relative_time(relative_time(now(),"@h")+3600-_time,"@h") 
``` 2 hour bins using new time ```
| bin span=2h time
``` stats using new time ```
| stats count by time SFDC
``` reformat new time for display purposes ```
| fieldformat time=strftime(relative_time(now(),"@h")+3600-time,"%Y-%m-%d %H:%M") 
``` new time as x-axis, count as y-axis, SFDC series ```
| xyseries time, SFDC, count&lt;/LI-CODE&gt;&lt;P&gt;The problem with this is that the values on the x-axis are not displayed nicely.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 09:29:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-Help-how-to-reverse-the-time-scale-and-corresponding-count/m-p/526000#M148465</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-22T09:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: [Need Help] how to reverse the time scale and corresponding count in  x axis from timechart.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-Help-how-to-reverse-the-time-scale-and-corresponding-count/m-p/526027#M148471</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there's no direct way to reverse the time order in timechart, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 13:23:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-Help-how-to-reverse-the-time-scale-and-corresponding-count/m-p/526027#M148471</guid>
      <dc:creator>cheriemilk</dc:creator>
      <dc:date>2020-10-22T13:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: [Need Help] how to reverse the time scale and corresponding count in  x axis from timechart.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-Help-how-to-reverse-the-time-scale-and-corresponding-count/m-p/526405#M148580</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this way works:&lt;/P&gt;&lt;P&gt;&amp;lt;Base Query&amp;gt;&lt;/P&gt;&lt;P&gt;| bin span=2h _time&lt;/P&gt;&lt;P&gt;| stats count as number by _time SFDC&lt;/P&gt;&lt;P&gt;| eval Time=strftime(_time,"%Y/%m/%d %H:%M")&lt;/P&gt;&lt;P&gt;| chart values(number)&amp;nbsp; by Time SFDC limit=0 useother=f&lt;/P&gt;&lt;P&gt;| reverse&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 06:43:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-Help-how-to-reverse-the-time-scale-and-corresponding-count/m-p/526405#M148580</guid>
      <dc:creator>cheriemilk</dc:creator>
      <dc:date>2020-10-26T06:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: [Need Help] how to reverse the time scale and corresponding count in  x axis from timechart.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-Help-how-to-reverse-the-time-scale-and-corresponding-count/m-p/526431#M148587</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/218024"&gt;@cheriemilk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to work with rename as well&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Base Query&amp;gt;
| bin span=2h _time
| stats count as number by _time SFDC
| rename _time as Time
| chart values(number)  by Time SFDC limit=0 useother=f
| reverse&lt;/LI-CODE&gt;&lt;P&gt;Although you might still need to format the field if that's important to you&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 09:07:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-Help-how-to-reverse-the-time-scale-and-corresponding-count/m-p/526431#M148587</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-26T09:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: [Need Help] how to reverse the time scale and corresponding count in  x axis from timechart.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-Help-how-to-reverse-the-time-scale-and-corresponding-count/m-p/526585#M148624</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 06:05:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-Help-how-to-reverse-the-time-scale-and-corresponding-count/m-p/526585#M148624</guid>
      <dc:creator>cheriemilk</dc:creator>
      <dc:date>2020-10-27T06:05:31Z</dc:date>
    </item>
  </channel>
</rss>

