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

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

For products:
Webtrends Analytics 8.x

Last modified:  1/1/2011

Situation:
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.

Solution:
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.

Verify the system time is correct (displayed on the clock in the system tray, as pulled from the BIOS.)

In the \SmartSource Data Collector\cfg\ folder, verify the following settings:

In the webtrendssites.lst file, confirm the GMT offset setting (time zone) is set to the time zone in which the server is located.

In the dcs.cfg file, verify the following settings are configured as shown:

[logrotation]
rotationperiod=daily

[servicemodel]
servicemodel=true

rotationratestandardlag=1440

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.

2. 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:

Go to Start > Settings > Control Panel > Administrative Tools > Internet Information Services (IIS) Manager.

Expand the web server tree, expand Web Sites, right-click on the SmartSource Data Collector web site and choose Properties.

Under Home Directory > Application Settings, if no Default Application exists, create one.

Select Configuration... > Options and uncheck all settings.

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.

3. Windows 2003 Server IIS has a setting that can restart the IIS worker processes. Disable this setting.

To disable IIS worker process recycling:
Go to Start > Settings > Control Panel > Administrative Tools > Internet Information Services (IIS) Manager.

Expand the web server tree, expand Application Pools, right-click on the SmartSource Data Collector Application Pool and choose Properties.

Under the Recycle tab, change the value of "Recycle worker processes (in minutes)" to 1440, then uncheck the box to disable it.

Select Apply to save changes, then reset IIS.

4. 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.

    • Related Articles

    • How to set the cookie name by domain

      For products: Webtrends On Demand Webtrends Analytics 9.2a Webtrends Analytics 8.x Last modified: 9/22/2010 Situation: You want to accomplish one of the following goals: 1. Have one cookie for all subdomains you are tracking so you can combine ...
    • How do I setup SDC manually?

      Affected Environments: WebTrends Smart Source Data Collector Solution: If there is an error when installing SDC, it may not create the web site for you. Below is the information needed to do this, should the need arise. To install WebTrends ...
    • How large are SDC logs when compared to IIS weblogs?

      For products: Webtrends Analytics 9.2a Webtrends Analytics 8.x Last modified: 9/7/2010 Introduction: You are considering moving to Smartsource Data Collector (SDC) logs and currently use a web log format such as IIS or Apache. To prepare for this ...
    • How do I determine which version of the SmartSource Data Collector (SDC) I have installed?

      For products: Webtrends Analytics 9.2x Webtrends Analytics 8.x Last modified: 8/1/2012 Situation: You want to determine which version of the Smartsource Data Collector (SDC) is installed. Solution: 1. On the SDC server, browse to the Smartsource Data ...
    • How do I determine which version of the SmartSource Data Collector (SDC) I have installed?

      For products: Webtrends Analytics 9.2x Webtrends Analytics 8.x Last modified: 8/1/2012 Situation: You want to determine which version of the Smartsource Data Collector (SDC) is installed. Solution: 1. On the SDC server, browse to the Smartsource Data ...