Logging in Oracle Access Manager (OAM) WebGate

Home > Search
  by

The OAM WebGate oblog configuration file (oblog_config_wg.xml) is used to control the name and location of the OAM WebGate log. 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 OAM WebGate log file (oblog.log).

<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

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

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

 


Restart web server

After these changes are done, you will want to restart the web server for this change to take effect. After the web server has restarted, check the oblog.log file to confirm that records are being written to the log at the appropriate log level.

 


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/IHS85_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...>
=============================================================================================================================

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




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




Comments