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
Copy file name to clipboardExpand all lines: support/azure/azure-monitor/log-analytics/configure-and-manage-log-analytics-tables/troubleshoot-custom-log-table-creation.md
+14-21Lines changed: 14 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,40 +7,33 @@ ms.service: azure-monitor
7
7
ms.custom: Configure and Manage Log analytics tables
8
8
---
9
9
10
-
# Troubleshoot Custom Log Table Creation in Azure
10
+
# Troubleshoot custom log table creation in Azure
11
11
12
-
When attempting to create a custom log table using a JSON file in Azure, users may encounter an error stating "Cannot read properties of undefined (reading length)". This issue typically arises during the final step of table creation, despite the JSON being valid. Understanding the root cause and following the correct stepscan help resolve this problem.
12
+
Users might receive an error message that states "Cannot read properties of undefined (reading length)" when they try to create a custom log table by using a JSON file in Microsoft Azure. This issue typically occurs during the final step of table creation even though the JSON file is valid. If you understand the root cause of the issue and follow the correct steps, you can resolve this issue efficiently.
13
13
14
-
## Common Issues and Solutions
14
+
## Common issues and solutions
15
15
16
-
-**Error: Cannot read properties of undefined (reading length)**
17
-
- This error often indicates a problem with the JSON structure or the DCR configuration. Double-check both for accuracy.
16
+
- Error: Cannot read properties of undefined (reading length): This error often indicates an issue that affects the JSON structure or the DCR configuration. Doublecheck both for accuracy.
18
17
19
-
-**No Data Ingestion**
20
-
- Verify that the data source is correctly set up to collect log files. The data source type should be **Custom (Log files)**, and the stream declaration should follow the format `Custom-<TableName>`.
18
+
- No Data Ingestion: Verify that the data source is correctly set up to collect log files. The data source type should be **Custom (Log files)**, and the stream declaration should follow the format `Custom-<TableName>`.
21
19
22
-
### Step-by-Step Instructions to Resolve the Issue
20
+
### Instructions to resolve the issue
23
21
24
-
1.**Verify JSON Validity**
25
-
- Ensure that the JSON file being used is correctly formatted and valid. Use a JSON validator tool to confirm this.
22
+
1. Make sure that the JSON file that's used is correctly formatted and valid. Use a JSON validator tool to verify this.
26
23
27
-
2.**Create a New Data Collection Rule (DCR)**
28
-
- Navigate to the Azure portal and access the**Log Analytics Workspace**.
29
-
- Create a new DCR specifically for the custom log table. Avoid using an existing DCR that collects other types of data, as this can lead to configuration conflicts.
24
+
2. Create a new data collection rule (DCR):
25
+
1. Navigate to the Azure portal >**Log Analytics Workspace**.
26
+
1. Create a DCR specifically for the custom log table. Avoid using an existing DCR that collects other types of data because this action can cause configuration conflicts.
30
27
31
-
3.**Use PowerShell Script for Table Creation**
32
-
- Follow the steps outlined in the [Azure documentation](https://learn.microsoft.com/azure/azure-monitor/vm/data-collection-log-json#create-custom-table) to create the custom table using a PowerShell script.
33
-
- This method allows you to specify the file pattern and verify the DCR configuration after creation.
28
+
3. Follow the steps that are outlined in the [Azure documentation](https://learn.microsoft.com/azure/azure-monitor/vm/data-collection-log-json#create-custom-table) to create the custom table by using a PowerShell script. This method allows you to specify the file pattern and verify the DCR configuration after the creation is finished.
34
29
35
-
4.**Check Contributor Role**
36
-
- Ensure that you have at least the Contributor role in the relevant Azure Workspace to perform these actions.
30
+
4. To be able to perform these actions, make sure that you have at least the Contributor role in the relevant Azure Workspace.
37
31
38
-
5.**Refresh the Portal**
39
-
- If issues persist, try refreshing the Azure portal to ensure all settings are updated.
32
+
5. If the issue persists, try to refresh the Azure portal to make sure that all settings are updated.
40
33
41
34
## Reference
42
35
43
36
-[Create Custom Table in Azure](https://learn.microsoft.com/azure/azure-monitor/vm/data-collection-log-json#create-custom-table)
44
37
-[Data Collection Rule Best Practices](https://learn.microsoft.com/azure/azure-monitor/data-collection/data-collection-rule-best-practices)
45
38
46
-
If the issue persists after following the solution steps, please open a support case for further assistance.
39
+
If the issue persists after you follow these steps, please open a support case for further assistance.
0 commit comments