<?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: How to edit my search to show a line of an average over the last 30 days on a column graph? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-show-a-line-of-an-average-over-the-last/m-p/228702#M67667</link>
    <description>&lt;P&gt;Yes, there are lots of ways. A simple way would be to use &lt;CODE&gt;trendline&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=CATSG14 "INTGWAUTH" AND "Failed login" earliest=-30d@d latest=now 
| timechart span=1h count
| trendline sma5(count) as 5hour_average
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can change the 5 of &lt;CODE&gt;sma5&lt;/CODE&gt; to something else, e.g. a 24 hour average with &lt;CODE&gt;| trendline sma24(count)&lt;/CODE&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Docs for &lt;CODE&gt;trendline&lt;/CODE&gt; can be found &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/SearchReference/trendline"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jan 2016 15:30:39 GMT</pubDate>
    <dc:creator>aljohnson_splun</dc:creator>
    <dc:date>2016-01-11T15:30:39Z</dc:date>
    <item>
      <title>How to edit my search to show a line of an average over the last 30 days on a column graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-show-a-line-of-an-average-over-the-last/m-p/228701#M67666</link>
      <description>&lt;P&gt;Hi helpful people,&lt;/P&gt;

&lt;P&gt;I wish to display on a column graph an average line for my search. My current search is as follows:-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=CATSG14 "INTGWAUTH" AND "Failed login" earliest=-30d@d latest=now | timechart span=1d count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there anyway to show an average bar on the graph? Any help will be truly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 15:24:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-show-a-line-of-an-average-over-the-last/m-p/228701#M67666</guid>
      <dc:creator>SecureIA</dc:creator>
      <dc:date>2016-01-11T15:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to show a line of an average over the last 30 days on a column graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-show-a-line-of-an-average-over-the-last/m-p/228702#M67667</link>
      <description>&lt;P&gt;Yes, there are lots of ways. A simple way would be to use &lt;CODE&gt;trendline&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=CATSG14 "INTGWAUTH" AND "Failed login" earliest=-30d@d latest=now 
| timechart span=1h count
| trendline sma5(count) as 5hour_average
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can change the 5 of &lt;CODE&gt;sma5&lt;/CODE&gt; to something else, e.g. a 24 hour average with &lt;CODE&gt;| trendline sma24(count)&lt;/CODE&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Docs for &lt;CODE&gt;trendline&lt;/CODE&gt; can be found &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/SearchReference/trendline"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 15:30:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-show-a-line-of-an-average-over-the-last/m-p/228702#M67667</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2016-01-11T15:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to show a line of an average over the last 30 days on a column graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-show-a-line-of-an-average-over-the-last/m-p/228703#M67668</link>
      <description>&lt;P&gt;thanks for your reply aljohnson!! I tried this, however I simply get another bar instead of a trendline &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 15:36:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-show-a-line-of-an-average-over-the-last/m-p/228703#M67668</guid>
      <dc:creator>SecureIA</dc:creator>
      <dc:date>2016-01-11T15:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to show a line of an average over the last 30 days on a column graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-show-a-line-of-an-average-over-the-last/m-p/228704#M67669</link>
      <description>&lt;P&gt;You would have to select the overlay option to set the new field as overlay field. See here&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1/Viz/Chartcontrols#Chart_overlay_example_.28dual_axis.29"&gt;http://docs.splunk.com/Documentation/Splunk/6.1/Viz/Chartcontrols#Chart_overlay_example_.28dual_axis.29&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 16:22:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-show-a-line-of-an-average-over-the-last/m-p/228704#M67669</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-01-11T16:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to show a line of an average over the last 30 days on a column graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-show-a-line-of-an-average-over-the-last/m-p/228705#M67670</link>
      <description>&lt;P&gt;Thanks alot guys, I managed this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 09:45:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-show-a-line-of-an-average-over-the-last/m-p/228705#M67670</guid>
      <dc:creator>SecureIA</dc:creator>
      <dc:date>2016-01-12T09:45:17Z</dc:date>
    </item>
  </channel>
</rss>

