Translate

How to set up Gateway logging

You want to log the actions of the SAP Gateway. This is especially interesting if you use external programs regularly and you want to ensure a smooth operation.

Using the profile parameter gw/logging


You can use the parameter gw/logging to activate/deactivate logging for certain actions.

The parameter has the following syntax:
LOGFILE=<name> ACTION=[TERSMPXVOC] [MAXSIZEKB=n] [SWITCHTF=t] [FILEWRAP=on]
The individual options mean the following:

1. ACTION: You can log the following actions:

           (T): Network actions: Opening and closing network connections

           (E): Starting external programs

           (R): Registering/deregistering servers

           (S): Security settings and their changes (reloading files)

           (s): Only rejected secinfo and reginfo accesses; see also (Z).

           (M): Monitor commands

           (P): Dynamic changes to parameters

           (X): Start/stop/signals of the Gateway

           (V): Creating and deleting conversation IDs

           (O): Opening RFC connections

           (C): Open/close/data traffic for RFC connections

           (Z): Secinfo and reginfo accesses for which no rule applies.

2. LOGFILE: Name of the log file:

           Special characters that are replaced for the runtime may occur in the file name:

           %y : Year

           %m : Month

           %d : Day

           %h : Hour

           %t : Minute

           %s : Second

           For example: gw_log_%y-%m-%d is replaced for: gw_log-2007-02-28

3. MAXSIZEKB: Maximum size of the log file in kilobytes:

           When the file exceeds this size, a new file is opened and the new file name may change if the special characters are used. This is the case unless a condition is specified for SWITCHTF that occurs beforehand.

4. SWITCHTF: Open a new file again after a certain amount of time unless a condition was specified for MAXSIZEKB that occurs beforehand.

           You can specify the following values here:

           year  : a new file is opened after a year

           month : after a month

           week  : after a week

           day   : after a day

           hour  : after an hour

5. FILEWRAP: Reusing the file

           This parameter can have only the value "on". If this value is set, no new file is written, rather the file already opened is reset and described again. The special values for the parameter LOGFILE are used only when you open the file for the first time.

Example:


If the parameter is set to the value
gw/logging: ACTION=SPXM LOGFILE=gw_log-%y%m%d SWITCHTF=day
security settings, dynamic parameter changes, signals to the Gateway and monitor commands are logged.

Caution: You must create a secinfo.dat and a reginfo.dat accordingly in order to separate reginfo and secinfo in logging. Otherwise, you see only secinfo entries (also for server registrations). For more information, read the online documentation on the SAP Help Portal.

Gateway Monitor

Logging settings were implemented in the Gateway Monitor (transaction SMGW). To do so, proceed as follows::

Transaction SMGW -> Goto -> Expert Functions -> Logging

When you call this, the current setting is displayed. If the caller has the required authorization (AUTHORITY-CHECK OBJECT 'S_ADMI_FCD' ID 'S_ADMI_FCD' FIELD 'PADM'), he/she can change and activate the settings. They are then active immediately for the Gateway. Deactivating all log events causes the open file to close.

This function is also provided in earlier releases. The following kernel patches are required for this:

7.00: 119
6.40: 194

You must import the corresponding Support Packages for the Gateway Monitor enhancements.
620 SAPKB62063
640 SAPKB64021
700 SAPKB70013

You can also use the function without these Support-Packages; to do so, you must enter the parameter gw/logging as described above in the instance profile with the required attributes.

Caution:
For kernel release 640, the parameter
gw/resolve_phys_addr = 1
must be set, otherwise the system logs only the IP addresses instead of the host names.

Documentation


The documentation for gateway logging is available on the Help Portal at:
http://help.sap.com/saphelp_nw04s/helpdata/en/CB/8C882C6FB546F987880EB97C9FB23A/frameset.htm
The documentation for Gateway administration is available at: http://help.sap.com/saphelp_nw70/helpdata/en/4c/16c4b18a0d40c1be3b7839f884e1e2/frameset.htm

No comments:

Labels

sap hana hana database aws s4 hana hana db s4hana conversion steps sap hana azure bw4hana hana migration s4hana migration sap cloud migration steps sap hana migration steps sap hana migration to azure s4hana sap fiori fiori performance fiori erp s4 hana fiori sap fiori app sap fiori client sap fiori launchpad sap s4 hana fiori cisco ecc AI SAP AI abap dumps hana sap S/4HANA S/4HANA Conversion best sap ui5 & fiori training configuration database fiori tutorial on webide free sap ui5 & fiori training s/4 hana sap dumps sap fiori tutorial sap ui5 sap ui5 & fiori sap ui5 & fiori tutorial sara ui5cn 2367245 - Troubleshooting performance issues with SAP BPA Amazon free tier for SAP AWS setup Experience CALL_FUNCTION_NOT_FOUND CCMS Configuration and Use Create New Data Class in SAP (Oracle) Critical top SAP Abap dumps DHCP Clients Not Receiving IP Addresses Download Stack.xml HAN-DB HAN-DB-ENG High CPU Usage Due to Excessive Process Switching How To How to Start and Stop SAP Hana Tenant Database How to change SAP Hana Sql Output results are limited to 5000 Records How to perform SAP Dual Stack Split - Netweaver Inactive Objects in SAP Intercompany transactions in SAP AP / AR : Cross Company Code Transaction Interface Flapping Due to Duplex Mismatch KBA LOAD_PROGRAM_LOST MSSQL shrinking transaction log file Migrating to SAP hana database NAT Overload Causing Internet Access Failure Note 500235 - Network Diagnosis with NIPING OSPF Adjacency Not Forming PRINCE2 Foundation Sample Questions Preparing for S/4HANA Conversion and the MUST know items Push to Download Basket S/4HANA Migration Cockpit S/4JANA SAP BI Support Data Load Errors and Solutions SAP BI/BW Landscape SAP BPA SAP Basis SAP Basis Automation SAP Business Objects SAP CPS SAP Certification SAP FI Certification SAP FI Certification Sample Questions SAP HANA Admin - Cockpit SAP HANA DB Engines SAP HANA Database SAP HANA terminate session connection disconnect cancel kill hang stuck SAP Hana DB restore SAP Hana Numeric Error Codes SAP Landscape SAP Language installation SAP MM and Purchase Order Tables SAP Maintenance Planner SAP Note 500235 SAP R/3 Glossary SAP Readiness Check SAP S/4HANA 1709 Installation Files SAP S/4HANA 2023 SAP S/4HANA 2023 Installation SAP S/4HANA 2023 running SAP S/4HANA Installation SAP Scheduling SAP Solman 7.2 CHARM: SAP Support Package Stack Strategy SAP Support package SAP Upgrade SAP support stack upgrade SP stacks STORAGE_PARAMETERS_WRONG_SET SUSE/SLES/Kernel versions Setup of S/4hana 2023 TSV_TNEW_PAGE_ALLOC_FAILED TSV_TNEW_PAGE_ALLOC_FAILED error Transaction ID Unable to download an SAP Note Unix/Linux Command That Are Helpful For SAP Basis Upgrading SAP Kernel Without Downtime Upgrading windows server 2008 to windows server 2019 What is OSS Notes? SAP SNOTE Tutorial accounting agile ale idoc ale/edi archive FI documents audit auditing auditor aws aws cloud basic type bluefield approach ccms ccmsidb charm copilot datavard dbacockpit download sap note download snote edi idoc electronic data interchange enable sap archiving objects erpprep ffid firefighter fraud functional hana admin how to apply sap security note https://www.erpprep.com/ idoc install install sap fiori installation interfaces intermediate document internal control license key linux version materials management messsage niping test order type port prince2 agile prince2 agile practitioner purchasing quick info s4 hana sap abap dumps sap abbreviations sap activate certification sap activate project manager sap authorization sap aws sap brownfield sap ccms sap ccms configuration sap erp sap error sap grc sap greenfield sap internet demo system sap license sap maintenance certificate sap material management sap meaning sap mm sap mm consultant sap monthly security note sap netweaver sap network diagnostic sap niping sap note sap oss sap patch day sap performance sap performance issue sap purchase order sap s/4hana sap sales and distribution sap sap otc sap sd sap sd certification training sap sd course sap sd jobs sap sd module sap sd online training sap sd training sap sd tutorial sap sd tutorial for beginners sap security sap security note sap snote sap snote tutorial sap solution manager sap sql segregation of duties separation of duties sles slicense smc snote snote in sap system sod conflict solution manager solution maneger stop start hana database suse linux techie trex two step upgrade required waterfall