Limit the number of Log files generated by the Sage CRM’s Services

By | April 11, 2019

Sage CRM has inbuilt set of internal logging mechanisms which tracks all the activities performed in CRM as well as records the errors generated. These logs are mainly segregated into various types such as SQL logs, System logs, .Net logs etc. Apart from this, Sage CRM generate logs for the inbuilt services which are installed with the application those are CRM indexer service, Email manager etc.

New Stuff: Component Issue in Sage CRM 2018 R3

Since these services execute in every 5 mins, log files gets updated with the recent recording. Thinking from the System maintenance point of view, after a certain period of time these log files are of no use to system administrator. Thus, in order to avoid unnecessary storage utilization, maintenance team will have to manually keep on removing unwanted files.

In order to ease their work, below steps can be followed that will help to remove old log files by scheduling a Task.

  • Go to Control Panel | Administrative Tools | Task Scheduler. From the right panel click on “Create task”. Enter Name of task e.g. Delete Logging Files.

  • Now Click on Triggers tab. Click on New button to configure this job for Daily, Weekly or Monthly basis also set the time as for when you want this job to execute and click on OK button.

  • Now Click on Actions tab. Click on new button and add following script in Program/script. Then click on OK button.

“forfiles /P “C:\Program Files (x86)\Sage\CRM\Services\Logs” /D -2 /M *CRMSearchIndex.log /C “cmd /c del @file” ”

  • Whenever the Scheduler executes, two days old logs files will be auto-deleted.

About Us
Greytrix a globally recognized Premier Sage Gold Development Partner is a one stop solution provider for Sage ERP and Sage CRM needs. Being recognized and rewarded for multi-man years of experience, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third party add-on development and implementation expertise.

Greytrix has some unique integration solutions for Sage CRM with Sage ERPs (Sage Enterprise Management (Sage X3), Sage Intacct, Sage 100Sage 500 and Sage 300).We also offer best-in-class Sage ERP and Sage CRM customization and development services to Business Partners, End Users and Sage PSG worldwide. Greytrix helps in migrating of Sage CRM from Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes Greytrix Business Manager, Sage CRM Project Manager, Sage CRM Resource Planner, Sage CRM Contract Manager, Sage CRM Event Manager, Sage CRM Budget Planner, Gmail Integration, Sage CRM Mobile Service Signature and Sage CRM CTI Framework.

Greytrix is a recognized Sage Rockstar ISV Partner for GUMU™ Sage Enterprise Management – Sage CRM integration also listed on Sage Marketplace.

For more information on our integration solutions, please contact us at sage@greytrix.com. We will be glad to assist you.