{"id":9845,"date":"2024-11-14T06:18:26","date_gmt":"2024-11-14T06:18:26","guid":{"rendered":"https:\/\/www.greytrix.com\/blogs\/salesforce\/?p=9845"},"modified":"2025-09-18T09:51:04","modified_gmt":"2025-09-18T09:51:04","slug":"optimizing-log-management-automating-deletion-of-log-import-job-logs-and-integration-statistics","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/salesforce\/2024\/11\/14\/optimizing-log-management-automating-deletion-of-log-import-job-logs-and-integration-statistics\/","title":{"rendered":"Optimizing Log Management: Automating Deletion of Logs, Import Job Logs, and Integration Statistics"},"content":{"rendered":"\n<p>In a previous <a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2024\/04\/25\/gumu-feature-custom-log-retention\/\" data-type=\"link\" data-id=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2024\/04\/25\/gumu-feature-custom-log-retention\/\" target=\"_blank\" rel=\"noreferrer noopener\">blog<\/a>, we explored how GUMU&#x2122; simplifies log management. In this blog, we dive deeper into the enhanced features of automating deletion of log records, exploring practical implementation strategies, and providing insights on maximizing its benefits for the organization. This new functionality will provide users with the ability to delete <strong>Import_Jobs__c<\/strong> and <strong>Integration_Statistics__c<\/strong> records, similar to the existing ability to delete <strong>Logs__c<\/strong> records and automating deletion of log.<\/p>\n\n\n\n<p>During several client implementations, we encountered issues exceeding Salesforce storage limits due to the accumulation of <strong><em>GUMU__Import_Jobs__c<\/em><\/strong> and <strong><em>GUMU__Integration_Statistics__c<\/em><\/strong> records. These objects and GUMU__Logs__c contributed significantly to storage usage, leading to performance issues.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><em><strong><span style=\"text-decoration: underline;\">Automating Deletion of Logs streamlined Log Management with Custom Settings<\/span><\/strong><\/em><\/h4>\n\n\n\n<p>At the heart of GUMU\u2019s log management functionality are few key input fields in the standard settings:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Keep Integration Stats Days<\/strong><\/li>\n\n\n\n<li><strong>Keep Import Jobs Days<\/strong><\/li>\n<\/ul>\n\n\n\n<p>These fields allow users to specify the number of days they want to retain logs. By simply inputting a number, users can dictate how long logs should remain in the system before they are eligible for deletion and automating deletion of log. This flexibility ensures that organizations can tailor their log retention policies to meet specific operational and compliance needs.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2024\/11\/Standardsetting.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; align: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2024\/11\/Standardsetting.png\" alt=\"automating deletion of log\"><\/a><\/center><font size=\"2\"><center><i>Standard Settings <\/i><\/center><\/font>\n\n\n\n<h4 class=\"wp-block-heading\"><strong><em><span style=\"text-decoration: underline;\">Default Retention Periods<\/span><\/em><\/strong><\/h4>\n\n\n\n<p>To further facilitate effective log management, GUMU&#x2122; sets default retention periods for each log type. If a user does not specify a value in the input fields, the following defaults are applied:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Keep Integration Stats Days:<\/strong> 30 days<\/li>\n\n\n\n<li><strong>Keep Import Jobs Days:<\/strong> 7 days<\/li>\n<\/ul>\n\n\n\n<p>These defaults help organizations maintain a baseline level of log management without requiring constant oversight, ensuring that outdated logs do not accumulate unnecessarily and automating deletion of log.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong><em><span style=\"text-decoration: underline;\">Understanding the Deletion Criteria<\/span><\/em><\/strong><\/h4>\n\n\n\n<p>A critical aspect of GUMU&#8217;s automated log management is how logs are selected for deletion. The system uses a straightforward but effective criterion: it evaluates the CreatedDate of each log entry against a calculated cutoff date. Specifically, logs with a CreatedDate that is less than or equal to DateTime.now() &#8211; daysRange will be flagged for deletion.<\/p>\n\n\n\n<p>This means that if, for example, the retention period is set to 30 days, any log created more than 30 days ago will be eligible for deletion during the scheduled clean-up. This approach not only helps in efficiently managing storage but also ensures that the logs are routinely purged, keeping the system uncluttered by automating deletion of log.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong><em><span style=\"text-decoration: underline;\">Scheduled Deletion Process<\/span><\/em><\/strong><\/h4>\n\n\n\n<p>When the scheduled job runs, GUMU&#x2122; checks these input fields for valid numbers. If the fields contain numbers, the system calculates a cutoff date by subtracting the specified number of days from today\u2019s date. Logs with a \u2018<strong>CreatedDate\u2019 <\/strong>older than this cutoff are flagged for deletion. This automated process not only reduces manual intervention but also ensures that only relevant data is retained, enhancing overall system performance.<\/p>\n\n\n\n<p>By following the above blog instructions, you will be able to learn <strong>\u201c<em>Optimizing Log Management: Automating Deletion of Logs, <strong><em>Import Job <\/em><\/strong>and Integration Statistics<\/em>\u201d.<\/strong> If you still have queries or any related problems, don\u2019t hesitate to contact us at <a href=\"mailto:salesforce@greytrix.com\" target=\"_blank\" rel=\"noreferrer noopener\">salesforce@greytrix.com<\/a>. More details about the Product are available on <a href=\"https:\/\/www.greytrix.com\/product\/gumu\/salesforce-sage-erp-integration\" target=\"_blank\" rel=\"noreferrer noopener\">our website<\/a> and<a href=\"https:\/\/appexchange.salesforce.com\/listingDetail?listingId=a0N30000000psM5EAI\" target=\"_blank\" rel=\"noreferrer noopener\"> Salesforce AppExchange<\/a>.<\/p>\n\n\n\n<p>We hope you find this blog resourceful and helpful. However, if you still have concerns and need more help, please get in touch with us at <a href=\"mailto:salesforce@greytrix.com\" target=\"_blank\" rel=\"noreferrer noopener\">salesforce@greytrix.com<\/a><\/p>\n\n\n\n<p><strong>Related Post<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2024\/04\/25\/gumu-feature-custom-log-retention\/\" target=\"_blank\" rel=\"noreferrer noopener\">GUMU&#x2122; Feature: Custom Log Retention<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2023\/08\/30\/functional-description-for-import-routines\/\" target=\"_blank\" rel=\"noreferrer noopener\">GUMU&#x2122; New Feature \u2013 Functional Description for Import Routines<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2022\/11\/30\/new-gumu-chain-next-functionality-for-entity-mapping-import-in-gumu-settings-for-integration\/\" target=\"_blank\" rel=\"noreferrer noopener\">New GUMU Chain Next Functionality for Entity Mapping\/Import in GUMU&#x2122; Settings for Integration<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2023\/08\/18\/gumu-features-segregation-based-on-type-of-import-routine\/\" target=\"_blank\" rel=\"noreferrer noopener\">GUMU&#x2122; Features \u2013 Segregation based on Type of Import routine<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In a previous blog, we explored how GUMU&#x2122; simplifies log management. In this blog, we dive deeper into the enhanced features of automating deletion of log records, exploring practical implementation strategies, and providing insights on maximizing its benefits for the organization. This new functionality will provide users with the ability to delete Import_Jobs__c and Integration_Statistics__c\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2024\/11\/14\/optimizing-log-management-automating-deletion-of-log-import-job-logs-and-integration-statistics\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[956,2,957],"tags":[1103,1562,70,1857,1855,1856,1355,695,159,162,163,164,1732,165,166,169,1299,1298,801,678,1858,179,181,697,786,1852,1854,789,623,184,185,187,188,189,1853,1889,1890,1891,1851,745,1734,736,739,747,359,360,361,730,732,731,364,367,370,374,377,378,744,740,738,746,743,389,400,401,402,737,679,671,683,681,733,687,680,686,684,716,424,425,734,430,735,454,1733,461,463,1850],"class_list":["post-9845","post","type-post","status-publish","format-standard","hentry","category-gumu-features","category-gumu-salesforce","category-gumu-tricks-tips","tag-advance-settings","tag-custom-setting","tag-custom-settings","tag-delete-import-job","tag-delete-integration-statistics-log","tag-delete-log","tag-entity-import","tag-gumu-import-routine","tag-gumu-sf-integration","tag-gumusfsage100","tag-gumusfsage100erp","tag-gumusfsage300","tag-gumusfsage300c","tag-gumusfsage300erp","tag-gumusfsageem","tag-gumusfsageerpx3","tag-gumusfsageintacct","tag-gumusfsageintaccterp","tag-gumusfsagex3","tag-gumulightninginterface","tag-heap-import-job","tag-import","tag-import-data","tag-import-data-from-sage-100-to-salesforce","tag-import-entity","tag-import-job","tag-import-jobs","tag-import-routine","tag-importroutine","tag-integrate-salesforce-with-sage-100","tag-integrate-salesforce-with-sage-300","tag-integrate-salesforce-with-sage-x3","tag-integrate-sfdc-and-sage-100","tag-integrate-sfdc-and-sage-300","tag-integration-statistics","tag-keep-import-jobs-days","tag-keep-integration-stats-days","tag-keep-logs","tag-log","tag-sage-100-connector-with-salesforce","tag-sage-300c-connector-with-salesforce","tag-sage-300c-erp","tag-sage-erp-connector-with-salesforce","tag-sage-x3-connector-with-salesforce","tag-sage100","tag-sage100-salesforce","tag-sage100-sf","tag-sage300c","tag-sage300c-salesforce","tag-sage300c-sf","tag-sagex3","tag-salesforce","tag-salesforce-sage-300","tag-salesforce-sage-x3","tag-salesforce-and-sage-100-integration","tag-salesforce-and-sage-300-integration","tag-salesforce-connector-for-sage-100","tag-salesforce-connector-for-sage-300","tag-salesforce-connector-for-sage-erp","tag-salesforce-connector-for-sage-x3","tag-salesforce-connector-with-sage-erp","tag-salesforce-crm-integration-for-sage-erp","tag-salesforce-integration-with-sage","tag-salesforce-integration-with-sage-100","tag-salesforce-integration-with-sage-300","tag-salesforce-lightning-sage300c-integration","tag-salesforce-lightning-and-sage-100-integration","tag-salesforce-lightning-and-sage-300-integration","tag-salesforce-lightning-and-sagex3-integration","tag-salesforce-lightning-integration-with-sage-100","tag-salesforce-lightning-integration-with-sage-300c","tag-salesforce-lightning-integration-with-sagex3","tag-salesforce-lightning-sage100-integration","tag-salesforce-lightning-sage300-integration-2","tag-salesforce-lightning-sagex3-integration","tag-salesforce-sage-integration","tag-salesforce-with-sage-100-integration","tag-salesforce-with-sage-300-integration","tag-salesforce-with-sage-300c-integration","tag-salesforce-sage100","tag-salesforce-sage300c","tag-sfdc-sage-300","tag-sfdc-integration-with-sage-300c","tag-sfdc-with-sage-300-integration","tag-sfdc-with-sage-x3-integration","tag-standard-setting"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/9845","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/comments?post=9845"}],"version-history":[{"count":3,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/9845\/revisions"}],"predecessor-version":[{"id":9867,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/9845\/revisions\/9867"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/media?parent=9845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/categories?post=9845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/tags?post=9845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}