<?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: Timechart /Timewrap - change in the x axis in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Timewrap-change-in-the-x-axis/m-p/394737#M114649</link>
    <description>&lt;P&gt;@Veeruswathi, you can try the following run anywhere search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd log_level!=INFO earliest=-28d@d latest=now
| timechart span=1d count as ERROR
| timewrap 1w
| eval Time=strftime(_time,"%a")
| field - _*
| table Time *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;_time field is removed and retained columns are Time (as first column) followed by other fields created by timechart followed by timewrap commands.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://wiki.splunk.com/images/b/b4/Timewrap_with_Weekdays_on_X-axis.png" alt="alt text" /&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 24 Jun 2018 04:25:01 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-06-24T04:25:01Z</dc:date>
    <item>
      <title>Timechart /Timewrap - change in the x axis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Timewrap-change-in-the-x-axis/m-p/394734#M114646</link>
      <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;I am using the timechart graph to represent number of apples every week over last 28 days and compare it to previous other weeks using timewrap command , The problem here is i see that the latest dates and weekdays (Eg:Sun  Jun 10)  are visible on xaxis. Is there any possiblity that i get on week days (Eg: Sun) instead of date??&lt;/P&gt;

&lt;P&gt;Any help on this would be much appreciated.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Swathi&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 13:55:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Timewrap-change-in-the-x-axis/m-p/394734#M114646</guid>
      <dc:creator>Veeruswathi</dc:creator>
      <dc:date>2018-06-18T13:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart /Timewrap - change in the x axis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Timewrap-change-in-the-x-axis/m-p/394735#M114647</link>
      <description>&lt;P&gt;Any help on this would be much appreciated&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 10:12:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Timewrap-change-in-the-x-axis/m-p/394735#M114647</guid>
      <dc:creator>Veeruswathi</dc:creator>
      <dc:date>2018-06-20T10:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart /Timewrap - change in the x axis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Timewrap-change-in-the-x-axis/m-p/394736#M114648</link>
      <description>&lt;P&gt;something like this?&lt;CODE&gt;index="_audit" | timechart count | eval time=strftime(_time, "%a") | fields time,count | fields - _time&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I am not clear on your requirements but use this code as it is(sine this runs on the default _audit index it will give an output for you as well), the x axis will come only as day names. I do not understand however how just having the day names help you in this case, however that is your use case&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jun 2018 10:57:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Timewrap-change-in-the-x-axis/m-p/394736#M114648</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2018-06-23T10:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart /Timewrap - change in the x axis</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Timewrap-change-in-the-x-axis/m-p/394737#M114649</link>
      <description>&lt;P&gt;@Veeruswathi, you can try the following run anywhere search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd log_level!=INFO earliest=-28d@d latest=now
| timechart span=1d count as ERROR
| timewrap 1w
| eval Time=strftime(_time,"%a")
| field - _*
| table Time *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;_time field is removed and retained columns are Time (as first column) followed by other fields created by timechart followed by timewrap commands.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://wiki.splunk.com/images/b/b4/Timewrap_with_Weekdays_on_X-axis.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jun 2018 04:25:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Timewrap-change-in-the-x-axis/m-p/394737#M114649</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-06-24T04:25:01Z</dc:date>
    </item>
  </channel>
</rss>

