<?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: Change the X axis to reflect a size range of the mount point being displayed in panel? in Security</title>
    <link>https://community.splunk.com/t5/Security/Change-the-X-axis-to-reflect-a-size-range-of-the-mount-point/m-p/359798#M9004</link>
    <description>&lt;P&gt;Thank you niketnilay once again for your help and guidance.&lt;/P&gt;

&lt;P&gt;Unfortunately, in my haste,  I phrased my question improperly and so I apologize to you and all for causing SPL confusion and your time loss.&lt;/P&gt;

&lt;P&gt;What I really wanted to ask help on was for the "Y-axis"  (not the X-axis).  I would like the Y-axis to reflect a value range based on the disk size of the mount-point selected.  &lt;/P&gt;

&lt;P&gt;Example 1:&lt;BR /&gt;
1) /mymount-1 is on a 10TB  filesystem&lt;BR /&gt;
2) Its current disk usage is at 7.5TB&lt;BR /&gt;
3) The X-axis will show the last 30 days of time (as per the timechart cmd)&lt;BR /&gt;
4) I really want the Y-axis to show from 0 to 10  or say from 5 to 10 representing the 10TB filesystem.&lt;BR /&gt;
      4a) The range from 5 to 10 on the Y-axis would be preferred as it would closer to the 7.5 TB used.&lt;/P&gt;

&lt;P&gt;Example 2:&lt;BR /&gt;
If another mount point/filesystem selected is 3TB in size, then the Y-axis would show from 0 to 5&lt;/P&gt;

&lt;P&gt;Again, apologies for having to re-phrasing/re-post this request.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2017 04:33:13 GMT</pubDate>
    <dc:creator>damonmanni</dc:creator>
    <dc:date>2017-06-21T04:33:13Z</dc:date>
    <item>
      <title>Change the X axis to reflect a size range of the mount point being displayed in panel?</title>
      <link>https://community.splunk.com/t5/Security/Change-the-X-axis-to-reflect-a-size-range-of-the-mount-point/m-p/359796#M9002</link>
      <description>&lt;P&gt;My scenario:&lt;BR /&gt;
1) I have a dynamic dropdown showing mount points for selection&lt;BR /&gt;
2) Then I have radio btns to select a time range (30/60 days).&lt;BR /&gt;
3) Once user selects, I Then  graph the disk usage for that mount pt over that time range.&lt;/P&gt;

&lt;P&gt;What I need help with is how to have the x  axis reflect a size range (in TBs) from 0 to &lt;BR /&gt;
      &lt;TITLE&gt;Disk Usage&lt;/TITLE&gt;&lt;BR /&gt;
      &lt;CHART&gt;&lt;BR /&gt;
        &lt;TITLE&gt;For $mount_point$ over the last $days_back$ days&lt;/TITLE&gt;&lt;BR /&gt;
        &lt;SEARCH&gt;&lt;BR /&gt;
          &lt;QUERY&gt;host=mdc4vr1110 OR host=mdc4vr1111 index=os source=df sourcetype=df mount="$mount_point$" | timechart eval(round((avg(storage_used)/1024/1024/1024/1024),2)) by mount&lt;/QUERY&gt;&lt;BR /&gt;
          &lt;EARLIEST&gt;-$days_back$d@d&lt;/EARLIEST&gt;&lt;BR /&gt;
          &lt;LATEST&gt;now&lt;/LATEST&gt;&lt;BR /&gt;
        &lt;/SEARCH&gt;&lt;BR /&gt;
        ellipsisNone&lt;BR /&gt;
        45&lt;BR /&gt;
        visible&lt;BR /&gt;
        visible&lt;BR /&gt;
        visible&lt;BR /&gt;
        linear&lt;BR /&gt;
        linear&lt;BR /&gt;
        0&lt;BR /&gt;
        inherit&lt;BR /&gt;
        line&lt;BR /&gt;
        50&lt;BR /&gt;
        10&lt;BR /&gt;
        area&lt;BR /&gt;
        gaps&lt;BR /&gt;
        minmax&lt;BR /&gt;
        0.01&lt;BR /&gt;
        default&lt;BR /&gt;
        shiny&lt;BR /&gt;
        all&lt;BR /&gt;
        0&lt;BR /&gt;
        0&lt;BR /&gt;
        ellipsisEnd&lt;BR /&gt;
        top&lt;BR /&gt;
        Time Span&lt;BR /&gt;
        Terabytes&lt;BR /&gt;
        value&lt;BR /&gt;
        none&lt;BR /&gt;
        0&lt;BR /&gt;
        1&lt;BR /&gt;
        1&lt;BR /&gt;
        standard&lt;BR /&gt;
        absolute&lt;BR /&gt;
        after&lt;BR /&gt;
        0&lt;BR /&gt;
        1&lt;BR /&gt;
        true&lt;BR /&gt;
        false&lt;BR /&gt;
        none&lt;BR /&gt;
        1&lt;BR /&gt;
        0&lt;BR /&gt;
        20&lt;BR /&gt;
        Size&lt;BR /&gt;
        1&lt;BR /&gt;
        0&lt;BR /&gt;
        10&lt;BR /&gt;
        /mcomonline&lt;BR /&gt;
      &lt;/CHART&gt;&lt;BR /&gt;
    &lt;BR /&gt;
`&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:32:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Change-the-X-axis-to-reflect-a-size-range-of-the-mount-point/m-p/359796#M9002</guid>
      <dc:creator>damonmanni</dc:creator>
      <dc:date>2020-09-29T14:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Change the X axis to reflect a size range of the mount point being displayed in panel?</title>
      <link>https://community.splunk.com/t5/Security/Change-the-X-axis-to-reflect-a-size-range-of-the-mount-point/m-p/359797#M9003</link>
      <description>&lt;P&gt;[&lt;STRONG&gt;Updated&lt;/STRONG&gt;] based on details provided.&lt;/P&gt;

&lt;P&gt;Since your Y-axis will moreover be fixed range. You can consider edit your timechart panel through Format option. Please set Y-axis &lt;BR /&gt;
according to your need for example:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Interval = 1&lt;BR /&gt;
 Min Value=0&lt;BR /&gt;
 Max Value=10&lt;BR /&gt;
 Title (Custom) = Mount Size (in TB)&lt;/CODE&gt;&lt;BR /&gt;
Alternatively, you can try the following in Simple XML&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.axisLabelsY.majorUnit"&amp;gt;1&amp;lt;/option&amp;gt;
&amp;lt;option name="charting.axisTitleY.Text"&amp;gt;Miunt Size(TB)&amp;lt;/option&amp;gt;
&amp;lt;option name="charting.axisY.minimumNumber"&amp;gt;0&amp;lt;/option&amp;gt;
&amp;lt;option name="charting.axisY.maximumNumber"&amp;gt;10&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: You should also explore Gauge Visualizations like Filler Gauge for this use case(current time). Also check out Horizon Chart Custom visualization (historic).&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/116770"&gt;@damonmanni&lt;/a&gt;, you are using timechart command which plots _time values on x-axis. So in case you want to show the series values on x-axis you have couple of options&lt;BR /&gt;
1) Perhaps the more meaningful visualization for you is to have bar chart (since you have 30 or 60 days you will have those many bars)&lt;/P&gt;

&lt;P&gt;2) Use chart instead of timechart where you can choose your x-axis value through over clause and y-axis through by clause. You can format _time to YY-mm-dd format or the format of your choice or even use date_mday field extracted by default as per your use case. However, you might have to give a mock of what exactly you want to show on each axis. Also explain a bit "&lt;STRONG&gt;size range (in TBs) from 0 to&lt;/STRONG&gt;" in your question for us to assist.&lt;/P&gt;

&lt;P&gt;Refer to timechart and chart documentation for understanding their purpose:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Timechart" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Timechart&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Chart" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Chart&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:32:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Change-the-X-axis-to-reflect-a-size-range-of-the-mount-point/m-p/359797#M9003</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T14:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Change the X axis to reflect a size range of the mount point being displayed in panel?</title>
      <link>https://community.splunk.com/t5/Security/Change-the-X-axis-to-reflect-a-size-range-of-the-mount-point/m-p/359798#M9004</link>
      <description>&lt;P&gt;Thank you niketnilay once again for your help and guidance.&lt;/P&gt;

&lt;P&gt;Unfortunately, in my haste,  I phrased my question improperly and so I apologize to you and all for causing SPL confusion and your time loss.&lt;/P&gt;

&lt;P&gt;What I really wanted to ask help on was for the "Y-axis"  (not the X-axis).  I would like the Y-axis to reflect a value range based on the disk size of the mount-point selected.  &lt;/P&gt;

&lt;P&gt;Example 1:&lt;BR /&gt;
1) /mymount-1 is on a 10TB  filesystem&lt;BR /&gt;
2) Its current disk usage is at 7.5TB&lt;BR /&gt;
3) The X-axis will show the last 30 days of time (as per the timechart cmd)&lt;BR /&gt;
4) I really want the Y-axis to show from 0 to 10  or say from 5 to 10 representing the 10TB filesystem.&lt;BR /&gt;
      4a) The range from 5 to 10 on the Y-axis would be preferred as it would closer to the 7.5 TB used.&lt;/P&gt;

&lt;P&gt;Example 2:&lt;BR /&gt;
If another mount point/filesystem selected is 3TB in size, then the Y-axis would show from 0 to 5&lt;/P&gt;

&lt;P&gt;Again, apologies for having to re-phrasing/re-post this request.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 04:33:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Change-the-X-axis-to-reflect-a-size-range-of-the-mount-point/m-p/359798#M9004</guid>
      <dc:creator>damonmanni</dc:creator>
      <dc:date>2017-06-21T04:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Change the X axis to reflect a size range of the mount point being displayed in panel?</title>
      <link>https://community.splunk.com/t5/Security/Change-the-X-axis-to-reflect-a-size-range-of-the-mount-point/m-p/359799#M9005</link>
      <description>&lt;P&gt;Hi @damomanni, thanks for providing the details. Dont worry about our time, someone or the other will always be there to assist if you provide right details! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I have updated the answer, see if it fits your needs.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 09:30:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Change-the-X-axis-to-reflect-a-size-range-of-the-mount-point/m-p/359799#M9005</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-06-21T09:30:35Z</dc:date>
    </item>
  </channel>
</rss>

