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: articles/azure-monitor/logs/tutorial-logs-ingestion-code.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -187,7 +187,7 @@ The following sample code uses the [Azure Monitor Ingestion client library for J
187
187
- AZURE_CLIENT_ID
188
188
- AZURE_CLIENT_SECRET
189
189
190
-
3. Replace the variables in the following sample code with values from your DCE, and DCR. Use *Custom-MyTableRawData* for the `data_stream_name` to match the DCR in the tutorial. You might also want to replace the sample data with your own.
190
+
3. Replace the variables in the following sample code with values from your DCE, and DCR. You might also want to replace the sample data with your own.
const client = new LogsIngestionClient(logsIngestionEndpoint, credential);
204
204
const logs = [
@@ -279,13 +279,13 @@ The following sample code uses the [Azure Monitor Ingestion client library for J
279
279
- AZURE_CLIENT_ID
280
280
- AZURE_CLIENT_SECRET
281
281
282
-
4. Replace the variables in the following sample code with values from your DCE, and DCR. Use *Custom-MyTableRawData* for the `<data-stream-name>` to match the DCR in the tutorial. You may also want to replace the sample data with your own.
282
+
4. Replace the variables in the following sample code with values from your DCE, and DCR. You may also want to replace the sample data with your own.
283
283
284
284
```java
285
285
public static void main(String[] args) {
286
286
287
287
LogsIngestionClient client = new LogsIngestionClientBuilder()
@@ -346,15 +346,15 @@ The following script uses the [Azure Monitor Ingestion client library for .NET](
346
346
- AZURE_CLIENT_ID
347
347
- AZURE_CLIENT_SECRET
348
348
349
-
2. Replace the variables in the following sample code with values from your DCE, and DCR. Use *Custom-MyTableRawData* for the `data_stream_name` to match the DCR in the tutorial. You may also want to replace the sample data with your own.
349
+
2. Replace the variables in the following sample code with values from your DCE, and DCR. You may also want to replace the sample data with your own.
350
350
351
351
352
352
353
353
```csharp
354
354
// Initialize variables
355
-
var endpoint = new Uri("<data_collection_endpoint_uri>");
356
-
var ruleId = "<data_collection_rule_id>";
357
-
var streamName = "<data_stream_name>";
355
+
var endpoint = new Uri("https://logs-ingestion-rzmk.eastus2-1.ingest.monitor.azure.com";);
356
+
var ruleId = "dcr-00000000000000000000000000000000";
0 commit comments