| Configure the Server from the Command Line | 79
Object Description
information). Default: 10 MB. Applies to ascp and
ascp4 transfers.
level The logging level. Valid values are log (default),
dbg1, or dbg2. Applies only to ascp transfers.
These commands modify the <logging> sub-section of the <default> section of aspera.conf (or you
can manually edit the file):
...
<default>
<file_system>...</file_system>
<logging>
<directory>logging_directory</directory>
<log_size>size_mb</log_size>
<level>log_level</level>
</logging>
</default>
...
2.
To set user logging values, create logging classes (each with a specific logging configuration) and then assign
users to classes.
a) Create a logging class:
# asconfigurator -x
"set_log_setting_data;classes,class_name;directory,logging_directory;log_size,size_mb;level,log_level"
Object Description
classes The name of the class. This is the value that you use
to assign users to this "class" of logging settings.
directory The full path to the logging directory. Applies only to
ascp transfers.
log_size The size of the log file, in MB, at which it is rotated
(the oldest information is overwritten by the newest
information). Default: 10 MB. Applies to ascp and
ascp4 transfers.
level The logging level. Valid values are log (default),
dbg1, or dbg2. Applies only to ascp transfers.
b) Assign a user to the logging class:
# asconfigurator -x
"set_user_data;user_name,username;logging_class,class_name"
For example, the following commands create two logging classes, admin and home. The home logging class
uses the substitution string $(home) to log to the user's home directory, ensuring that the transfer users have access
to the log files for their transfers. They assign user root to the admin logging configuration, and users user1
and user2 to the home logging configuration.
# asconfigurator -x "set_log_setting_data;classes,admin;directory,/root/
logs;log_size,3;level,dbg"
# asconfigurator -x "set_log_setting_data;classes,home;directory,$(home)/
logs;log_size,20";level,dbg"
# asconfigurator -x "set_user_data;user_name,root;logging_class,admin"