Questions tagged [azure-log-analytics]

Use for Azure Monitor Log Analytics questions (was: OMS)

Azure Monitor Log Analytics is a service in Azure that monitors your cloud and on-premises environments to maintain their availability and performance (used to be known as Operations Management Suite - OMS). It collects data generated by resources in your cloud and on-premises environments and from other monitoring tools to provide analysis across multiple sources. This article provides a brief discussion of the value that Log Analytics provides, an overview of how it operates, and links to more detailed content so you can dig further.

1047 questions
0
votes
2 answers

How to connect Azure Activity Monitor to Log Analytics Workspace via ARM template

How do I connect Azure Activity Logs to a Log Analytics workspace using an ARM template? I can connect it via the portal: Or using powershell. But I've searched far and wide and can't find documentation on how to do this with an ARM template (or…
0
votes
1 answer

Selected Logging and Sampling Rate with Application Insights for both Azure APIM and Azure Funtions

I have a project that is hosted via Azure Function app, and sits behind APIM. One of the requirement is to log all successful and failed login requests from both APIM and Function. Application Insights seems an option. However, it recommends NOT to…
Pingpong
  • 7,681
  • 21
  • 83
  • 209
0
votes
1 answer

What fields are included under AllMetrics for Log Analytics for Azure Functions 2.x

I want to find out what fields are included for the AllMetrics checkbox shown below for Log Analytics for Azure Functions 2.x. Links to MS official website is required. Thanks in advance.
0
votes
1 answer

Can we query blog storage log in Azure Monitor Logs?

My application stores logs in blog storage as that is the setting in App Service. My understanding is there are IIS logs in app service and they go to the blob storage as well. A)Here it is mentioned that "All log data in Azure Monitor is retrieved…
Blue Clouds
  • 7,295
  • 4
  • 71
  • 112
0
votes
1 answer

Unable to link existing workspace in Azure log analytics

I'm not able to link my any of the existing log analytics workspaces to the log analytics service. Its showing "It looks like you have no workspaces to link".
0
votes
1 answer

Azure Log Analytics Aggregation Query

I am having trouble creating with the below query. I am trying to get the average number of sessions from four computers over a time interval of one hour. I then want to chart the sum of the four averages over a time period of 24 hours. So far I…
OptimusPrime
  • 777
  • 16
  • 25
0
votes
1 answer

Adding Where condition on Timestamp yields odd aggregated results

I'm looking into Azure Monitor queries for the first time, and can't understand why adding this line: | where timestamp <= ago(1days) makes the query results "de-aggregated." Screenshots of the 2 separate queries/results: Desired Output Undesired…
Mark C.
  • 6,332
  • 4
  • 35
  • 71
0
votes
1 answer

Setting up data and options used by Azure Log Analytics with API Management

I have questions on using Azure Log Analytics for API Management. I cannot find more information on Azure Log Analytics with API Management. Questions What data is Log Analytics based on by default? Do I need to specify or turn on what data Log…
0
votes
2 answers

Azure Log Analytics - Numeric Custom Field Plot on Chart

I am looking to get statistics on people logged onto a Remote Desktop Application pool within a date range. I have created a powershell script which counts the number of sessions for a specific application pool and then logs a custom event to the…
OptimusPrime
  • 777
  • 16
  • 25
0
votes
1 answer

Is azure TenantId equivalent to azure log analytics WorkspaceId?

I'm trying to get from azure some information about computers. What I want to get back is the list of Azure wokapceId, SourceComputerId, Resource group for each machine. I used the ServiceMapComputer_CL table in log analytics to get this data. I…
0
votes
0 answers

Azure loganalytics python SDK always throws MissingApiVersionParameter exception

I try to follow MS official doc to get the log from my resource in Azure Log Monitor but never success. My code is like below. from azure.loganalytics import LogAnalyticsDataClient from azure.common.client_factory import…
Dennis
  • 81
  • 1
  • 4
0
votes
0 answers

Azure Log Analytics REST API returns 502 (Bad gateway) error

I have a function that queries the Log Analytics Batch endpoint (https://api.loganalytics.io/v1/$batch) ~450 times a day, out of which ~60 requests return a 502 Bad Gateway. It is always the same query and it usually returns around 100 rows total in…
0
votes
1 answer

Is there a way to group all the last inserted performance counters by machine in one row?

I'm trying to query log analytics Perf table. This table has performance counters about Computers. I want to get all performance counters for the machine in one row. I have written this Kusto query but it brings every counter in his own row. Perf …
Zack ISSOIR
  • 964
  • 11
  • 24
0
votes
1 answer

How can I create an alert in OMS when a Linux service is stopped?

I am trying to create an alert in OMS when a Linux service is stopped.
0
votes
2 answers

Azure Log Analytics Metric Measurement Alert

I have a log query like, example_cl | top 1 by TimeGenerated desc | project in_use, unused, total = (in_use + unused) Which gives me a simple output; in_use unused total 75 45 120 I wish to set a metric alert to this query such that…
DynamicQ
  • 115
  • 2
  • 5
  • 11