<?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: Forescout: How to generate a report for month over month AV compliance? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Forescout-How-to-generate-a-report-for-month-over-month-AV/m-p/273296#M82373</link>
    <description>&lt;P&gt;Thanks for all of your help @sundareshr!&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2016 17:06:39 GMT</pubDate>
    <dc:creator>tmaltizo</dc:creator>
    <dc:date>2016-11-01T17:06:39Z</dc:date>
    <item>
      <title>Forescout: How to generate a report for month over month AV compliance?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Forescout-How-to-generate-a-report-for-month-over-month-AV/m-p/273287#M82364</link>
      <description>&lt;P&gt;I need to provide month over month AV compliance given the following calculation:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;(Total # AV compliant servers / Total servers) x 100 = % Compliant&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Total # AV compliant servers:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=forescout sourcetype="fs_av_compliance" description="Server*" | dedup src_ip |chart latest(status) as Latest_Status over src_ip | search Latest_Status="compliant" | stats count(src_ip)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Total servers:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=forescout sourcetype="fs_av_compliance" description="Server*" | dedup src_ip | stats count(src_ip)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need assistance with the calculation and do this calculation month over month...maybe a date is necessary for this (the 1st of every month)? &lt;/P&gt;

&lt;P&gt;Thanks in advance for any help with this!&lt;BR /&gt;
Trista&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 14:06:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Forescout-How-to-generate-a-report-for-month-over-month-AV/m-p/273287#M82364</guid>
      <dc:creator>tmaltizo</dc:creator>
      <dc:date>2016-10-26T14:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Forescout: How to generate a report for month over month AV compliance?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Forescout-How-to-generate-a-report-for-month-over-month-AV/m-p/273288#M82365</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=forescout sourcetype="fs_av_compliance" description="Server*" | dedup src_ip | chart count over src_ip by status | addtotals | eventstats sum(Total) as total | where isnotnull(compliant) | eval percCompliant=compliant/total*100 | table src_ip compliant total percCompliant
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Oct 2016 14:43:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Forescout-How-to-generate-a-report-for-month-over-month-AV/m-p/273288#M82365</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-26T14:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Forescout: How to generate a report for month over month AV compliance?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Forescout-How-to-generate-a-report-for-month-over-month-AV/m-p/273289#M82366</link>
      <description>&lt;P&gt;Thanks @sundareshr!&lt;/P&gt;

&lt;P&gt;The output I get is the following:&lt;BR /&gt;
src_ip     compliant     total       percCompliant&lt;BR /&gt;
1.2.3.4    1                     2930      0.034130&lt;BR /&gt;
1.2.3.5    0                     2930      0&lt;BR /&gt;
.....&lt;/P&gt;

&lt;P&gt;How can we get the total all of the compliant "1"s" and then divide that by the total to get one percentage number?&lt;/P&gt;

&lt;P&gt;We want to run this at the first of every month and then chart it month over month to see if we're getting better or worse at AV compliance.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 16:16:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Forescout-How-to-generate-a-report-for-month-over-month-AV/m-p/273289#M82366</guid>
      <dc:creator>tmaltizo</dc:creator>
      <dc:date>2016-10-26T16:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Forescout: How to generate a report for month over month AV compliance?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Forescout-How-to-generate-a-report-for-month-over-month-AV/m-p/273290#M82367</link>
      <description>&lt;P&gt;So you don't want by src_ip? Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=forescout sourcetype="fs_av_compliance" description="Server*" | dedup src_ip | eval src="Of All Devices" | chart count over src by status | addtotals | eval percCompliant=compliant/Total*100 | table src compliant Total percCompliant
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Oct 2016 16:26:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Forescout-How-to-generate-a-report-for-month-over-month-AV/m-p/273290#M82367</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-26T16:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Forescout: How to generate a report for month over month AV compliance?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Forescout-How-to-generate-a-report-for-month-over-month-AV/m-p/273291#M82368</link>
      <description>&lt;P&gt;Yes! That works. Thank you @sundareshr!&lt;/P&gt;

&lt;P&gt;So, how do we add this to capture the percCompliant from the 1st of each month and chart it for month over month comparison?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 20:30:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Forescout-How-to-generate-a-report-for-month-over-month-AV/m-p/273291#M82368</guid>
      <dc:creator>tmaltizo</dc:creator>
      <dc:date>2016-10-26T20:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Forescout: How to generate a report for month over month AV compliance?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Forescout-How-to-generate-a-report-for-month-over-month-AV/m-p/273292#M82369</link>
      <description>&lt;P&gt;Like this&lt;/P&gt;

&lt;P&gt;index=forescout sourcetype="fs_av_compliance" description="Server*" earliest=-3mon@mon | dedup src_ip | eval src="Of All Devices" | timechart span=1mon count by status | addtotals | eval percCompliant=compliant/Total*100 | table _time compliant Total percCompliant&lt;/P&gt;

&lt;P&gt;Now, depending on the volume of data in your index, this could be a very slow query. To optimize it, you will have to use accelerated datamodel or summary indexes. Here's more on that&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/Knowledge/Usesummaryindexing" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/Knowledge/Usesummaryindexing&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/Knowledge/Aboutdatamodels" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/Knowledge/Aboutdatamodels&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:33:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Forescout-How-to-generate-a-report-for-month-over-month-AV/m-p/273292#M82369</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2020-09-29T11:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Forescout: How to generate a report for month over month AV compliance?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Forescout-How-to-generate-a-report-for-month-over-month-AV/m-p/273293#M82370</link>
      <description>&lt;P&gt;I'll try that. Ok Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 20:45:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Forescout-How-to-generate-a-report-for-month-over-month-AV/m-p/273293#M82370</guid>
      <dc:creator>tmaltizo</dc:creator>
      <dc:date>2016-10-26T20:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Forescout: How to generate a report for month over month AV compliance?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Forescout-How-to-generate-a-report-for-month-over-month-AV/m-p/273294#M82371</link>
      <description>&lt;P&gt;Right now the volume is not too bad. We only have data going back to this June. But, we'll plan to optimize the query. Thanks for the info links!&lt;/P&gt;

&lt;P&gt;Now, regarding the current search query, for the given earliest=3mon@mon, would the output be based on the date the query is run? I ran it today, 10/27/2016, so for the previous 3mon, it will do to compliance calculation for 9/27, 8/27, etc....?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 13:48:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Forescout-How-to-generate-a-report-for-month-over-month-AV/m-p/273294#M82371</guid>
      <dc:creator>tmaltizo</dc:creator>
      <dc:date>2016-10-27T13:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Forescout: How to generate a report for month over month AV compliance?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Forescout-How-to-generate-a-report-for-month-over-month-AV/m-p/273295#M82372</link>
      <description>&lt;P&gt;It will be start of the month, so if you run your query today, it will be 9/1, 10/1 etc "-3mon@mon"&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 13:52:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Forescout-How-to-generate-a-report-for-month-over-month-AV/m-p/273295#M82372</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-27T13:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Forescout: How to generate a report for month over month AV compliance?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Forescout-How-to-generate-a-report-for-month-over-month-AV/m-p/273296#M82373</link>
      <description>&lt;P&gt;Thanks for all of your help @sundareshr!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 17:06:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Forescout-How-to-generate-a-report-for-month-over-month-AV/m-p/273296#M82373</guid>
      <dc:creator>tmaltizo</dc:creator>
      <dc:date>2016-11-01T17:06:39Z</dc:date>
    </item>
  </channel>
</rss>

