Skip to content

Commit af3eb3b

Browse files
Merge pull request #272188 from scottaddie/scottaddie/monitor-go
Update Go docs for new Logs Ingestion release
2 parents 6029409 + 05aec7b commit af3eb3b

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

articles/azure-monitor/logs/data-platform-logs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Azure Monitor Logs
33
description: Learn the basics of Azure Monitor Logs, which are used for advanced analysis of monitoring data.
44
ms.topic: conceptual
5-
ms.date: 09/14/2023
5+
ms.date: 04/15/2024
66
ms.author: bwren
77
---
88

@@ -26,7 +26,7 @@ The following table describes some of the ways that you can use Azure Monitor Lo
2626
| Visualize | Pin query results rendered as tables or charts to an [Azure dashboard](../../azure-portal/azure-portal-dashboards.md).<br>Create a [workbook](../visualize/workbooks-overview.md) to combine with multiple sets of data in an interactive report. <br>Export the results of a query to [Power BI](./log-powerbi.md) to use different visualizations and share with users outside Azure.<br>Export the results of a query to [Grafana](../visualize/grafana-plugin.md) to use its dashboarding and combine with other data sources.|
2727
| Get insights | Logs support [insights](../insights/insights-overview.md) that provide a customized monitoring experience for particular applications and services. |
2828
| Retrieve | Access log query results from:<ul><li>Command line via the [Azure CLI](/cli/azure/monitor/log-analytics) or [Azure PowerShell cmdlets](/powershell/module/az.operationalinsights).</li><li>Custom app via the [REST API](/rest/api/loganalytics/) or client library for [.NET](/dotnet/api/overview/azure/Monitor.Query-readme), [Go](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/monitor/query/azlogs), [Java](/java/api/overview/azure/monitor-query-readme), [JavaScript](/javascript/api/overview/azure/monitor-query-readme), or [Python](/python/api/overview/azure/monitor-query-readme).</li></ul> |
29-
| Import | Upload logs from a custom app via the [REST API](/azure/azure-monitor/logs/logs-ingestion-api-overview) or client library for [.NET](/dotnet/api/overview/azure/Monitor.Ingestion-readme), [Go](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/monitor/azingest), [Java](/java/api/overview/azure/monitor-ingestion-readme), [JavaScript](/javascript/api/overview/azure/monitor-ingestion-readme), or [Python](/python/api/overview/azure/monitor-ingestion-readme). |
29+
| Import | Upload logs from a custom app via the [REST API](/azure/azure-monitor/logs/logs-ingestion-api-overview) or client library for [.NET](/dotnet/api/overview/azure/Monitor.Ingestion-readme), [Go](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/monitor/ingestion/azlogs), [Java](/java/api/overview/azure/monitor-ingestion-readme), [JavaScript](/javascript/api/overview/azure/monitor-ingestion-readme), or [Python](/python/api/overview/azure/monitor-ingestion-readme). |
3030
| Export | Configure [automated export of log data](./logs-data-export.md) to an Azure Storage account or Azure Event Hubs.<br>Build a workflow to retrieve log data and copy it to an external location by using [Azure Logic Apps](../../connectors/connectors-azure-monitor-logs.md). |
3131
| Bring your own analysis | [Analyze data in Azure Monitor Logs using a notebook](../logs/notebooks-azure-monitor-logs.md) to create streamlined, multi-step processes on top of data you collect in Azure Monitor Logs. This is especially useful for purposes such as [building and running machine learning pipelines](../logs/aiops-machine-learning.md#create-your-own-machine-learning-pipeline-on-data-in-azure-monitor-logs), advanced analysis, and troubleshooting guides (TSGs) for Support needs. |
3232

articles/azure-monitor/logs/logs-ingestion-api-overview.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
title: Logs Ingestion API in Azure Monitor
33
description: Send data to a Log Analytics workspace using REST API or client libraries.
44
ms.topic: conceptual
5-
ms.date: 03/23/2024
6-
5+
ms.date: 04/15/2024
76
---
87

98
# Logs Ingestion API in Azure Monitor
@@ -43,15 +42,12 @@ If you're sending data to a table that already exists, then you must create the
4342
| `transformKql` | KQL query to be applied to the incoming data. If the schema of the incoming data matches the schema of the table, then you can use `source` for the transformation which will pass on the incoming data unchanged. Otherwise, use a query that will transform the data to match the table schema. |
4443
| `outputStream` | Name of the table to send the data. For a custom table, add the prefix *Custom-\<table-name\>*. For a built-in table, add the prefix *Microsoft-\<table-name\>*. |
4544

46-
47-
48-
49-
5045
## Client libraries
46+
5147
In addition to making a REST API call, you can use the following client libraries to send data to the Logs ingestion API. The libraries require the same components described in [Configuration](#configuration). For examples using each of these libraries, see [Sample code to send data to Azure Monitor using Logs ingestion API](../logs/tutorial-logs-ingestion-code.md).
5248

5349
- [.NET](/dotnet/api/overview/azure/Monitor.Ingestion-readme)
54-
- [Go](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/monitor/azingest)
50+
- [Go](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/monitor/ingestion/azlogs)
5551
- [Java](/java/api/overview/azure/monitor-ingestion-readme)
5652
- [JavaScript](/javascript/api/overview/azure/monitor-ingestion-readme)
5753
- [Python](/python/api/overview/azure/monitor-ingestion-readme)

articles/azure-monitor/logs/tutorial-logs-ingestion-code.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: 'Sample code to send data to Azure Monitor using Logs ingestion API'
33
description: Sample code using REST API and client libraries for Logs ingestion API in Azure Monitor.
44
ms.topic: tutorial
5-
ms.date: 10/27/2023
5+
ms.date: 04/15/2024
66
---
77

88
# Sample code to send data to Azure Monitor using Logs ingestion API
@@ -128,12 +128,12 @@ The following script uses the [Azure Monitor Ingestion client library for .NET](
128128
129129
## [Go](#tab/go)
130130
131-
The following sample code uses the [Azure Monitor Ingestion client module for Go](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/monitor/azingest).
131+
The following sample code uses the [Azure Monitor Ingestion Logs client module for Go](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/monitor/ingestion/azlogs).
132132
133-
1. Use [go get] to install the Azure Monitor Ingestion and Azure Identity client modules for Go. The Azure Identity module is required for the authentication used in this sample.
133+
1. Use `go get` to install the Azure Monitor Ingestion Logs and Azure Identity client modules for Go. The Azure Identity module is required for the authentication used in this sample.
134134
135135
```bash
136-
go get github.com/Azure/azure-sdk-for-go/sdk/monitor/azingest
136+
go get github.com/Azure/azure-sdk-for-go/sdk/monitor/ingestion/azlogs
137137
go get github.com/Azure/azure-sdk-for-go/sdk/azidentity
138138
```
139139
@@ -155,7 +155,7 @@ The following sample code uses the [Azure Monitor Ingestion client module for Go
155155
"time"
156156
157157
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
158-
"github.com/Azure/azure-sdk-for-go/sdk/monitor/azingest"
158+
"github.com/Azure/azure-sdk-for-go/sdk/monitor/ingestion/azlogs"
159159
)
160160
161161
// data collection endpoint (DCE)
@@ -179,7 +179,7 @@ The following sample code uses the [Azure Monitor Ingestion client module for Go
179179
//TODO: handle error
180180
}
181181
182-
client, err := azingest.NewClient(endpoint, cred, nil)
182+
client, err := azlogs.NewClient(endpoint, cred, nil)
183183
184184
if err != nil {
185185
//TODO: handle error

0 commit comments

Comments
 (0)