<?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: Can I make a trendline that overlays my area chart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-trendline-that-overlays-my-area-chart/m-p/218088#M64107</link>
    <description>&lt;P&gt;I've been looking at other answers and tried this&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;eventtype=cv "Source Client"=* "Destination Client"=slc-p-res* OR dab* Duration=* | convert dur2sec(Duration) AS Durationsec | eval Durationhrs=round(Durationsec/60/60,2) | fields - "Destination Client" | timechart span=1d avg(Durationhrs) | addtotals row=t | trendline sma5(Total) AS Trend | fields - Total&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But I am not exactly certain what I am doing here. It seems to work the way I want it to, but I am not sure what the &lt;CODE&gt;row=t&lt;/CODE&gt; part does&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2017 23:05:12 GMT</pubDate>
    <dc:creator>HCadmins</dc:creator>
    <dc:date>2017-01-03T23:05:12Z</dc:date>
    <item>
      <title>Can I make a trendline that overlays my area chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-trendline-that-overlays-my-area-chart/m-p/218087#M64106</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;eventtype=cv "Source Client"=* "Destination Client"=slc-p-res* OR dab* Duration=* | convert dur2sec(Duration) AS Durationsec | eval Durationhrs=round(Durationsec/60/60,2) | fields - "Destination Client" | timechart span=1d avg(Durationhrs) | trendline sma5(Durationhrs) AS Trend
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This currently shows an area chart with 1 day periods and their average durations (which is what I want).&lt;/P&gt;

&lt;P&gt;Can I also show a trendline overlay? I am confused about whether this trendline statement is doing anything, as no new fields are created and no trendline shows up. &lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 22:02:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-trendline-that-overlays-my-area-chart/m-p/218087#M64106</guid>
      <dc:creator>HCadmins</dc:creator>
      <dc:date>2017-01-03T22:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can I make a trendline that overlays my area chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-trendline-that-overlays-my-area-chart/m-p/218088#M64107</link>
      <description>&lt;P&gt;I've been looking at other answers and tried this&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;eventtype=cv "Source Client"=* "Destination Client"=slc-p-res* OR dab* Duration=* | convert dur2sec(Duration) AS Durationsec | eval Durationhrs=round(Durationsec/60/60,2) | fields - "Destination Client" | timechart span=1d avg(Durationhrs) | addtotals row=t | trendline sma5(Total) AS Trend | fields - Total&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But I am not exactly certain what I am doing here. It seems to work the way I want it to, but I am not sure what the &lt;CODE&gt;row=t&lt;/CODE&gt; part does&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 23:05:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-trendline-that-overlays-my-area-chart/m-p/218088#M64107</guid>
      <dc:creator>HCadmins</dc:creator>
      <dc:date>2017-01-03T23:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can I make a trendline that overlays my area chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-trendline-that-overlays-my-area-chart/m-p/218089#M64108</link>
      <description>&lt;P&gt;check out the overlay option in the chart settings.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.1/Viz/Chartcontrols"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.1/Viz/Chartcontrols&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It allows you to choose a field returned by your search to be overlayed. Should do the trick for the searches you have shared&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 00:08:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-trendline-that-overlays-my-area-chart/m-p/218089#M64108</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-01-04T00:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can I make a trendline that overlays my area chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-trendline-that-overlays-my-area-chart/m-p/218090#M64109</link>
      <description>&lt;P&gt;The addtotals command can perform total of both row or column based on numeric fields. row=t will perform sum of all the rows. Ideally it would have been useful if your timechart command had a split field which I don't see. Hence may be the command will work the same even if you take out addtotals command.&lt;/P&gt;

&lt;P&gt;If you want totals of numeric column then you can write &lt;STRONG&gt;addtotals col=t labelfield=_time&lt;/STRONG&gt;&lt;BR /&gt;
Alternatively you can also use addcoltotals command which is similar to addtotals but works only on numeric columns.&lt;/P&gt;

&lt;P&gt;If the trendline command is working as expected for you that is great, but you can also evaluate predict and kmeans commands for trending and prediction.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 06:58:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-trendline-that-overlays-my-area-chart/m-p/218090#M64109</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-01-04T06:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can I make a trendline that overlays my area chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-trendline-that-overlays-my-area-chart/m-p/218091#M64110</link>
      <description>&lt;P&gt;When removing the &lt;CODE&gt;addtotals&lt;/CODE&gt; command, the trendline column disappears, thus it's not what I am trying to do.&lt;/P&gt;

&lt;P&gt;When including the &lt;CODE&gt;addtotals row=t&lt;/CODE&gt; makes a trendline column with values in it. I'm just not sure where it's getting those values. Could you take a look?&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://i67.tinypic.com/2mzcsc6.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 16:09:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-make-a-trendline-that-overlays-my-area-chart/m-p/218091#M64110</guid>
      <dc:creator>HCadmins</dc:creator>
      <dc:date>2017-01-04T16:09:56Z</dc:date>
    </item>
  </channel>
</rss>

