Quantcast
Viewing all articles
Browse latest Browse all 2021

Configuration Request Table

I need a solution

Good morning everyone,

  We use a report that includes the table Evt_NS_Client_Config_Request in an automation policy to automatically set Active computers that have not requested a configuration in 30 days to missing and generate a service desk ticket. Using the default data purge policy we run into issues where we have more configuration requests then the table is set to hold by default. Normally when an asset is checking in properly this isn't a problem as old config request events get purged and the recent ones are kept. In the case of missing computers there have been times where an asset never goes missing because the last time it checked in has been purged before the job ran to mark it as missing and it doesn't show on the report. Initally my thought was to just set the purge setting to not purge data out for 45 days. This makes sure the data exists in the table so the asset can be marked as missing. While this does technically solve the problem we have almost 3 million rows in the Evt_NS_Client_Config_Request table.  

 

So I had a thought, why not manually purge out this table using a scheduled job in SQL so that only the most recent config request is kept in the database, I can then run this once a day and ultimately solve the problem.

 

My SQL is pretty basic for this:

Delete from Evt_NS_Client_Config_Request where _id not in (
select temp.ID from (select max(_id) as ID, resourceguid from Evt_NS_Client_Config_Request
group by ResourceGuid) as temp)
 
On the surface this seems to fit my need. It also seems like it would help optimize performance as well,  as we're not keeping track of every single time the agent chcked in. This would especially be the case when and end user clicked update configuration a dozen times waiting for a policy to download.  Is there anything I'm missing? Is there some reason that I haven't thought of that we'd want to keep track of the dozens of times an agent requests a configuration update? To my math if we have 3700 machines and each machine is only on 8 hours (more then likely longer then this) a day, checks in once an hour we'd have at mimium 29600 rows per day in that table. 
 
Thanks in advance!
 
Craig

Viewing all articles
Browse latest Browse all 2021

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>