How to enable audit for SAP ERP audit logs in EventLog Analyzer

How to enable audit for SAP ERP audit logs in EventLog Analyzer

Objective

EventLog Analyzer can audit SAP ERP logs via log import feature, This article focuses on how to import the SAP ERP logs via log import in EventLog Analyzer.

Prerequisites

  • Availability of license purchased.

    For build lower than 13000 - EventLog Analyzer consumes one application license for each import and each unique log format identified during log file import - Importing the same file twice with different formats will consume two licenses.
    For build from 13000 & higher - EventLog Analyzer/Log360 consumes one Log source license for onboarding the respective source machine.
  • The file to be imported has to be plain text and not encrypted.
  • The necessary ports and permissions to perform log import are provided in this chart:
Ports
Inbound
Outbound
Service
Additional rights and permissions
TCP/137
Target device
EventLog Analyzer server
NetBIOS name resolution RPC/named pipes (NP)
User permissions:
  • Network access: Do not allow anonymous enumeration of SAM accounts and shares.
  • Sometimes, connecting to different workgroups needs credentials even to view the shared resources.
 
TCP/138
Target device
EventLog Analyzer server
NetBIOS datagram
TCP/139
Target device
EventLog Analyzer server
NetBIOS session RPC/NP
TCP/445
Target device
EventLog Analyzer server
SMB RPC/NP
 

Steps to follow 

1. To add the SAP ERP application for monitoring, the audit logs have to be enabled.
To enable the SAP ERP audit logs:
To the DEFAULT.PFL file in the location <SAP_installed path>\sys\profile, add
  • rsau/enable = 1
  • rsau/local/file = <log location>/audit_00
Note: The user should have permission to read this audit file while importing.
 
2. Import the SAP ERP application logs from the remote path. Importing log files from a remote path in EventLog Analyzer is possible using either of one protocol as follows:
  • SMB - Windows
  • FTP
  • SFTP
Importing the log file from a remote location requires authentication. This authentication can be achieved in two ways:
  • Username and password - Used by SMB - Windows, FTP and SFTP
  • SSH private key file sharing (specific to SFTP protocol)

 Case 1: Authentication type: Username and password 

  • Step 1: Click the + Import Logs option in the top right corner of the screen.
  • Step 2: In the Browse File(s) section, select Remote Path tab.
  • Step 3: In the Device field, enter the device name from which you wish to import the log file or click the + icon to browse for and select the Windows device.
  • Step 4: In the Protocol drop-down, choose the required protocol, SMB-Windows or FTP and SFTP, and enter the port number.
  • Step 5: Provide the Username of the remote device, and the Password field will pop up.
  • Step 6: Enter the Password in the field.
  • Step 7: Use the Browse button to search for and select the file to be imported and click OK.
  • Step 8: Select the Log format as SAP ERP audit Logs .The Store Logs for Short-term option will retain the imported log data in EventLog Analyzer for two days. If the option is left unchecked, the logs will be stored as per your data retention configuration.
  • Step 9: You can choose to schedule the log import at specific time intervals. You can also schedule the log collection by reading the same file on periodic manner or by creating a specific naming conventions for files. Refer How to Perform Scheduled Import Log Collection in EventLog Analyzer for more details.
  • Step 10: Click Import to save the configuration.
 

 Case 2: Authentication type: SFTP-based SSH private key file sharing 

  • Step 1: From the Browse File(s) options listed, select Remote Path.
  • Step 2: In the Device field, enter the device name from which you wish to import the log file. Alternatively, you can click the + icon to browse for and select the Windows device.
  • Step 3: Choose SFTP as the protocol and enter the port number (default port value is 22).
  • Step 4: Provide the Username and choose Key File as the Authentication Type.
Note: EventLog Analyzer supports OpenSSH key file format only.
  • Step 5: Click Browse and select the key file from the device. You can refer to this page to learn how to generate a key file with ssh-keygen, a standard component of the Secure Shell protocol.
  • Step 6: If the key file is passphrase protected, select the Use Passphrase check box and enter the phrase in the field.
  • Step 7: In the File field, click the Browse button to browse for and select the file to be imported.
  • Step 8: Select the Log format as SAP ERP audit Logs. The Store Logs for Short-term option will store the imported log data in EventLog Analyzer for two days. If the option is left unchecked, the logs will be stored as per your data retention configuration.
  • Step 9: You can choose to schedule the log import at specific time intervals. You can also schedule the log collection by reading the same file on periodic manner or by creating a specific naming conventions for files. Refer How to Perform Scheduled Import Log Collection in EventLog Analyzer for more details.
  • Step 10: Click Import to save the configuration.
 

Tips 

1. Log import consumes one Application license for each import performed. If you are importing for analysis, you can select the Store Logs for Short-term option, which will store the imported log data in EventLog Analyzer for two days. If the option is left unchecked, the logs will be stored as per data retention configuration.
2. Log format will be set as Automatically Identify by default. You can select the SAP ERP audit logs manually and extract new fields during log import. Refer How to Extract Fields in Log Import in EventLog Analyzer
4. The Scheduled import option is available in both Remote and S3 bucket imports. Refer How to perform scheduled import log collection in EventLog Analyzer.
 

 Related topics and articles 


                  New to ADSelfService Plus?

                    • Related Articles

                    • Introduction to EventLog Analyzer

                      What is log management?  An enterprise network consists of different entities—perimeter devices, workstations, servers, applications, and more. Each entity records every activity that unfolds within it in the form of logs. These logs hold information ...
                    • How to import logs in EventLog Analyzer from S3 bucket

                      Objective Some applications might record logs in the file system so that the user can import the logs in EventLog Analyzer. This can happen when the logs are located in Local file system of the EventLog Analyzer instance where the shared path is the ...
                    • RPC server unavailable in EventLog Analyzer while collecting logs

                      Issue description The "RPC Server Unavailable" error occurs in EventLog Analyzer when it fails to establish a remote connection with a Windows server or workstation using RPC, WMI, or DCOM services. This issue typically arises due to network ...
                    • How to enable two-factor authentication in EventLog Analyzer

                      Objective To strengthen user authentication in EventLog Analyzer by enabling two-factor authentication (2FA). This helps prevent unauthorized access by requiring a second verification step. EventLog Analyzer supports multiple authentication methods ...
                    • Unable to start EventLog Analyzer

                      Issue description This issue occurs when the EventLog Analyzer service fails to start, or when users are unable to access the web client through the browser (typically on ports 8400 or 8445). Users may experience one or more of the following ...