<?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: Why am I just getting a chart, but no trend line after using trendline command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-just-getting-a-chart-but-no-trend-line-after-using/m-p/124554#M33672</link>
    <description>&lt;P&gt;You're too quick for me, MuS &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Sep 2014 19:37:55 GMT</pubDate>
    <dc:creator>wpreston</dc:creator>
    <dc:date>2014-09-15T19:37:55Z</dc:date>
    <item>
      <title>Why am I just getting a chart, but no trend line after using trendline command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-just-getting-a-chart-but-no-trend-line-after-using/m-p/124551#M33669</link>
      <description>&lt;P&gt;Hi Experts,&lt;BR /&gt;
I am plotting a trend line with trendline command. Here is my simple search &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="Perfmon:CPU14" | timechart span=1h avg(Value) by host | trendline sma5(avg(Value)) as trend
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am just getting a chart but no trend line. Any help on this will be highly appreciated.&lt;/P&gt;

&lt;P&gt;Thanks in advance &lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2014 19:37:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-just-getting-a-chart-but-no-trend-line-after-using/m-p/124551#M33669</guid>
      <dc:creator>vikas_gopal</dc:creator>
      <dc:date>2014-09-15T19:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I just getting a chart, but no trend line after using trendline command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-just-getting-a-chart-but-no-trend-line-after-using/m-p/124552#M33670</link>
      <description>&lt;P&gt;Hi vikas_gopal,&lt;/P&gt;

&lt;P&gt;looks like &lt;CODE&gt;trendline&lt;/CODE&gt; dosn't like the split by clause of timechart. If you don't need &lt;CODE&gt;timechart&lt;/CODE&gt;s aggregation, you can try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype="Perfmon:CPU14" | bucket _time span=1h | stats avg(Value) AS avg_value by host, _time | trendline sma5(avg_value) as trend
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2014 19:37:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-just-getting-a-chart-but-no-trend-line-after-using/m-p/124552#M33670</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-09-15T19:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I just getting a chart, but no trend line after using trendline command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-just-getting-a-chart-but-no-trend-line-after-using/m-p/124553#M33671</link>
      <description>&lt;P&gt;I'm not sure you can combine operations within a trendline calculation, e.g.  &lt;CODE&gt;| trendline sma5(avg(Value))&lt;/CODE&gt;.   Also, remember that Splunk transforms your results at each step of the search pipeline.  Your &lt;CODE&gt;timechart&lt;/CODE&gt; command transforms your results into a table where each row is a time value and each column is one of the values of the split-by field.  At this point, the split-by field no longer exists in your search results so if you &lt;EM&gt;could&lt;/EM&gt; combine operations within the trendline command, the &lt;STRONG&gt;Value&lt;/STRONG&gt; field is no longer present in your results.  You can see this by running your search one pipe at a time.&lt;/P&gt;

&lt;P&gt;Instead, if I understand what you're wanting to do, try something like this: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="Perfmon:CPU14" | timechart span=1h avg(Value) by host | addtotals row=t | trendline sma5(Total) as trend | field - Total
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Sep 2014 19:37:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-just-getting-a-chart-but-no-trend-line-after-using/m-p/124553#M33671</guid>
      <dc:creator>wpreston</dc:creator>
      <dc:date>2014-09-15T19:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I just getting a chart, but no trend line after using trendline command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-just-getting-a-chart-but-no-trend-line-after-using/m-p/124554#M33672</link>
      <description>&lt;P&gt;You're too quick for me, MuS &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2014 19:37:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-just-getting-a-chart-but-no-trend-line-after-using/m-p/124554#M33672</guid>
      <dc:creator>wpreston</dc:creator>
      <dc:date>2014-09-15T19:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I just getting a chart, but no trend line after using trendline command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-just-getting-a-chart-but-no-trend-line-after-using/m-p/124555#M33673</link>
      <description>&lt;P&gt;Thanks MuS and Wpreston,&lt;BR /&gt;
I tried your search Wpreston, and now I can see the second line as a trend but, with this I am not able to distinguish the trend and the actual data line as both are looking similar. Can't we see or draw trend line as it has been mentioned in the following topic at he bottom please see the screen shot&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://wiki.splunk.com/Community:Plotting_a_linear_trendline"&gt;http://wiki.splunk.com/Community:Plotting_a_linear_trendline&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 15 Sep 2014 19:37:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-just-getting-a-chart-but-no-trend-line-after-using/m-p/124555#M33673</guid>
      <dc:creator>vikas_gopal</dc:creator>
      <dc:date>2014-09-15T19:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I just getting a chart, but no trend line after using trendline command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-just-getting-a-chart-but-no-trend-line-after-using/m-p/124556#M33674</link>
      <description>&lt;P&gt;thanks for the quick response, but it did not work for me with this it seems both the lines are getting overlapped as I cannot see the second line which should be a trend line&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2014 19:37:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-just-getting-a-chart-but-no-trend-line-after-using/m-p/124556#M33674</guid>
      <dc:creator>vikas_gopal</dc:creator>
      <dc:date>2014-09-15T19:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I just getting a chart, but no trend line after using trendline command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-just-getting-a-chart-but-no-trend-line-after-using/m-p/124557#M33675</link>
      <description>&lt;P&gt;The difference is that the blog post in your link timecharts a single count, meaning it only writes out one line making it easy to differentiate the trend. Your search charts a new line for each distinct value of the split by field.  A couple of things you could try would be:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Remove the split by field in your timechart command and change the search to not use &lt;CODE&gt;addtotals&lt;/CODE&gt; and to trendline the correct field.&lt;/LI&gt;
&lt;LI&gt;Leave the search the way it is and change the visualization to a bar or stacked bar, then use Splunk 6's &lt;STRONG&gt;Chart Overlay&lt;/STRONG&gt; (in the format dropdown) to overlay the trend as a line.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 15 Sep 2014 19:37:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-just-getting-a-chart-but-no-trend-line-after-using/m-p/124557#M33675</guid>
      <dc:creator>wpreston</dc:creator>
      <dc:date>2014-09-15T19:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I just getting a chart, but no trend line after using trendline command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-just-getting-a-chart-but-no-trend-line-after-using/m-p/124558#M33676</link>
      <description>&lt;P&gt;That's probably because I made a typo &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="Perfmon:CPU14" | bucket _time span=1h | stats avg(Value) AS avg_value by host, _time | trendline sma5(avg_value) as trend
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Sep 2014 19:37:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-just-getting-a-chart-but-no-trend-line-after-using/m-p/124558#M33676</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-09-15T19:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I just getting a chart, but no trend line after using trendline command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-just-getting-a-chart-but-no-trend-line-after-using/m-p/124559#M33677</link>
      <description>&lt;P&gt;I am trying to figure out something similar. I have multiple panels which just show a number following the calculation so we can monitor these numbers and if they go below a number we change colors in traffic light fashion. The majority use | appendpipe [| stats count | where count=0] | stats count at the end so it doesnt produce an N/A and then the stats count to count the number of instances.&lt;/P&gt;

&lt;P&gt;What i want to do is see trendlines compared to the last 24 hours so i can see if this data is being received for example. Would really appreciate assistance as i am still elevating my knowledge of splunk thanks. &lt;/P&gt;

&lt;P&gt;C.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 13:55:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-just-getting-a-chart-but-no-trend-line-after-using/m-p/124559#M33677</guid>
      <dc:creator>colinmchugo</dc:creator>
      <dc:date>2017-07-12T13:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I just getting a chart, but no trend line after using trendline command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-just-getting-a-chart-but-no-trend-line-after-using/m-p/124560#M33678</link>
      <description>&lt;P&gt;This question is almost three years old and has an accepted question so you're unlikely to get an answer.  You should post a new question.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 15:14:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-just-getting-a-chart-but-no-trend-line-after-using/m-p/124560#M33678</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-07-12T15:14:08Z</dc:date>
    </item>
  </channel>
</rss>

