Enabling Webgate ECID Logs:
1) Go to Webgate Instance Directory:
bash$> $OHS_HOME/instances/instance1/config/OHS/ohs1/
2) Change Directory to webgate config folder:
bash$> cd webgate/config
3) Open oblog_config_wg.xml file to edit it:
bash$> vi oblog_config_wg.xml
4) By default LOGLEVEL_ECID will be off. Thus it is required to 'On' the logging.
<!-- LOGLEVEL_ECID logs will be logged in a seperate file by default
-->
- <!-- By default LOGLEVEL_ECID will be off.
-->
- <!-- To make it on change "LOG_STATUS" parameter to "On"
-->
- <ValNameList xmlns="http://www.oblix.com" ListName="LogEcid2File">
<NameValPair ParamName="LOG_LEVEL" Value="LOGLEVEL_ECID" />
<NameValPair ParamName="LOG_WRITER" Value="MPFileLogWriter" />
<NameValPair ParamName="FILE_NAME" Value="webgate.ecid.log" />
- <!-- Buffer up to 64 KB (expressed in bytes) of log entries before flushing to the file.
-->
<NameValPair ParamName="BUFFER_SIZE" Value="512" />
- <!-- Rotate the log file once it exceeds 50 MB (expressed in bytes).
-->
<NameValPair ParamName="MAX_ROTATION_SIZE" Value="52428800" />
- <!-- Rotate the log file after 24 hours (expressed in seconds).
-->
<NameValPair ParamName="MAX_ROTATION_TIME" Value="86400" />
<NameValPair ParamName="LOG_STATUS" Value="Off" />
</ValNameList>
5) Here we need to change the LOG_STATUS Value to "On"
<!-- <NameValPair ParamName="LOG_STATUS" Value="Off" /> -->
<NameValPair ParamName="LOG_STATUS" Value="On" />
6) If we want to get the logs write quickly, no buffer storage. We can reduce the BUFFER_SIZE to "1".
7) Save the changes. And we are good to go...!!!!
8) Restart the OHS Web Server.
9) You will see a log file created in the diagnoistics folder named "webgate.ecid.log"
bash$> cd $OHS_HOME/instances/<instance_name>/diagnostics/logs/OHS/ohs1/
bash$> ls *ecid*
webgate.ecid.log
Enjoy :-)
No comments:
Post a Comment