Skip to content

Commit 5b98771

Browse files
authored
Merge pull request #206212 from tamirkopitz/kopitz/sentinel4sap/remove_docker_container_restart
Update troubleshoot guide
2 parents 7b2f433 + 25f5cbb commit 5b98771

File tree

1 file changed

+58
-31
lines changed

1 file changed

+58
-31
lines changed

articles/sentinel/sap/sap-deploy-troubleshoot.md

Lines changed: 58 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -39,29 +39,41 @@ Run:
3939
docker logs -f sapcon-[SID]
4040
```
4141

42-
## Enable debug mode printing
42+
## Enable/disable debug mode printing
4343

44-
**To enable debug mode printing**:
44+
**Enable debug mode printing**:
4545

46-
1. Copy the following file to your **sapcon/[SID]** directory, and then rename it as `loggingconfig.yaml`: https://raw.githubusercontent.com/Azure/Azure-Sentinel/master/Solutions/SAP/template/loggingconfig_DEV.yaml
46+
1. On your VM, edit the **sapcon/[SID]/systemconfig.ini** file.
4747

48-
1. [Reset the SAP data connector](#reset-the-sap-data-connector).
48+
1. Define the **General** section if it wasn't previously defined. In this section, define `logging_debug = True`.
4949

50-
For example, for SID `A4H`:
50+
For example:
5151

52-
```bash
53-
wget https://raw.githubusercontent.com/Azure/Azure-Sentinel/master/Solutions/SAP/template/loggingconfig_DEV.yaml
54-
cp loggingconfig.yaml ~/sapcon/A4H
55-
docker restart sapcon-A4H
56-
```
52+
```Python
53+
[General]
54+
logging_debug = True
55+
```
5756

58-
**To disable debug mode printing again, run**:
57+
1. Save the file.
5958

60-
```bash
61-
mv loggingconfig.yaml loggingconfig.old
62-
ls
63-
docker restart sapcon-[SID]
64-
```
59+
The change takes effect two minutes after you save the file. You don't need to restart the Docker container.
60+
61+
**Disable debug mode printing**:
62+
63+
1. On your VM, edit the **sapcon/[SID]/systemconfig.ini** file.
64+
65+
1. In the **General** section, define `logging_debug = False`.
66+
67+
For example:
68+
69+
```Python
70+
[General]
71+
logging_debug = False
72+
```
73+
74+
1. Save the file.
75+
76+
The change takes effect two minutes after you save the file. You don't need to restart the Docker container.
6577

6678
## View all Docker execution logs
6779

@@ -116,16 +128,15 @@ docker cp sapcon-A4H:/sapcon-app/sapcon/logs /tmp/sapcon-logs-extract
116128

117129
If you want to check the SAP data connector configuration file and make manual updates, perform the following steps:
118130

119-
1. On your VM, in the user's home directory, open the **~/sapcon/[SID]/systemconfig.ini** file.
120-
1. Update the configuration if needed, and then restart the container:
131+
1. On your VM, open the **sapcon/[SID]/systemconfig.ini** file.
121132

122-
```bash
123-
docker restart sapcon-[SID]
124-
```
133+
1. Update the configuration if needed, and save the file.
134+
135+
The change takes effect two minutes after you save the file. You don't need to restart the Docker container.
125136

126137
## Reset the SAP data connector
127138

128-
The following steps reset the connector and reingest SAP logs from the last 24 hours.
139+
The following steps reset the connector and reingest SAP logs from the last 30 minutes.
129140

130141
1. Stop the connector. Run:
131142

@@ -177,8 +188,18 @@ Docker cp SDK by running docker cp nwrfc750P_8-70002752.zip /sapcon-app/inst/
177188

178189
If ABAP runtime errors appear on large systems, try setting a smaller chunk size:
179190

180-
1. Edit the **sapcon/SID/systemconfig.ini** file and define `timechunk = 5`.
181-
2. [Reset the SAP data connector](#reset-the-sap-data-connector).
191+
1. Edit the **sapcon/[SID]/systemconfig.ini** file and in the **Connector Configuration** section define `timechunk = 5`.
192+
193+
For example:
194+
195+
```Python
196+
[Connector Configuration]
197+
timechunk = 5
198+
```
199+
200+
1. save the file.
201+
202+
The change takes effect two minutes after you save the file. You don't need to restart the Docker container.
182203

183204
> [!NOTE]
184205
> The **timechunk** size is defined in minutes.
@@ -222,7 +243,7 @@ docker restart sapcon-[SID]
222243

223244
### Missing ABAP (SAP user) permissions
224245

225-
If you get an error message similar to: **..Missing Backend RFC Authorization..**, your SAP authorizations and role were not applied properly.
246+
If you get an error message similar to: **..Missing Backend RFC Authorization..**, your SAP authorizations and role weren't applied properly.
226247

227248
1. Ensure that the **MSFTSEN/SENTINEL_CONNECTOR** role was imported as part of a [change request](prerequisites-for-deploying-sap-continuous-threat-monitoring.md) transport, and applied to the connector user.
228249

@@ -271,14 +292,20 @@ If you attempt to retrieve an audit log, without the [required change request](p
271292

272293
While your system should automatically switch to compatibility mode if needed, you may need to switch it manually. To switch to compatibility mode manually:
273294

274-
1. In the **sapcon/SID** directory, edit the **systemconfig.ini** file
295+
1. Edit the **sapcon/[SID]/systemconfig.ini** file
275296

276-
1. Define: `auditlogforcexal = True`
297+
1. In the **Connector Configuration** section defineefine: `auditlogforcexal = True`
277298

278-
1. Restart the Docker container:
299+
For example:
279300

280-
```bash
281-
docker restart sapcon-[SID]
301+
```Python
302+
[Connector Configuration]
303+
auditlogforcexal = True
304+
```
305+
306+
1. save the file.
307+
308+
The change takes effect two minutes after you save the file. You don't need to restart the Docker container.r restart sapcon-[SID]
282309
```
283310

284311
### SAPCONTROL or JAVA subsystems unable to connect
@@ -302,7 +329,7 @@ If you're not able to import the [required SAP log change requests](prerequisite
302329

303330
### Audit log data not ingested past initial load
304331

305-
If the SAP audit log data, visible in either the **RSAU_READ_LOAD** or **SM200** transactions, is not ingested into Microsoft Sentinel past the initial load, you may have a misconfiguration of the SAP system and the SAP host operating system.
332+
If the SAP audit log data, visible in either the **RSAU_READ_LOAD** or **SM200** transactions, isn't ingested into Microsoft Sentinel past the initial load, you may have a misconfiguration of the SAP system and the SAP host operating system.
306333

307334
- Initial loads are ingested after a fresh installation of the SAP data connector, or after the **metadata.db** file is deleted.
308335
- A sample misconfiguration might be when your SAP system timezone is set to **CET** in the **STZAC** transaction, but the SAP host operating system time zone is set to **UTC**.

0 commit comments

Comments
 (0)