Bootstrap FreeKB - Oracle Access Manager (OAM) WebGate - Logs
Oracle Access Manager (OAM) WebGate - Logs


The oblog_config_wg.xml file is used to control various logging configurations. You can determine the locatation of the oblog_config_wg.xml file by first checking the main WebGate configuration file. In this example, the oblog_config_wg.xml file is located in the /opt/oracle/Middleware/IHS90_Webgate/ directory.

WebGateInstanceDir "/opt/oracle/Middleware/IHS90_Webgate"

 

The oblog_config_wg.xml file will determine the location of the oblog.log file.

<NameValPair
  ParamName="FILE_NAME"
  Value="/var/log/webgate/oblog.log">
</NameValPair>

 

The oblog_config_wg.xml file will also control at what level logging occurs. Following are the log levels that can be used.

  • LOGLEVEL_INFO
  • LOGLEVEL_WARNING
  • LOGLEVEL_FATAL
  • LOGLEVEL_DEBUG1
  • LOGLEVEL_DEBUG2
  • LOGLEVEL_DEBUG3
  • LOGLEVEL_TRACE
  • LOGLEVEL_ECID

 

Log Threshold

The oblog_config_wg.xml file also controls the log threshold. In this example, the log level for the threshold if INFO.

<NameValPair
  ParamName="LOG_THRESHOLD_LEVEL"
  Value="LOGLEVEL_INFO">
</NameValPair>

 

Log Level

In this example, the log level if INFO.

<NameValPair
  ParamName="LOG_LEVEL"
  Value="LOGLEVEL_INFO">
</NameValPair>

 

Restart web server

There is no need to restart anything for these changes to take effect. In fact, the opening line in the comment block at the top of the oblog_config_wg.xml file states:

<!--  Changes to this file will be automatically taken into  effect  -->
<!--  in one minute. This does not require any server restart.       -->

 

oblog.log

This is an example of a typical oblog.log file when the log level is INFO. In this example, events are not written to the log. Changing the log level to TRACE would cause a large number of events to be written to the log in a short period of time. Tracing should only be enabled for a very short period of time, to prevent the logs from growing to be too large.

2018/10/04@13:34:32.251743 UTC - WebGate Multi-Process File Logger
****************************************************** BANNER INFORMATION ***************************************************
WebgateId=Prod
WebgateInstallDir=/opt/oracle/Middleware/webgate/ihs
WebgateInstanceDir=/opt/oracle/Middleware/IHS90_Webgate
AgentType=WebGate
WebgateVersion=11.1.2.2.0
WebServer=IHS
WebServerStartTime=2018/10/04@17:19:06 UTC
WebServerVersionMode=IBM_HTTP_Server/Worker
HostName=server1.example.com
OsInfo=Linux 2.6.32-696.3.1.el6.x86_64 #1 SMP Thu Apr 20 11:30:02 EDT 2017 x86_64
*****************************************************************************************************************************
<Year/Mon/Day@Hour:Min:Sec.Milsec>      <Process_Id>    <Thread_Id>     <Module>        <Level> <Code>  <File:Line>     "<Message>"     <Named_Values...>
=============================================================================================================================

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter fc9eb2 in the box below so that we can be sure you are a human.