Skip to content

Commit 9b09c94

Browse files
authored
Merge pull request #277654 from batamig/sap-hana-june
Sentinel updating HANA page for AMA agent + analytics rules
2 parents 742ae36 + 7d723d9 commit 9b09c94

File tree

1 file changed

+63
-19
lines changed

1 file changed

+63
-19
lines changed

articles/sentinel/sap/collect-sap-hana-audit-logs.md

Lines changed: 63 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: Collect SAP HANA audit logs in Microsoft Sentinel | Microsoft Docs
33
description: This article explains how to collect audit logs from your SAP HANA database.
4-
author: yelevin
5-
ms.author: yelevin
4+
author: batamig
5+
ms.author: bagol
66
ms.topic: how-to
7-
ms.date: 05/24/2023
7+
ms.date: 06/09/2024
88
---
99

1010
# Collect SAP HANA audit logs in Microsoft Sentinel
@@ -14,7 +14,13 @@ This article explains how to collect audit logs from your SAP HANA database.
1414
> [!IMPORTANT]
1515
> Microsoft Sentinel SAP HANA support is currently in PREVIEW. The [Azure Preview Supplemental Terms](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) include additional legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
1616
17-
If you have SAP HANA database audit logs configured with Syslog, you'll also need to configure your Log Analytics agent to collect the Syslog files.
17+
18+
## Prerequisites
19+
20+
SAP HANA logs are sent over Syslog. Make sure that your AMA agent or your Log Analytics agent (legacy) is configured to collect Syslog files. For more information, see:
21+
22+
For more information, see [Ingest syslog and CEF messages to Microsoft Sentinel with the Azure Monitor Agent](../connect-cef-syslog-ama.md).
23+
1824

1925
## Collect SAP HANA audit logs
2026

@@ -25,29 +31,67 @@ If you have SAP HANA database audit logs configured with Syslog, you'll also nee
2531

2632
1. Check your operating system Syslog files for any relevant HANA database events.
2733

28-
1. Install and configure a Log Analytics agent on your machine:
34+
1. Sign into your HANA database operating system as a user with sudo privileges.
2935

30-
1. Sign in to your HANA database operating system as a user with sudo privileges.
36+
1. Install an agent on your machine and confirm that your machine is connected. For more information, see:
3137

32-
1. In the Azure portal, go to your Log Analytics workspace. On the left pane, under **Settings**, select **Agents management** > **Linux servers**.
38+
- [Azure Monitor Agent](/azure/azure-monitor/agents/azure-monitor-agent-manage?tabs=azure-portal)
39+
- [Log Analytics Agent](../../azure-monitor/agents/agent-linux.md) (legacy)
3340

34-
1. Under **Download and onboard agent for Linux**, copy the code that's displayed in the box to your terminal, and then run the script.
41+
1. Configure your agent to collect Syslog data. For more information, see:
3542

36-
The Log Analytics agent is installed on your machine and connected to your workspace. For more information, see [Install Log Analytics agent on Linux computers](../../azure-monitor/agents/agent-linux.md) and [OMS Agent for Linux](https://github.com/microsoft/OMS-Agent-for-Linux) on the Microsoft GitHub repository.
37-
38-
1. Refresh the **Agents Management > Linux servers** tab to confirm that you have **1 Linux computers connected**.
39-
40-
1. On the left pane, under **Settings**, select **Agents configuration**, and then select the **Syslog** tab.
41-
42-
1. Select **Add facility** to add the facilities you want to collect.
43+
- [Azure Monitor Agent](/azure/azure-monitor/agents/data-collection-syslog)
44+
- [Log Analytics Agent](/azure/azure-monitor/agents/data-sources-syslog) (legacy)
4345

4446
> [!TIP]
45-
> Because the facilities where HANA database events are saved can change between different distributions, we recommend that you add all facilities, check them against your Syslog logs, and then remove any that aren't relevant.
47+
> Because the facilities where HANA database events are saved can change between different distributions, we recommend that you add all facilities. Check them against your Syslog logs, and then remove any that aren't relevant.
4648
>
4749
48-
1. In Microsoft Sentinel, check to confirm that HANA database events are now shown in the ingested logs.
49-
50-
## Next steps
50+
## Verify your configuration
51+
52+
In Microsoft Sentinel, check to confirm that HANA database events are now shown in the ingested logs. For example, run the following query:
53+
54+
```Kusto
55+
//generated function structure for custom log Syslog
56+
// generated on 2024-05-07
57+
let D_Syslog = datatable(TimeGenerated:datetime
58+
,EventTime:datetime
59+
,Facility:string
60+
,HostName:string
61+
,SeverityLevel:string
62+
,ProcessID:int
63+
,HostIP:string
64+
,ProcessName:string
65+
,Type:string
66+
)['1000-01-01T00:00:00Z', '1000-01-01T00:00:00Z', 'initialString', 'initialString', 'initialString', 'initialString',1,'initialString', 'initialString', 'initialString'];
67+
68+
let T_Syslog = (Syslog | project
69+
TimeGenerated = column_ifexists('TimeGenerated', '1000-01-01T00:00:00Z')
70+
,EventTime = column_ifexists('EventTime', '1000-01-01T00:00:00Z')
71+
,Facility = column_ifexists('Facility', 'initialString')
72+
,HostName = column_ifexists('HostName', 'initialString')
73+
,SeverityLevel = column_ifexists('SeverityLevel', 'initialString')
74+
,ProcessID = column_ifexists('ProcessID', 1)
75+
,HostIP = column_ifexists('HostIP', 'initialString')
76+
,ProcessName = column_ifexists('ProcessName', 'initialString')
77+
,Type = column_ifexists('Type', 'initialString')
78+
);
79+
T_Syslog | union isfuzzy= true (D_Syslog | where TimeGenerated != '1000-01-01T00:00:00Z')
80+
```
81+
82+
83+
## Add analytics rules for SAP HANA
84+
85+
Use the following built-in analytics rules to have Microsoft Sentinel start triggering alerts on related SAP HANA activity:
86+
87+
- **SAP - (PREVIEW) HANA DB -Assign Admin Authorizations**
88+
- **SAP - (PREVIEW) HANA DB -Audit Trail Policy Changes**
89+
- **SAP - (PREVIEW) HANA DB -Deactivation of Audit Trail**
90+
- **SAP - (PREVIEW) HANA DB -User Admin actions**
91+
92+
For more information, see [Microsoft Sentinel solution for SAP® applications: security content reference](sap-solution-security-content.md).
93+
94+
## Related content
5195

5296
Learn more about the Microsoft Sentinel solution for SAP® applications:
5397

0 commit comments

Comments
 (0)