官术网_书友最值得收藏!

Utilizing Log Search Query functions

Azure Monitor is now integrated with the features and capabilities that Log Analytics was offering. This also includes creating search queries across the different logs and metrics by using the Kusto Query Language.

To retrieve any type of data from Azure Monitor, a query is required. Whether you are configuring an alert rule, analyzing data in the Azure portal, retrieving data using the Azure Monitor Logs API, or being notified of a particular condition, a query is used.

The following list provides an overview of all the different ways queries are used by Azure Monitor:

  • Portal: From the Azure portal, an interactive analysis of log data can be performed. In there, you can create and edit queries and analyze the results in a variety of formats and visualizations.
  • Dashboards: The results of a query can be pinned to a dashboard. This way, results can be visualized and shared with other users.
  • Views: By using the View Designer in Azure Monitor, you can create custom views of your data. This data is provided by queries as well.
  • Alert rules: Alert rules are also made up of queries. 
  • Export: Exports of data to Excel or PowerBI are created with queries. The query defines the data to export.
  • Azure Monitor Logs API: The Azure Monitor Logs API allows any REST API client to retrieve log data from the workspace. The API request includes a query to retrieve the data.
  • PowerShell: You can run a PowerShell script from a command line or an Azure Automation runbook that uses Get-AzOperationalInsightsSearchResults to retrieve log data from Azure Monitor. You need to create a query for this cmdlet to retrieve the data. 

In the following section, we are going to create some queries to retrieve data from the logs in Azure Monitor.

主站蜘蛛池模板: 遂宁市| 宣化县| 鹤峰县| 农安县| 凉山| 虹口区| 卢氏县| 志丹县| 长海县| 耿马| 奉新县| 正蓝旗| 葫芦岛市| 出国| 睢宁县| 吴江市| 会理县| 宝山区| 那曲县| 南城县| 浠水县| 菏泽市| 九龙城区| 洞头县| 柞水县| 仙游县| 定陶县| 东乌珠穆沁旗| 邢台市| 宁阳县| 湖州市| 紫阳县| 湟中县| 谷城县| 大丰市| 金堂县| 河津市| 安顺市| 呼和浩特市| 河津市| 松滋市|