Skip to content

Commit d480724

Browse files
authored
Merge pull request #251490 from scottaddie/scottaddie/az-ingest-go
Add Golang code samples for Monitor Ingestion library
2 parents cc6eae0 + b19e7b6 commit d480724

File tree

4 files changed

+403
-322
lines changed

4 files changed

+403
-322
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn the basics of Azure Monitor Logs, which is used for advanced
44
documentationcenter: ''
55
ms.topic: conceptual
66
ms.tgt_pltfrm: na
7-
ms.date: 02/28/2023
7+
ms.date: 09/14/2023
88
ms.author: bwren
99
---
1010

@@ -28,7 +28,7 @@ The following table describes some of the ways that you can use Azure Monitor Lo
2828
| 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.|
2929
| Get insights | Logs support [insights](../insights/insights-overview.md) that provide a customized monitoring experience for particular applications and services. |
3030
| 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/azquery), [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> |
31-
| 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), [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). |
31+
| 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). |
3232
| 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). |
3333
| 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. |
3434

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +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: 06/27/2022
5+
ms.date: 09/14/2023
66

77
---
88

@@ -65,14 +65,15 @@ When developing a custom client to obtain an access token from Azure AD for the
6565
The source data sent by your application is formatted in JSON and must match the structure expected by the DCR. It doesn't necessarily need to match the structure of the target table because the DCR can include a [transformation](../essentials//data-collection-transformations.md) to convert the data to match the table's structure.
6666

6767
## Client libraries
68-
You can use the following client libraries to send data to the Logs ingestion API.
68+
69+
You can use the following client libraries to send data to the Logs ingestion API:
6970

7071
- [.NET](/dotnet/api/overview/azure/Monitor.Ingestion-readme)
72+
- [Go](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/monitor/azingest)
7173
- [Java](/java/api/overview/azure/monitor-ingestion-readme)
7274
- [JavaScript](/javascript/api/overview/azure/monitor-ingestion-readme)
7375
- [Python](/python/api/overview/azure/monitor-ingestion-readme)
7476

75-
7677
## REST API call
7778
To send data to Azure Monitor with a REST API call, make a POST call to the DCE over HTTP. Details of the call are described in the following sections.
7879

0 commit comments

Comments
 (0)