dcsimg

SDC creates more than one log despite daily log rotation being set

Products

Webtrends On Premises 8.x

Issue

Smartsource Data Collector (SDC) logs are configured to rotate daily and produce a single log file for the entire day. Despite this configuration, multiple logs are still being generated each day.

Note: This applies only to SDC running on Microsoft Windows Server 2003.

Resolution

This situation results from a setting in Microsoft Windows Internet Information Services (IIS) that forces the creation of additional files. Perform the steps in each of the sections below, in order, until the issue is resolved.

  1. Verify the SDC server GMT offset settings, dcs.cfg settings, and system time settings are all correct.
  2. Verify the system time is correct (displayed on the clock in the system tray, as pulled from the BIOS.)
  3. In the \SmartSource Data Collector\cfg\ folder, verify the following settings:
    1. In the webtrendssites.lst file, confirm the GMT offset setting (time zone) is set to the time zone in which the server is located.
    2. In the dcs.cfg file, verify the following settings are configured as shown:

      [logrotation]
      rotationperiod=daily

      [servicemodel]
      servicemodel=true

      rotationratestandardlag=1440

    3. Save all changes and reset IIS by opening a command line window and typing “iisreset” (without the quotes). Monitor the log files generated to confirm whether or not this has resolved the issue.
  4. If the condition persists, it will be necessary to edit additional settings in IIS. The IIS Manager has a timeout setting that may be causing the logs to reset. To disable this IIS timeout setting, perform the following steps:
    1. Go to Start > Settings > Control Panel > Administrative Tools > Internet Information Services (IIS) Manager.
    2. Expand the web server tree, expand Web Sites, right-click on the SmartSource Data Collector web site and choose Properties.
    3. Under Home Directory > Application Settings, if no Default Application exists, create one.
    4. Select Configuration… > Options and uncheck all settings.
    5. Save all changes and reset IIS by opening a command line window and typing “iisreset” (without the quotes). Monitor the log files generated to confirm whether or not this has resolved the issue.
  5. Windows 2003 Server IIS has a setting that can restart the IIS worker processes. Disable this setting. To disable IIS worker process recycling:
    1. Go to Start > Settings > Control Panel > Administrative Tools > Internet Information Services (IIS) Manager.
    2. Expand the web server tree, expand Application Pools, right-click on the SmartSource Data Collector Application Pool and choose Properties.
    3. Under the Recycle tab, change the value of “Recycle worker processes (in minutes)” to 1440, then uncheck the box to disable it.
    4. Select Apply to save changes, then reset IIS.
  6. If log files are saved remotely, loss of network connectivity will cause a new log file to be generated by the SDC. This is by process design and not a result of the IIS configuration. If this is the case, it will be necessary to confirm that no network connectivity issues are affecting your SDC server’s ability to saved log files remotely.