<?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 x-axis tick marks every month in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128832#M34994</link>
    <description>&lt;P&gt;Hi somesoni2.  OK, this works for me with the advanced XML, but my dashboard XML is simple XML and that does not seem to work.  I converted my dashboard to Advanced XML, but it no longer gives me the same UI and many of my panels do not work - some date problem.&lt;/P&gt;

&lt;P&gt;Do you know how to make this X-axis thing work with the simple XML interface - I need to be able to export PDFs so need to stick with the simple XML.&lt;/P&gt;</description>
    <pubDate>Sun, 01 Dec 2013 06:23:06 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2013-12-01T06:23:06Z</dc:date>
    <item>
      <title>timechart x-axis tick marks every month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128823#M34985</link>
      <description>&lt;P&gt;I want my timechart to show system logins for the last 12 months&lt;/P&gt;

&lt;P&gt;my search is sourcetype="logins" | timechart dc(Username)&lt;/P&gt;

&lt;P&gt;The graph shows data by month for each month, but the X-axis tick marks and labels are only for November 2012, January 2013, March, May, July, September.&lt;/P&gt;

&lt;P&gt;For the life of me, I can't find out how to make it display a tick mark and month name for each month.  It's a standard search, but I really want it in a dashboard.  I have read about &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;option name="charting.axisLabelsX.majorUnit"&amp;gt; P0Y0M0DT1H0M0S&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and the charting.scaleX options, but that makes no difference.&lt;/P&gt;

&lt;P&gt;Isn't this is trivial thing to do...&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2013 05:34:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128823#M34985</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2013-11-05T05:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: timechart x-axis tick marks every month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128824#M34986</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; sourcetype="logins"  | bucket span=1mon _time | timechart dc(Username)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Nov 2013 10:24:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128824#M34986</guid>
      <dc:creator>ShaneNewman</dc:creator>
      <dc:date>2013-11-05T10:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: timechart x-axis tick marks every month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128825#M34987</link>
      <description>&lt;P&gt;Makes no difference, the vizualisation still displays just alternate month names in the x-axis.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2013 10:46:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128825#M34987</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2013-11-05T10:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: timechart x-axis tick marks every month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128826#M34988</link>
      <description>&lt;P&gt;Thanks Shane, I should have clarified that I get all the data in 1 month buckets OK, it's just the x-axis labels and tick marks that are alternate months.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2013 11:13:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128826#M34988</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2013-11-05T11:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: timechart x-axis tick marks every month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128827#M34989</link>
      <description>&lt;P&gt;Instead of using timechart, try just chart dc(Username) by _time&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2013 15:28:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128827#M34989</guid>
      <dc:creator>ShaneNewman</dc:creator>
      <dc:date>2013-11-05T15:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: timechart x-axis tick marks every month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128828#M34990</link>
      <description>&lt;P&gt;This seems to be working for me. Please check and let me know if works for you as well. (using Sideview for advanced xml).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;view autoCancelInterval="90" isPersistable="true" isSticky="true" isVisible="true" objectMode="SimpleForm" onunloadCancelJobs="true" template="dashboard.html"&amp;gt;
  &amp;lt;label&amp;gt;Test X-axis ticks&amp;lt;/label&amp;gt;

  &amp;lt;module name="AccountBar" layoutPanel="appHeader"/&amp;gt;
  &amp;lt;module name="AppBar" layoutPanel="navigationHeader"/&amp;gt;
  &amp;lt;module name="SideviewUtils" layoutPanel="appHeader"/&amp;gt;

  &amp;lt;module name="URLLoader" layoutPanel="viewHeader" autoRun="True"&amp;gt;
            &amp;lt;module name="Search"&amp;gt;
          &amp;lt;param name="search"&amp;gt;
           sourcetype="logins"  | timechart dc(Username)
          &amp;lt;/param&amp;gt;
          &amp;lt;module name="JobProgressIndicator" layoutPanel="panel_row1_col1"&amp;gt;&amp;lt;/module&amp;gt;
            &amp;lt;module name="HiddenChartFormatter"  layoutPanel="panel_row1_col1"&amp;gt;
                &amp;lt;param name="charting.secondaryAxisTitle.text"&amp;gt;Count&amp;lt;/param&amp;gt;
                &amp;lt;param name="charting.chart"&amp;gt;column&amp;lt;/param&amp;gt;
                &amp;lt;param name="charting.chart.stackMode"&amp;gt;stacked&amp;lt;/param&amp;gt;
                &amp;lt;param name="charting.showMarkers"&amp;gt;true&amp;lt;/param&amp;gt;
                &amp;lt;param name="charting.chart.nullValueMode"&amp;gt;zero&amp;lt;/param&amp;gt;
                &amp;lt;param name="charting.legend.placement"&amp;gt;bottom&amp;lt;/param&amp;gt;
                &amp;lt;param name="primaryAxisTitle.text"&amp;gt;Minutes&amp;lt;/param&amp;gt;
                &amp;lt;param name="charting.scaleX"&amp;gt;1&amp;lt;/param&amp;gt;
                &amp;lt;param name="charting.axisLabelsX.majorUnit"&amp;gt;P0Y1M0DT0H0M0S&amp;lt;/param&amp;gt;
                &amp;lt;module name="FlashChart"&amp;gt;
                        &amp;lt;param name="width"&amp;gt;100%&amp;lt;/param&amp;gt;
                        &amp;lt;param name="height"&amp;gt;300px&amp;lt;/param&amp;gt;
                &amp;lt;/module&amp;gt;
            &amp;lt;/module&amp;gt;           
        &amp;lt;/module&amp;gt;         
  &amp;lt;/module&amp;gt;
&amp;lt;/view&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Nov 2013 16:38:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128828#M34990</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-11-05T16:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: timechart x-axis tick marks every month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128829#M34991</link>
      <description>&lt;P&gt;I did originally use chart dc(Username) by date_month, which does give separate months, but the months are sorted alphabetically, not chronologically.  If I do by _time with bucket&lt;/P&gt;

&lt;P&gt;sourcetype="logins"  | bucket _time span=1mon | chart dc(Username) by _time&lt;/P&gt;

&lt;P&gt;that is chronological, but the x-axis labels are 2012-11-0...000 +11:00 etc.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2013 19:13:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128829#M34991</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2013-11-05T19:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: timechart x-axis tick marks every month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128830#M34992</link>
      <description>&lt;P&gt;Thanks for the suggestion.  I've not used Sideview, but have now installed it.  I don't know where I have to put that XML.  I tried adding it inside my &lt;/P&gt;&lt;FORM&gt;, but I don't see anything different.  Where should it go?&lt;P&gt;&lt;/P&gt;&lt;/FORM&gt;</description>
      <pubDate>Tue, 05 Nov 2013 20:21:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128830#M34992</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2013-11-05T20:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: timechart x-axis tick marks every month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128831#M34993</link>
      <description>&lt;P&gt;Open the view xml window from manager-&amp;gt;user interface -&amp;gt;views and replace everything with the xml I sent.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2013 03:30:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128831#M34993</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-11-06T03:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: timechart x-axis tick marks every month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128832#M34994</link>
      <description>&lt;P&gt;Hi somesoni2.  OK, this works for me with the advanced XML, but my dashboard XML is simple XML and that does not seem to work.  I converted my dashboard to Advanced XML, but it no longer gives me the same UI and many of my panels do not work - some date problem.&lt;/P&gt;

&lt;P&gt;Do you know how to make this X-axis thing work with the simple XML interface - I need to be able to export PDFs so need to stick with the simple XML.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Dec 2013 06:23:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128832#M34994</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2013-12-01T06:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: timechart x-axis tick marks every month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128833#M34995</link>
      <description>&lt;P&gt;Think I managed to work out why simple XML won't do it.  In the advanced XML it specifies &lt;/P&gt;

&lt;P&gt;&lt;MODULE name="JSChart"&gt;&lt;BR /&gt;
   &lt;OBJECT&gt;&lt;PARAM name="width" /&gt;100%&lt;BR /&gt;
   &lt;MODULE name="Gimp"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
   &lt;MODULE name="ConvertToDrilldownSearch"&gt;&lt;BR /&gt;
   &lt;MODULE name="ViewRedirector"&gt;&lt;BR /&gt;
   &lt;PARAM name="viewTarget" /&gt;flashtimeline&lt;BR /&gt;
  &lt;/MODULE&gt;&lt;BR /&gt;
 &lt;/MODULE&gt;&lt;BR /&gt;
&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;If I add &lt;/P&gt;

&lt;P&gt;&lt;MODULE name="FlashChart"&gt;&lt;BR /&gt;
 &lt;OBJECT&gt;&lt;PARAM name="width" /&gt;100%&lt;BR /&gt;
 &lt;PARAM name="height" /&gt;300px&lt;BR /&gt;
&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;that then shows the individual months.  Any idea how to make simple XML use FlashChart, not JSChart&lt;/P&gt;</description>
      <pubDate>Sun, 01 Dec 2013 07:00:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128833#M34995</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2013-12-01T07:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: timechart x-axis tick marks every month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128834#M34996</link>
      <description>&lt;P&gt;This is just incredible that such a simple option can't be achieved in a simple way. I've tried so many ways to achieve this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;timechart dc(Username)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Gives alternate months&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;bucket _time span=1mon | stats dc(Username) by _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Gives the tick marks as full dates including time and TZ offset.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;stats dc(Username) by date_month
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Gives months with lower case text including first letter, sorted alphabetically.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;stats dc(Username) by date_month, date_year  | rename date_month as Month | eval sort_field=case(Month=="january",1, Month=="february",2, Month=="march",3, Month=="april",4, Month=="may",5, Month=="june",6, Month=="july",7, Month=="august",8, Month=="september",9, Month=="october",10, Month=="november",11, Month=="december",12) | sort date_year, sort_field | fields - sort_field, date_year
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Almost gets there, but it still has months with lower case text including first letter, but at least in the right order.&lt;/P&gt;

&lt;P&gt;So finally I add in an eval Month = upper(substr(Month,1,1)).substr(Month,2) to the end.&lt;/P&gt;

&lt;P&gt;Does it really have to be so hard...?  I'm sure I can't be the only person who's ever wanted to get a simple graph of something over 12 months...&lt;/P&gt;

&lt;P&gt;I'm posting this as the answer as I have to use it, but I don't see this really is the right way to do it.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Dec 2013 08:13:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128834#M34996</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2013-12-01T08:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: timechart x-axis tick marks every month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128835#M34997</link>
      <description>&lt;P&gt;This option was working in splunk 4&lt;BR /&gt;
 P0Y0M0DT1H0M0S&lt;BR /&gt;
now it is not working and it's still no such a problem in "known issues"...&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 05:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128835#M34997</guid>
      <dc:creator>0range</dc:creator>
      <dc:date>2014-03-21T05:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: timechart x-axis tick marks every month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128836#M34998</link>
      <description>&lt;P&gt;Hi I have replaced the xml ,&lt;BR /&gt;
and while searching I am not getting all x axis to be displaying.&lt;/P&gt;

&lt;P&gt;can suggest if any other changes needed&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 13:49:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-x-axis-tick-marks-every-month/m-p/128836#M34998</guid>
      <dc:creator>paranjothi</dc:creator>
      <dc:date>2017-07-19T13:49:47Z</dc:date>
    </item>
  </channel>
</rss>

