You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# SAP Security Audit Log Smoke Test — Simulate RFC Call via SAP GUI
2
+
3
+
This guide describes a quick, manual smoke test you can run **directly on the SAP backend** to confirm that the Security Audit Log RFC used by the agentless SAP data connector is working correctly — before raising a support ticket with Microsoft and/or SAP.
4
+
5
+
## Purpose
6
+
7
+
The agentless SAP connector (SAP Integration Suite / SAPCC connector) reads Security Audit Log data from the SAP backend via the `RSAU_API_GET_LOG_DATA`**remote-enabled** function module (RFC). If audit log data (`ABAPAuditLog`) is missing or delayed in Microsoft Sentinel, the fastest way to isolate whether the issue is on the SAP side or the connector side is to call this function module manually using SAP GUI transaction code `SE37`. If the manual call also returns no data (or errors), the issue is on the SAP side (e.g., Security Audit Log not active, no events in the time window, authorization issue, bugs in support package of the SAP Basis release) and should be investigated with SAP first. If the manual call succeeds and returns records, but data still doesn't appear in Sentinel, the issue is more likely in the connector/pipeline.
8
+
9
+
## Prerequisites
10
+
11
+
- SAP GUI access to the relevant SAP system with an account that has developer/admin authorization to run `SE37` and test function modules.
12
+
- Knowledge of the SAP client (mandant) number used by the connector.
13
+
14
+
## Steps
15
+
16
+
### 1. Open the function module in SE37
17
+
18
+
On SAPGUI, run transaction `SE37` and enter `RSAU_API_GET_LOG_DATA` as the
19
+
function module. Click **Execute** (the Test/Execute icon highlighted below).
20
+
21
+

22
+
23
+
This opens the **Test Function Module: Initial Screen**, listing the import parameters

28
+
29
+
### 2. Set the time window (IS_INTERVAL)
30
+
31
+
Click on the value of `IS_INTERVAL` to edit the time window of the audit log query.
32
+
Enter a narrow window to mimic the connectors behavior and avoid too large data set selections (e.g., 1 minute) in the `DAT_FROM` / `DAT_TO` / `TIM_FROM` /
33
+
`TIM_TO` fields, then click the **Insert Date** (copy) button to confirm the entry.
34
+
35
+
> [!NOTE]
36
+
> The required date format on the input field may vary based on your language settings.
37
+
38
+

39
+
40
+
### 3. Filter by SAP client (IT_R_MANDT)
41
+
42
+
Back on the function module screen, edit the value of `IT_R_MANDT` to filter by your SAP
Click **Execute** to run the audit log query. Record the **runtime** and the **number of
51
+
records returned** (`ET_LOG` entry count) — these confirm whether the SAP backend can
52
+
generate and return audit log data for the requested window.
53
+
54
+
> [!IMPORTANT]
55
+
> A runtime of more than 3 minutes for a single minute time window indicate performance issues on the SAP backend. Consult the [performance guide](https://learn.microsoft.com/azure/sentinel/sap/sap-deploy-troubleshoot#long-message-processing-times-or-message-volume-anomalies-on-sap-cloud-integration) for troubleshooting steps. Consult SAP's notes for optimized audit log retrieval.
56
+
> - 3726943 - RSAU_API_GET_LOG_DATA | Dataselection only from Filesystem details

62
+
63
+
## Before opening a support ticket
64
+
65
+
Use the results of this smoke test as evidence when engaging support:
66
+
67
+
-[ ] Security Audit Log is active and required message classes are being recorded on the SAP system for the tested time window (confirm via `RSAU_CONFIG` / `SM19` if `ET_LOG` returns 0 entries).
68
+
-[ ]`IT_R_MANDT` client filter matches the client configured in the connector/destination.
69
+
-[ ] Note the runtime and record count (`ET_LOG` entries) returned by the RFC call.
70
+
-[ ] Check `ET_RETURN` for any warning/error messages from the function module.
71
+
-[ ] If records **are** returned here but do **not** appear in Sentinel's `ABAPAuditLog` table for the same time window, the issue is likely in the connector/pipeline
72
+
-[ ] If records are **not** returned here (and Security Audit Log is confirmed active), the issue is on the SAP backend side — investigate with your **SAP** Basis/Security team first. Start with SAP notes listed on the [prerequisites page on Microsoft Learn](https://learn.microsoft.com/azure/sentinel/sap/prerequisites-for-deploying-sap-continuous-threat-monitoring#sap-prerequisites-for-the-agentless-data-connector).
73
+
74
+
## Related
75
+
76
+
-[IntegrationSuite README](README.md) — connector onboarding scripts and architecture.
Write-Log"Checking for existing Data Collection Endpoint '$dceName'..."
252
368
@@ -339,6 +455,9 @@ function Get-DataCollectionEndpointById {
339
455
$dceName=$DataCollectionEndpointId.Split('/')[-1]
340
456
341
457
Write-Log"Found DCE '$dceName'"-Level "SUCCESS"
458
+
if (-not (Test-SapccResourceName-Name $dceName-Type "DCE")) {
459
+
Write-Log"DCE '$dceName' does not follow the required naming convention: $(Get-SapccExpectedNameFormat-Type 'DCE'). Existing ingestion is left untouched, but downstream tooling may not recognize this resource."-Level "WARNING"
Copy file name to clipboardExpand all lines: Solutions/SAP/Tools/IntegrationSuite/README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,11 @@ These standard tables integrate natively with the Microsoft Sentinel Solution fo
26
26
-**CSV-based destination management**: Process multiple SAP destinations from a CSV file
27
27
-**Automatic connection naming**: Connections are named `{ConnectionPrefix}-{DestinationName}`
28
28
-**Shared infrastructure**: Single DCE/DCR shared across all connections
29
+
-**Enforced DCE/DCR naming**: Names are derived from the Log Analytics workspace ID and validated, so they always match Azure portal deployed resources:
30
+
- DCR: `Microsoft-Sentinel-SAPCC-DCR-<first 12 chars of workspace GUID>`
31
+
- DCE: `ASI-<full workspace GUID>`
32
+
33
+
The scripts abort with a clear error if a name (or a supplied DCE reference) violates this convention, because downstream processes depend on it.
29
34
30
35
## Files
31
36
@@ -37,6 +42,7 @@ These standard tables integrate natively with the Microsoft Sentinel Solution fo
37
42
|`IntegrationSuiteHelpers.ps1`| Shared helper functions for Azure, DCR/DCE, CSV processing, and CF operations |
38
43
|`SAPCC_DCR.json`| Data Collection Rule template with SAP data streams |
39
44
|`destinations-sample.csv`| Sample CSV file showing expected destination format |
45
+
|[`AUDIT-LOG-SMOKE-TEST.md`](AUDIT-LOG-SMOKE-TEST.md)| Manual smoke test to validate the Security Audit Log RFC on the SAP backend before raising a support ticket |
0 commit comments