Change the activity.log path using the administrative console by
following these steps:
- Open the v5.0 administrative console.
- Click on Servers.
- Select Application Servers.
- Select Server1.
Under section additional properties
Select Logging and Tracing
Select IBM Service Logs
- The default log file is: $(LOG_ROOT)/activity.log
Change it to your desired path, outside the install root path.
For example: /logs/activity.log
- Save the setting and synchronize
Change the activity.log path using wsadmin by following the sample
script.
The attributes associated with service log config type are missing from
the original example scripts. Attributes for any configuration type can be
shown with the following command (attributes for serviceLog are shown):
$AdminConfig showattribute $rls serviceLog
The correct and complete script for the given example is:
set server [$AdminConfig getid
/Node:ldxlabinfra2/Server:batchjvm]
set rls [$AdminConfig list RASLoggingService $server]
set sl [$AdminConfig showAttribute $rls serviceLog]
set logFile [list name /www/batchjvm/logs/activity.log]
set logAttr [list $logFile]
$AdminConfig modify $sl $logattr
$AdminConfig save
The command that defines sl variable preserves the original values for
size and enabled attributes as required by the administrative console. You
can change these attributes the same way you would for the name
attribute.
|