dcsimg

How to set up a log file path definition for a folder whose name is based on a date

Products

Webtrends Analytics 8.x
Webtrends Analytics 9.x

Introduction

If the data sources log file path folders are based on date, the following Knowledge Base article will address how to define data source path expressions to account for dated content.
Note: The date macro used to express the folder names within the data source definition. In this scenario the folder name changes everyday, but the remainder of the path “\*.log” stays the same.
Example:
Today’s date is 05-15-2006 and the folder name is:
\\pdxchesxxxxxx\Logs\test\05-15-2006\*.log
The date macros below are examples of what to use in order reflect the folder’s name that is based on a date.
If the log file path definition for the datasource was:
\\pdxchesxxxxxx\Logs\test\%date%%mm%-%dd%-%yyyy%\*.log
Logs in the following path will be pulled:
\\pdxchesxxxxxx\Logs\test\05-15-2006\*.log
If the log file path definition for the datasource was:
\\pdxchesxxxxxx\Logs\test\%date-1%%mm%-%dd%-%yyyy%\*.log
Logs in the following path will be pulled:
\\pdxchesxxxxxx\Logs\test\05-14-2006\*.log
If the log file path definition for the datasource was:
\\pdxchesxxxxxx\Logs\test\%date-2%%mm%-%dd%-%yyyy%\*.log
Logs in the following path will be pulled:
\\pdxchesxxxxxx\Logs\test\05-13-2006\*.log
If the log file path definition for the datasource was:
\\pdxchesxxxxxx\Logs\test\%date-3%%mm%-%dd%-%yyyy%\*.log
Logs in the following path will be pulled:
\\pdxchesxxxxxx\Logs\test\05-12-2006\*.log
If the log file path definition for the datasource was:
\\pdxchesxxxxxx\Logs\test\%date-4%%mm%-%dd%-%yyyy%\*.log
Logs in the following path will be pulled:
\\pdxchesxxxxxx\Logs\test\05-11-2006\*.log