<?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 Calculating Averages, Trend charts and displaying these in dashboards in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Calculating-Averages-Trend-charts-and-displaying-these-in/m-p/193110#M12038</link>
    <description>&lt;P&gt;hello,&lt;BR /&gt;
I have following details which i am indexing to splunk from our Symantec DB via splunk dbconnect. This query runs daily to import the patching success data to Splunk. The example below lists the Microsoft patches compliance per server.&lt;/P&gt;

&lt;P&gt;Server       Compliance  A.C      I.C     NI_C    RR&lt;BR /&gt;
qa-server01  100.00           4    4       0      No&lt;BR /&gt;
qa-server02  100.00           5    5       0      No&lt;BR /&gt;
qa-server01  85.71            7    6       1      No&lt;BR /&gt;
qa-server03  100.00           5    5       0      No&lt;BR /&gt;
qa-server05  100.00           5    5       0      No&lt;/P&gt;

&lt;P&gt;the 1st line mentioned above are the field names that are automatically extracted by Splunk. I listed the output by just tabling these fields for easier reading. &lt;/P&gt;

&lt;P&gt;I need follwing 2 information shown in the dashboard : &lt;/P&gt;

&lt;P&gt;1) Calculate Avg percentage compliance of patches installed on the servers per week &lt;BR /&gt;
For e.g dashboard should list 1st the avg compliance % of patches installed on servers per week ( now-7d)&lt;BR /&gt;
Company Servers Weekly Patch Compliance Result = 95%&lt;BR /&gt;
Followed by the trends charting of avg compliance % for the last 8 weeks broken down per week basis.&lt;/P&gt;

&lt;P&gt;2) Same dashboard to show avg compliance % of patches installed on servers per month&lt;BR /&gt;
Company Servers Monthly Patch Compliance Result = 95%&lt;BR /&gt;
Followed by the trends charting of avg compliance % for the last 1 year broken down per month basis.&lt;/P&gt;

&lt;P&gt;as a stage 2 I will then split my company servers based on the environments, DEV, QA Prod etc and have the above information fed to dashboards for each server environments.&lt;BR /&gt;
I am hoping one you can help me out with this.&lt;/P&gt;

&lt;P&gt;Thank you. &lt;/P&gt;</description>
    <pubDate>Mon, 09 Jun 2014 19:07:09 GMT</pubDate>
    <dc:creator>saurabhkunte</dc:creator>
    <dc:date>2014-06-09T19:07:09Z</dc:date>
    <item>
      <title>Calculating Averages, Trend charts and displaying these in dashboards</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Calculating-Averages-Trend-charts-and-displaying-these-in/m-p/193110#M12038</link>
      <description>&lt;P&gt;hello,&lt;BR /&gt;
I have following details which i am indexing to splunk from our Symantec DB via splunk dbconnect. This query runs daily to import the patching success data to Splunk. The example below lists the Microsoft patches compliance per server.&lt;/P&gt;

&lt;P&gt;Server       Compliance  A.C      I.C     NI_C    RR&lt;BR /&gt;
qa-server01  100.00           4    4       0      No&lt;BR /&gt;
qa-server02  100.00           5    5       0      No&lt;BR /&gt;
qa-server01  85.71            7    6       1      No&lt;BR /&gt;
qa-server03  100.00           5    5       0      No&lt;BR /&gt;
qa-server05  100.00           5    5       0      No&lt;/P&gt;

&lt;P&gt;the 1st line mentioned above are the field names that are automatically extracted by Splunk. I listed the output by just tabling these fields for easier reading. &lt;/P&gt;

&lt;P&gt;I need follwing 2 information shown in the dashboard : &lt;/P&gt;

&lt;P&gt;1) Calculate Avg percentage compliance of patches installed on the servers per week &lt;BR /&gt;
For e.g dashboard should list 1st the avg compliance % of patches installed on servers per week ( now-7d)&lt;BR /&gt;
Company Servers Weekly Patch Compliance Result = 95%&lt;BR /&gt;
Followed by the trends charting of avg compliance % for the last 8 weeks broken down per week basis.&lt;/P&gt;

&lt;P&gt;2) Same dashboard to show avg compliance % of patches installed on servers per month&lt;BR /&gt;
Company Servers Monthly Patch Compliance Result = 95%&lt;BR /&gt;
Followed by the trends charting of avg compliance % for the last 1 year broken down per month basis.&lt;/P&gt;

&lt;P&gt;as a stage 2 I will then split my company servers based on the environments, DEV, QA Prod etc and have the above information fed to dashboards for each server environments.&lt;BR /&gt;
I am hoping one you can help me out with this.&lt;/P&gt;

&lt;P&gt;Thank you. &lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2014 19:07:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Calculating-Averages-Trend-charts-and-displaying-these-in/m-p/193110#M12038</guid>
      <dc:creator>saurabhkunte</dc:creator>
      <dc:date>2014-06-09T19:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Averages, Trend charts and displaying these in dashboards</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Calculating-Averages-Trend-charts-and-displaying-these-in/m-p/193111#M12039</link>
      <description>&lt;P&gt;I sugggest:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere earliest=-7d@d latest=@d
| stats avg(Compliance) as AvgCompliance by Server
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or what I think you want:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere earliest=-7d@d latest=@d
| stats avg(Compliance) as AvgCompliance
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To do it by week:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere earliest=-8w@w latest=@w
| timechart span=1w avg(Compliance) as AvgCompliance
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;By month:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere earliest=-12m@m latest=@m
| timechart span=1m avg(Compliance) as AvgCompliance
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Jun 2014 20:05:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Calculating-Averages-Trend-charts-and-displaying-these-in/m-p/193111#M12039</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-06-09T20:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Averages, Trend charts and displaying these in dashboards</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Calculating-Averages-Trend-charts-and-displaying-these-in/m-p/193112#M12040</link>
      <description>&lt;P&gt;Thanks a lot this search works. I also managed to split my servers into various environments for e.g DEV, QA Prod etc.&lt;/P&gt;

&lt;P&gt;Could I please ask for a slight modification where its displays the compliance Percentages for all the environments per month ? Meaning : &lt;/P&gt;

&lt;P&gt;Y axis has months - Jan, Feb Mar ... and X axis Plots the compliance percentage bar charts for every month ? Thanks again for your quick help.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2014 12:37:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Calculating-Averages-Trend-charts-and-displaying-these-in/m-p/193112#M12040</guid>
      <dc:creator>saurabhkunte</dc:creator>
      <dc:date>2014-06-10T12:37:59Z</dc:date>
    </item>
  </channel>
</rss>

