<?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 Avoid alphabetical sorting on xyseries command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Avoid-alphabetical-sorting-on-xyseries-command/m-p/337433#M100119</link>
    <description>&lt;P&gt;Hello @elliotproebstel &lt;/P&gt;

&lt;P&gt;I have tried using Transpose earlier. However it is not showing the complete results. Some of the sources and months are missing in the final result and that is the reason I went for xyseries. &lt;BR /&gt;
Using Transpose, I get only 4 months and 5 processes which should be more than 10 each.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 09 Mar 2018 15:30:11 GMT</pubDate>
    <dc:creator>maria2691</dc:creator>
    <dc:date>2018-03-09T15:30:11Z</dc:date>
    <item>
      <title>How to Avoid alphabetical sorting on xyseries command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Avoid-alphabetical-sorting-on-xyseries-command/m-p/337431#M100117</link>
      <description>&lt;P&gt;Hello Everyone&lt;/P&gt;

&lt;P&gt;Below is my search query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search  | fillnull TimesRan value=1 
| bucket span=1mon _time 
| stats sum(TimesRan) as timesran by source _time 
| sort by _time asc 
| eval _time=strftime(_time,"%b - %Y") 
| xyseries source, _time, timesran 
| fillnull value=0 
| rename source as "Process"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now the results are like, &lt;/P&gt;

&lt;P&gt;Process Aug - 2017  Dec - 2017  Feb - 2018  Jan - 2018&lt;BR /&gt;
hdjdd          21                16             15              15&lt;BR /&gt;&lt;BR /&gt;
hsfjd               0                172                 143               164&lt;BR /&gt;
hdjd               0                  0              2                      0&lt;BR /&gt;&lt;BR /&gt;
jhdjdk            0             39               54             59&lt;/P&gt;

&lt;P&gt;Even though I have sorted the months before using xyseries, the command is again sorting the months by Alphabetical order. How do I avoid it so that the months are shown in a proper order.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Maria Arokiaraj&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 14:58:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Avoid-alphabetical-sorting-on-xyseries-command/m-p/337431#M100117</guid>
      <dc:creator>maria2691</dc:creator>
      <dc:date>2018-03-09T14:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to Avoid alphabetical sorting on xyseries command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Avoid-alphabetical-sorting-on-xyseries-command/m-p/337432#M100118</link>
      <description>&lt;P&gt;There might be a cleaner way to do this, but this should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search  
| fillnull TimesRan value=1 
| bucket span=1mon _time 
| stats sum(TimesRan) as timesran by source _time 
| xyseries source, _time, timesran 
| fillnull value=0 
| rename source as "Process"
| transpose
| eval column=if(column!="Process", strftime(column,"%b - %Y"), column) 
| transpose header_field=column 
| fields - column
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Mar 2018 15:26:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Avoid-alphabetical-sorting-on-xyseries-command/m-p/337432#M100118</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-03-09T15:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to Avoid alphabetical sorting on xyseries command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Avoid-alphabetical-sorting-on-xyseries-command/m-p/337433#M100119</link>
      <description>&lt;P&gt;Hello @elliotproebstel &lt;/P&gt;

&lt;P&gt;I have tried using Transpose earlier. However it is not showing the complete results. Some of the sources and months are missing in the final result and that is the reason I went for xyseries. &lt;BR /&gt;
Using Transpose, I get only 4 months and 5 processes which should be more than 10 each.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 15:30:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Avoid-alphabetical-sorting-on-xyseries-command/m-p/337433#M100119</guid>
      <dc:creator>maria2691</dc:creator>
      <dc:date>2018-03-09T15:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to Avoid alphabetical sorting on xyseries command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Avoid-alphabetical-sorting-on-xyseries-command/m-p/337434#M100120</link>
      <description>&lt;P&gt;Ah, sure! The &lt;CODE&gt;transpose&lt;/CODE&gt; command defaults to only 5 rows. Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search  
| fillnull TimesRan value=1 
| bucket span=1mon _time 
| stats sum(TimesRan) as timesran by source _time 
| xyseries source, _time, timesran 
| fillnull value=0 
| rename source as "Process"
| transpose 0
| eval column=if(column!="Process", strftime(column,"%b - %Y"), column) 
| transpose 0 header_field=column 
| fields - column
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Mar 2018 15:46:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Avoid-alphabetical-sorting-on-xyseries-command/m-p/337434#M100120</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-03-09T15:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to Avoid alphabetical sorting on xyseries command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Avoid-alphabetical-sorting-on-xyseries-command/m-p/337435#M100121</link>
      <description>&lt;P&gt;Thanks a lot @elliotproebstel. It worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 15:49:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Avoid-alphabetical-sorting-on-xyseries-command/m-p/337435#M100121</guid>
      <dc:creator>maria2691</dc:creator>
      <dc:date>2018-03-09T15:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to Avoid alphabetical sorting on xyseries command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Avoid-alphabetical-sorting-on-xyseries-command/m-p/337436#M100122</link>
      <description>&lt;P&gt;Great! Glad you got it working.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 15:51:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Avoid-alphabetical-sorting-on-xyseries-command/m-p/337436#M100122</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-03-09T15:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to Avoid alphabetical sorting on xyseries command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Avoid-alphabetical-sorting-on-xyseries-command/m-p/337437#M100123</link>
      <description>&lt;P&gt;I have a similar issue..&lt;BR /&gt;
base search |  stats count by Month,date_year,date_month, SLAMet, ReportNamewithextn | sort date_year date_month |  fields Month ReportNamewithextn count | xyseries ReportNamewithextn  Month count | fillnull value=0 | rename ReportNamewithextn as "ReportName"&lt;/P&gt;

&lt;P&gt;Result:&lt;/P&gt;

&lt;P&gt;Report Name Apr 2018 Aug 2018 Dec 2018 Feb 2018&lt;BR /&gt;
aaaaaaaaa       3                 5               3                2&lt;/P&gt;

&lt;P&gt;It needs to be ordered by Mon Year chronologically.  I tried above solution, but it doesn't work. Can you please help&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:48:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Avoid-alphabetical-sorting-on-xyseries-command/m-p/337437#M100123</guid>
      <dc:creator>josephro</dc:creator>
      <dc:date>2020-09-29T22:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to Avoid alphabetical sorting on xyseries command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Avoid-alphabetical-sorting-on-xyseries-command/m-p/337438#M100124</link>
      <description>&lt;P&gt;I have a similar issue..&lt;BR /&gt;
base search | stats count by Month,date_year,date_month, SLAMet, ReportNamewithextn | sort date_year date_month | fields Month ReportNamewithextn count | xyseries ReportNamewithextn Month count | fillnull value=0 | rename ReportNamewithextn as "ReportName"&lt;/P&gt;

&lt;P&gt;Result:&lt;/P&gt;

&lt;P&gt;Report Name Apr 2018 Aug 2018 Dec 2018 Feb 2018&lt;BR /&gt;
aaaaaaaaa 3 5 3 2&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:48:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Avoid-alphabetical-sorting-on-xyseries-command/m-p/337438#M100124</guid>
      <dc:creator>josephro</dc:creator>
      <dc:date>2020-09-29T22:48:40Z</dc:date>
    </item>
  </channel>
</rss>

