In the Serv-U File Server, you can customize the logging of user and group events and activity to a great extent. To enable a logging option, select the appropriate option in the Log Message Options grouping. When an option is selected, the appropriate logging information is saved to the specified log file if the Enable logging to file option is selected. You can configure the log to show as much or as little information as you want. After configuring the logging options you want, click Save to save the changes.
You must specify the name of the log file before information can be saved to a file. Click Browse to select an existing file or directory location for the log file. The log file path supports certain wildcard characters. Wildcard characters which refer to the date apply to the day that the log file is created. When combined with the Automatically rotate log file option, wildcards provide an automatic way to archive activity for audits. The following list contains the wildcard characters that you can use.
|%H||The hour of the day (24-hour clock).|
|%D||The current day of the month.|
|%M||The name of the current month.|
|%N||The numeric value of the current month (1-12).|
|%Y||The 4-digit value of the current year (for example, 2015).|
|%X||The 2-digit value of the current year (for example, 15 for 2015).|
|%S||The name of the domain whose activity is being logged.|
|%G||The name of the group whose activity is being logged.|
|%L||The name of the login ID whose activity is being logged.|
|%U||The full name of the user whose activity is being logged.|
Select this option to enable Serv-U to begin saving log information to the file that you specified in the Log file path. If this option is not selected, Serv-U does not log any information to the file, regardless of the individual options selected in the Log Message Options area.
To ensure that log files remain a manageable size and can be easily referenced during auditing, you can automatically rotate the log file on a regular basis. By specifying a Log file path containing wildcards that reference the current date, Serv-U can rotate the log file and create a unique file name every hour, day, week, month, or year.
You can automatically purge old log files by setting a maximum number of files to keep, a maximum size limit in megabytes, or both. Setting these options to "0" means that the setting is unlimited and the limit is not applied.
Warning: Log files are purged based only on the current log file path name, and they are purged approximately every 10 minutes. Log file variables are replaced with Windows wildcard values used to search for matching files. For example:
C:\Logs\%Y:%N:%D %S Log.txt is searched for
C:\Logs\????:??:?? * Log.txt
C:\Logs\%Y:%M:%D %S Log.txt is searched for
C:\Logs\????:*:?? * Log.txt
C:\Logs\%S\%Y:%M:%D Log.txt is searched for
C:\Logs\%G\%Y:%M:%D Log.txt is searched for
C:\Logs\%L\%Y:%M:%D Log.txt is searched for
C:\Logs\%U\%Y:%M:%D Log.txt is searched for
The following wildcards can be used for log variables:
%H --> ??
%D --> ??
%N --> ??
%M --> *
%Y --> ????
%X --> ??
%S --> *
%G --> *
%L --> *
%U --> *
Anything matching the path name you used wildcards for can be purged. Use caution: it is best practice to place log files into a single directory to avoid unexpected file deletion.
You can specify IP addresses that are exempt from logging. Activity from these IP addresses is not logged. This is useful to exempt IP addresses for administrators that may otherwise generate a lot of logging information that can obfuscate domain activity from regular users. It can also be used to save log space and reduce overhead. Click Do Not Log IPs, and then add IP addresses as appropriate.