<?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: Days in Alphabetical Order but need to be in day order..Tried using documentation advice but still won't work in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Days-in-Alphabetical-Order-but-need-to-be-in-day-order-Tried/m-p/150405#M42149</link>
    <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;for me and my needs a simpler way worked fine for me, just in regards or sorting Monday - Sunday in the order I like&lt;/P&gt;

&lt;P&gt;Try this:&lt;/P&gt;

&lt;P&gt;...|chart count(yourfiled) by date_hour date_wday  | table date_hour, monday, thuesday,wednesday,thursday,friday,saturday,sunday | sort date_hour&lt;/P&gt;

&lt;P&gt;Hope this helps everyone targeting the same problem.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 07:59:03 GMT</pubDate>
    <dc:creator>aschneps</dc:creator>
    <dc:date>2020-09-29T07:59:03Z</dc:date>
    <item>
      <title>Days in Alphabetical Order but need to be in day order..Tried using documentation advice but still won't work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Days-in-Alphabetical-Order-but-need-to-be-in-day-order-Tried/m-p/150403#M42147</link>
      <description>&lt;P&gt;I have the following search that creates a bar chart with the days of the week on the vertical axis. THe days are in alphabetical order and I need them to be in order of the week to date so Sunday Monday tuesday wednesday thursday friday.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ko_autosys sourcetype=autosys_applog_scheduler_events host="usatlb98" OR host="usatlb91" JOB_NAME="*" job_status=SUCCESS OR job_status=FAILURE OR job_status=RESTART OR job_status="TERMINATED" |stats count(JOB_NAME) as "Number of Jobs" by date_wday,job_status |eval sort_field=case(wd=="monday",1, wd=="tuesday",2, wd=="wednesday",3, wd=="thursday",4, wd=="friday",5, wd=="weekend",6) | sort sort_field | fields - sort_field |xyseries date_wday,job_status,"Number of Jobs"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please help! Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2015 01:37:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Days-in-Alphabetical-Order-but-need-to-be-in-day-order-Tried/m-p/150403#M42147</guid>
      <dc:creator>zd00191</dc:creator>
      <dc:date>2015-07-31T01:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Days in Alphabetical Order but need to be in day order..Tried using documentation advice but still won't work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Days-in-Alphabetical-Order-but-need-to-be-in-day-order-Tried/m-p/150404#M42148</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ko_autosys AND sourcetype=autosys_applog_scheduler_events AND JOB_NAME="*"
AND (host="usatlb98" OR host="usatlb91") 
AND (job_status="SUCCESS" OR job_status="FAILURE" OR job_status="RESTART" OR job_status="TERMINATED")
| stats count(JOB_NAME) as "Number of Jobs" BY date_wday job_status
| xyseries date_wday,job_status,"Number of Jobs"
| eval sort_field = case(date_wday=="monday",    1,
                         date_wday=="tuesday",   2,
                         date_wday=="wednesday", 3,
                         date_wday=="thursday",  4,
                         date_wday=="friday",    5,
                         date_wday=="saturday",  6,
                         date_wday=="sunday",    7)
| sort 0 sort_field
| fields - sort_field
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jul 2015 02:03:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Days-in-Alphabetical-Order-but-need-to-be-in-day-order-Tried/m-p/150404#M42148</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-31T02:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Days in Alphabetical Order but need to be in day order..Tried using documentation advice but still won't work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Days-in-Alphabetical-Order-but-need-to-be-in-day-order-Tried/m-p/150405#M42149</link>
      <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;for me and my needs a simpler way worked fine for me, just in regards or sorting Monday - Sunday in the order I like&lt;/P&gt;

&lt;P&gt;Try this:&lt;/P&gt;

&lt;P&gt;...|chart count(yourfiled) by date_hour date_wday  | table date_hour, monday, thuesday,wednesday,thursday,friday,saturday,sunday | sort date_hour&lt;/P&gt;

&lt;P&gt;Hope this helps everyone targeting the same problem.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:59:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Days-in-Alphabetical-Order-but-need-to-be-in-day-order-Tried/m-p/150405#M42149</guid>
      <dc:creator>aschneps</dc:creator>
      <dc:date>2020-09-29T07:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Days in Alphabetical Order but need to be in day order..Tried using documentation advice but still won't work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Days-in-Alphabetical-Order-but-need-to-be-in-day-order-Tried/m-p/150406#M42150</link>
      <description>&lt;P&gt;I downvoted this post because did not work&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 17:13:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Days-in-Alphabetical-Order-but-need-to-be-in-day-order-Tried/m-p/150406#M42150</guid>
      <dc:creator>gavinliston</dc:creator>
      <dc:date>2018-01-15T17:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Days in Alphabetical Order but need to be in day order..Tried using documentation advice but still won't work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Days-in-Alphabetical-Order-but-need-to-be-in-day-order-Tried/m-p/150407#M42151</link>
      <description>&lt;P&gt;Worked for me and gave me just what I wanted.  Thanks!  Albeit for a simpler search.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 18:55:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Days-in-Alphabetical-Order-but-need-to-be-in-day-order-Tried/m-p/150407#M42151</guid>
      <dc:creator>bgstein</dc:creator>
      <dc:date>2018-09-28T18:55:52Z</dc:date>
    </item>
  </channel>
</rss>

