azure-log-analytics

Azure Log analytics - access control to view only specific applications

末鹿安然 提交于 2021-02-11 12:38:01
问题 We are currently using splunk to store the logs and planning to migrate to Azure and would be using log analytics. In splunk, application team will be granted access only to their logs however I don't know how can I grant access to the application support team to view only the specific set of logs on azure log analytics. How do I manage access control to view only specific application logs in Azure log analytics? 回答1: So if a person or a group has access to only that particular resource and

Is there a way to add performance counter in Azure Log Analytics from command line

徘徊边缘 提交于 2021-02-11 04:53:49
问题 Is there a way to added performance counter in Azure Log Analytics using Powershell or azure CLI. The only options I see are for querying. 回答1: According to my research, we can use PowerShell command new-azoperationalinsightswindowsperformancecounterdatasource to add windows performance counter. For more details, please refer to the document. For example Connect-AzAccount $workspace=Get-AzOperationalInsightsWorkspace -ResourceGroupName jimtest -Name hybridWorkspace32979 New

Is there a way to add performance counter in Azure Log Analytics from command line

泪湿孤枕 提交于 2021-02-11 04:51:13
问题 Is there a way to added performance counter in Azure Log Analytics using Powershell or azure CLI. The only options I see are for querying. 回答1: According to my research, we can use PowerShell command new-azoperationalinsightswindowsperformancecounterdatasource to add windows performance counter. For more details, please refer to the document. For example Connect-AzAccount $workspace=Get-AzOperationalInsightsWorkspace -ResourceGroupName jimtest -Name hybridWorkspace32979 New

Add a Dummy Row for Each Row in the Table

若如初见. 提交于 2021-01-28 13:41:42
问题 I have below query which returns %CPU of each Computer by every 1 hour Query Perf | where TimeGenerated > ago(1h) | where CounterName == "% Processor Time" | where Computer endswith "XYZ" | summarize avg(CounterValue) by bin(TimeGenerated, 1h), Computer Result I want to append Dummy row for each-row in the table with fixed value except TimeGenerated should be same as previous row in the table. Expecting result should look something like this. Expected Result 回答1: you could try something like

kusto language pivot 2 columns

别来无恙 提交于 2021-01-28 11:50:47
问题 I have following query in kusto language: AzureActivity | where ResourceProvider == "Microsoft.Compute" | where OperationName in ('Deallocate Virtual Machine','Start Virtual Machine') | where ActivityStatus == 'Succeeded' | order by Resource asc, EventSubmissionTimestamp asc | extend IsSameResource = (prev(Resource) == Resource) | extend PrevState = iif(IsSameResource, prev(OperationName), OperationName), CurrentState = OperationName | extend RunTime = iif(PrevState == 'Start Virtual Machine'

Why I cannot get a log-file into Azure Log Analytics?

怎甘沉沦 提交于 2021-01-07 02:53:44
问题 I am struggling to solve this task, to get a log-file in to Azure Log Analytics. This is what I did: I created a workspace from Log Analytics workspaces then I made a custom log following these steps and set the path to where in my Linux-VM is the log-file. My log-file has the same criteria as mentioned. Then, I installed an agent on my VM so that it connects to my workspace, running this in my VM: wget https://raw.githubusercontent.com/Microsoft/OMS-Agent-for-Linux/master/installer/scripts

Method to put alerts on long running azure data factory pipeline

笑着哭i 提交于 2020-06-23 08:31:26
问题 I have some data factory pipelines which may sometimes run beyond 2 hours when copying data from blob into SQL. The time period is variable, but I'd like to be notified/alerted when any pipeline runs beyond 2 hours. What are possible ways of doing this? What I have tried so far: Explored the adf metrics on which I can put an alert rule. But there seems to be none which talks about active run's duration. I was hoping to get Pipeline's duration value as we see it on the monitor tab in adf.azure

Method to put alerts on long running azure data factory pipeline

别等时光非礼了梦想. 提交于 2020-06-23 08:31:18
问题 I have some data factory pipelines which may sometimes run beyond 2 hours when copying data from blob into SQL. The time period is variable, but I'd like to be notified/alerted when any pipeline runs beyond 2 hours. What are possible ways of doing this? What I have tried so far: Explored the adf metrics on which I can put an alert rule. But there seems to be none which talks about active run's duration. I was hoping to get Pipeline's duration value as we see it on the monitor tab in adf.azure

How to export Azure log analytics data into an SQL database?

孤街浪徒 提交于 2020-05-17 07:25:07
问题 We need the Log Analytics data in a SQL database for use in Tableau. How can we do this? 回答1: Log files are saved in Azure Storage Account, if you read the following article I think that you solve your problem. Connect to Azure Blob Storage (SQL Server Import and Export Wizard) 回答2: You can use log search feature to export log data to SQL database: Perform a Log Search from your log analytics workspace Create a runbook to import Log Search results to SQL Server 来源: https://stackoverflow.com