sitecoresitecore7.5

How to Rebuild Sitecore Index without blowing my log files?


I have the Sitecore + Coveo system. I have automated Rebuild/Refresh Index using command. But while performing Rebuild/Refresh my Logging files are going up to ~40GB.

Is there anyway so that I can restrict logging while Rebuild/Refresh?


Solution

  • You need to set the logging level for your Crawling log. In the web.config file, find the logger called Sitecore.Diagnostics.Crawling and set the log level.

    This is mine, set to INFO

    <logger name="Sitecore.Diagnostics.Crawling" additivity="false">
      <level value="INFO" />
      <appender-ref ref="CrawlingLogFileAppender" />
    </logger>
    

    That should reduce the amount of logs written. If you want to reduce it even further, you can set it to ERROR or NONE, but I would not recommend NONE.