<?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: Setting static timechart Y-Axis maximum value on command line. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Setting-static-timechart-Y-Axis-maximum-value-on-command-line/m-p/263874#M79192</link>
    <description>&lt;P&gt;The only way that I know of is to insert a dummy line that is always 100% all the way across, which you then ignore.  You should call it something like "Always100percentIgnoreMe".  You can do this by using &lt;CODE&gt;append&lt;/CODE&gt; with &lt;CODE&gt;gentimes&lt;/CODE&gt;:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.2/SearchReference/gentimes"&gt;https://docs.splunk.com/Documentation/Splunk/6.4.2/SearchReference/gentimes&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jul 2016 14:18:18 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2016-07-18T14:18:18Z</dc:date>
    <item>
      <title>Setting static timechart Y-Axis maximum value on command line.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Setting-static-timechart-Y-Axis-maximum-value-on-command-line/m-p/263873#M79191</link>
      <description>&lt;P&gt;I haven't found a question/answer specific to this issue timechart y-axis issue.&lt;/P&gt;

&lt;P&gt;I have a timechart where I want the Y-Axis to always be 100%, but the chart is dynamic.  Within the web interface you can specify this within the Format options, but if you use sendemail to send a PDF of the timechart the Y-Axis is currently 125% when the graphed items reach 95%.  I want to ensure the Y-Axis is always 100% by enforcing it on the search command line.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 12:41:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Setting-static-timechart-Y-Axis-maximum-value-on-command-line/m-p/263873#M79191</guid>
      <dc:creator>RNB</dc:creator>
      <dc:date>2016-07-18T12:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Setting static timechart Y-Axis maximum value on command line.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Setting-static-timechart-Y-Axis-maximum-value-on-command-line/m-p/263874#M79192</link>
      <description>&lt;P&gt;The only way that I know of is to insert a dummy line that is always 100% all the way across, which you then ignore.  You should call it something like "Always100percentIgnoreMe".  You can do this by using &lt;CODE&gt;append&lt;/CODE&gt; with &lt;CODE&gt;gentimes&lt;/CODE&gt;:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.2/SearchReference/gentimes"&gt;https://docs.splunk.com/Documentation/Splunk/6.4.2/SearchReference/gentimes&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 14:18:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Setting-static-timechart-Y-Axis-maximum-value-on-command-line/m-p/263874#M79192</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-07-18T14:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Setting static timechart Y-Axis maximum value on command line.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Setting-static-timechart-Y-Axis-maximum-value-on-command-line/m-p/263875#M79193</link>
      <description>&lt;P&gt;@woodcock, thank you for your response.&lt;/P&gt;

&lt;P&gt;I can see how gentimes would impact the X-Axis but when I implemented gentimes and append, it did not produce any changes in my chart that I could detect.  However, I cannot see how gentimes would impact the Y-Axis.   My search string was as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-7 | append [search %ASA-2-321006 NOT host=splunkserver] | rex "reached (?\d+)" | timechart span=1d max(Utilization) by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To be specific about the application (an academic exercise), I am monitoring a device that is exhibiting characteristics of a memory leak.  Over time the utilized memory increases and I discovered that around 95% utilization the Y-Axis changed from 0-100% utilization to 0-110% utilization, and at 97% the Y-Axis changed to 0-125%.&lt;/P&gt;

&lt;P&gt;Ultimately, I am trying to establish the rate of growth per day, and at what point the memory leak causes the device to fail.  I want the maximum Y-Axis scale to be 100 for a consistent view.  This can be accomplished in the web interface in the Visualization tab, but I have not found a method from the command line as I am also using sendemail to send the PDF report that includes the graph that does not observe the Y-Axis Min/Max values in the web interface.&lt;/P&gt;

&lt;P&gt;Ideally, I think an optional argument for timechart such as x-axis()= would be a big help.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 15:18:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Setting-static-timechart-Y-Axis-maximum-value-on-command-line/m-p/263875#M79193</guid>
      <dc:creator>RNB</dc:creator>
      <dc:date>2016-07-18T15:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Setting static timechart Y-Axis maximum value on command line.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Setting-static-timechart-Y-Axis-maximum-value-on-command-line/m-p/263876#M79194</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;%ASA-2-321006 NOT host=splunkserver | rex "reached (?\d+)"
| append [|gentimes start=-7 | eval host="Always100percentIgnoreMe" | eval Utilization="100" ]
| timechart span=1d max(Utilization) by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Jul 2016 19:43:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Setting-static-timechart-Y-Axis-maximum-value-on-command-line/m-p/263876#M79194</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-07-18T19:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Setting static timechart Y-Axis maximum value on command line.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Setting-static-timechart-Y-Axis-maximum-value-on-command-line/m-p/263877#M79195</link>
      <description>&lt;P&gt;@woodcock, thank you for your response and correcting my incorrect usage of the command.&lt;/P&gt;

&lt;P&gt;Unfortunately, it still does not have any effect on the Y-Axis, but in looking back at my initial message I see that I did not make it clear that the Y-Axis scale I am referencing is the Y-Axis labels on the scale from 0 to 100, not limiting any data that might be spurious and causing a column over 100% appearing in the chart.&lt;/P&gt;

&lt;P&gt;I do appreciate you time and help.&lt;BR /&gt;
Thank you&lt;BR /&gt;
Randy&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1596i5ABA2E5713BBC068/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 16:46:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Setting-static-timechart-Y-Axis-maximum-value-on-command-line/m-p/263877#M79195</guid>
      <dc:creator>RNB</dc:creator>
      <dc:date>2016-07-19T16:46:37Z</dc:date>
    </item>
  </channel>
</rss>

