Steps to change Webgate Default Log file path
By default the in 10g webgate the log file(oblog.log) will be present in the <Webgate Installation directory>\access\oblix\logs directory. This post explains the steps to change webgate default log file path in windows environment. The steps explained here for oracle access manager 10g webgate.
- Create a folder where you want to store the log files
Eg: D:\WebgateLogs
- Navigate to <Webgate Installation directory>\access\oblix\
- Take the back up of oblog_config_wg.xml
- Open oblog_config_wg.xml
- Search for LogTrace2Sys in this file.
- For the FILE_NAME parameter for LogTrace2Sys , set the value to the new syslog.log Path . Also change the value for LOG_WRITER to FileLogWriter . Now the system logs will be redirected to the syslog file.
<ValNameList
xmlns=”http://www.oblix.com”
ListName=”LogTrace2Sys”>
<NameValPair
ParamName=”LOG_LEVEL”
Value=”LOGLEVEL_TRACE”>
</NameValPair>
<NameValPair
ParamName=”LOG_WRITER”
Value=”FileLogWriter“>
</NameValPair>
<NameValPair
ParamName=”FILE_NAME”
Value=”D:\WebgateLogs \syslog.log“>
<NameValPair
ParamName=”BUFFER_SIZE”
Value=”131072″></NameValPair>
<NameValPair
ParamName=”MAX_ROTATION_SIZE”
Value=”52428800″></NameValPair>
<NameValPair
ParamName=”MAX_ROTATION_TIME”
Value=”86400″></NameValPair>
ParamName=”BUFFER_SIZE”
Value=”131072″></NameValPair>
<NameValPair
ParamName=”MAX_ROTATION_SIZE”
Value=”52428800″></NameValPair>
<NameValPair
ParamName=”MAX_ROTATION_TIME”
Value=”86400″></NameValPair>
<NameValPair
ParamName=”LOG_STATUS”
Value=”On”></NameValPair>
</ValNameList>
ParamName=”LOG_STATUS”
Value=”On”></NameValPair>
</ValNameList>
</ValNameList>
- Search for LogAll2File
- For the FILE_NAME parameter for LogAll2File, set the value to the new oblog.log Path
<!– Write all logs to the Oracle log file. –>
<ValNameList
xmlns=”http://www.oblix.com”
ListName=”LogAll2File”>
<NameValPair
ParamName=”LOG_LEVEL”
Value=”LOGLEVEL_ALL”>
</NameValPair>
<NameValPair
ParamName=”LOG_WRITER”
Value=”FileLogWriter”>
</NameValPair>
<NameValPair
ParamName=”FILE_NAME”
Value=” D:\WebgateLogs \oblog.log “></NameValPair>
<NameValPair
ParamName=”BUFFER_SIZE”
Value=”131072″></NameValPair>
<NameValPair
ParamName=”MAX_ROTATION_SIZE”
Value=”52428800″></NameValPair>
<NameValPair
ParamName=”MAX_ROTATION_TIME”
Value=”86400″></NameValPair>
ParamName=”BUFFER_SIZE”
Value=”131072″></NameValPair>
<NameValPair
ParamName=”MAX_ROTATION_SIZE”
Value=”52428800″></NameValPair>
<NameValPair
ParamName=”MAX_ROTATION_TIME”
Value=”86400″></NameValPair>
<NameValPair
ParamName=”LOG_STATUS”
Value=”On”></NameValPair>
</ValNameList>
ParamName=”LOG_STATUS”
Value=”On”></NameValPair>
</ValNameList>
- Save the file
- Give required write permission to WebgateLogs folder to the Administrator and other users.
- Restart the web server.
- Access the some protected urls and make sure that the Webgate logs are redirected to the new file.
No comments:
Post a Comment