SOLVED
Home

Monitor Azure Resource Only

%3CLINGO-SUB%20id%3D%22lingo-sub-769315%22%20slang%3D%22en-US%22%3EMonitor%20Azure%20Resource%20Only%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-769315%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20using%20Azure%20LA%20for%20VM%20performance%20monitoring%20but%20it%20include%20on-prem%20servers%20also.%20When%20we%20run%20CPU%20or%20memory%20or%20disk%20utilization%20alerts%20it%20include%20all%20the%20servers%20in%20Azure%20and%20on-prem.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20we%20want%20to%20monitor%20only%20Azure%20resources%20only%20not%20on-prem%2C%20how%20to%20achieve%20that%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EQueries%20%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECPU%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3EPerf%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7C%20%3C%2FSPAN%3E%3CSPAN%3Ewhere%3C%2FSPAN%3E%3CSPAN%3ECounterName%20%3D%3D%20%3C%2FSPAN%3E%3CSPAN%3E%22%25%20Processor%20Time%22%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Eand%3C%2FSPAN%3E%3CSPAN%3ECounterValue%20%26gt%3B%20%3C%2FSPAN%3E%3CSPAN%3E95%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Eand%3C%2FSPAN%3E%3CSPAN%3E%20ObjectName%20%3D%3D%20%3C%2FSPAN%3E%3CSPAN%3E%22Processor%22%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Eand%3C%2FSPAN%3E%3CSPAN%3E%20InstanceName%20%3D%3D%20%3C%2FSPAN%3E%3CSPAN%3E%22_Total%22%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7C%20%3C%2FSPAN%3E%3CSPAN%3Esummarize%3C%2FSPAN%3E%3CSPAN%3Earg_max(TimeGenerated%2C%20CounterValue)%20%3C%2FSPAN%3E%3CSPAN%3Eby%3C%2FSPAN%3E%3CSPAN%3EComputer%2C%20CounterName%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EMemory%26nbsp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CP%3EPerf%3C%2FP%3E%3CP%3E%3CSPAN%3E%7C%20%3C%2FSPAN%3E%3CSPAN%3Ewhere%3C%2FSPAN%3E%3CSPAN%3EObjectName%20%3D%3D%20%3C%2FSPAN%3E%3CSPAN%3E%22Memory%22%20%3C%2FSPAN%3E%3CSPAN%3Eand%3C%2FSPAN%3E%3CSPAN%3ECounterName%20%3D%3D%20%3C%2FSPAN%3E%3CSPAN%3E%22%25%20Committed%20Bytes%20In%20Use%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7C%20%3C%2FSPAN%3E%3CSPAN%3Ewhere%3C%2FSPAN%3E%3CSPAN%3ECounterValue%20%26gt%3B%20%3C%2FSPAN%3E%3CSPAN%3E80%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7C%20%3C%2FSPAN%3E%3CSPAN%3Esummarize%3C%2FSPAN%3E%3CSPAN%3E(TimeGenerated%2C%20Free_Memory_Percent)%3Darg_max(TimeGenerated%2C%20CounterValue)%20%3C%2FSPAN%3E%3CSPAN%3Eby%3C%2FSPAN%3E%3CSPAN%3EComputer%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EDisk%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EPerf%3CBR%20%2F%3E%7C%20where%20ObjectName%20%3D%3D%20%22LogicalDisk%22%20and%20CounterName%20%3D%3D%20%22%25%20Free%20Space%22%3CBR%20%2F%3E%7C%20where%20CounterValue%20%26lt%3B%2010%3CBR%20%2F%3E%7C%20summarize%20(TimeGenerated%2C%20Free_Space_Percent)%3Darg_max(TimeGenerated%2C%20CounterValue)%20by%20Computer%2C%20InstanceName%3CBR%20%2F%3E%7C%20where%20InstanceName%20contains%20%22%3A%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks%20in%20advance.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-769315%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Log%20Analytics%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-769377%22%20slang%3D%22en-US%22%3ERe%3A%20Monitor%20Azure%20Resource%20Only%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-769377%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F380509%22%20target%3D%22_blank%22%3E%40Rahul_Mahajan%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20add%20a%20join%20to%20the%20Heartbeat%20table%2C%20as%20that%20has%20a%20Azure%20%2F%20non-Azure%20value.%26nbsp%3B%20You'll%20need%20to%20do%20the%20same%20for%20the%20other%20two%20examples.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3EHeartbeat%0A%7C%20where%20ComputerEnvironment%20%3D%3D%22Azure%22%0A%7C%20distinct%20Computer%0A%7C%20join%20(%0A%20%20%20%20Perf%0A%20%20%20%20%7C%20where%20CounterName%20%3D%3D%20%22%25%20Processor%20Time%22%0A%20%20%20%20%20%20%20%20and%20CounterValue%20%26gt%3B%2095%0A%20%20%20%20%20%20%20%20and%20ObjectName%20%3D%3D%20%22Processor%22%0A%20%20%20%20%20%20%20%20and%20InstanceName%20%3D%3D%20%22_Total%22%0A%20%20%20%20%7C%20summarize%20arg_max(TimeGenerated%2C%20CounterValue)%20by%20Computer%2C%20CounterName%0A)%20on%20Computer%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20test%20run%20it%20here%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fportal.loganalytics.io%2FDemo%3Fq%3DH4sIAAAAAAAAA1WQTWsCQQyG7%252FsrwkJBwauHHhRKEfXSepBeJbv7VmdxMiWT6Yf44x2LHbs5heTh4U1WYLUGbNWZvg5Q0HPwH8mgC%252Fl0GsRDjGaz%252BumUFHWmOhfNSWsFzLM%252BOKFRRbk20Pff5u5LkqkX9sgeqh9oo6FFjEFp63x20q1Yuj%252F6jY8JNKfH6WD72vRoraiKaOhYSzSWFoXbbYPxsb7Fisl7VncCse53nr9H1xhLCJQN3WSQYUzNT7l08v%252BYakxB7k%252B4ALIYnHZJAQAA%26amp%3Btimespan%3DP1D%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EGo%20to%20Log%20Analytics%20and%20Run%20Query%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-769785%22%20slang%3D%22en-US%22%3ERe%3A%20Monitor%20Azure%20Resource%20Only%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-769785%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F380509%22%20target%3D%22_blank%22%3E%40Rahul_Mahajan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnother%20way%20is%20to%20use%20_ResourceId%20column%20as%20a%20way%20of%20finding%20which%20VMs%20are%20in%20Azure.%3C%2FP%3E%0A%3CP%3ECurrently%20all%20Azure%20VMs%20have%20_ResourceId%20so%20you%20can%20do%3A%3C%2FP%3E%0A%3CPRE%3EPerf%0A%7C%20where%20CounterName%20%3D%3D%20%22%25%20Processor%20Time%22%20and%20_ResourceId%20contains%20%22virtualmachines%22%20%3C%2FPRE%3E%0A%3CP%3EAdditionally%20I%20would%20like%20to%20point%20out%20that%20all%20your%20queries%20are%20written%20incorrectly.%20You%20do%20not%20filter%20on%20CounterValue.%20First%20you%20need%20to%20summarize%20and%20than%20filter%20the%20threshold%20on%20the%20desired%20value.%20If%20you%20will%20use%20the%20queries%20for%20alerts%20than%20you%20do%20not%20filter%20in%20the%20query%20at%20all%20as%20the%20threshold%20is%20applied%20via%20the%20alert%20configuration.%20If%20you%20do%20not%20follow%20these%20rules%20you%20will%20get%20false%20positive%20on%20alerts.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-770837%22%20slang%3D%22en-US%22%3ERe%3A%20Monitor%20Azure%20Resource%20Only%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-770837%22%20slang%3D%22en-US%22%3EThanks%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F239477%22%20target%3D%22_blank%22%3E%40Clive%20Watson%3C%2FA%3Eand%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F9172%22%20target%3D%22_blank%22%3E%40Stanislav%20Zhelyazkov%3C%2FA%3Eboth%20work%20completely%20fine.%3CBR%20%2F%3E%3CBR%20%2F%3EQuery%20to%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F9172%22%20target%3D%22_blank%22%3E%40Stanislav%20Zhelyazkov%3C%2FA%3Eif%20I%20use%20_ResourceId%20contains%20%22virtualmachines%22%2C%20it%20will%20only%20query%20VMs%20but%20not%20SQL%20DBs%20if%20I%20send%20logs%20to%20LA%20in%20future%20but%20if%20I%20use%20how%20to%20include%20them%20also%20or%20its%20good%20to%20keep%20SQL%20CPU%20usage%20in%20different%20alert.%3CBR%20%2F%3E%3CBR%20%2F%3EAlso%20I%20tried%20your%20suggestion%20on%20First%20you%20need%20to%20summarize%20and%20than%20filter%20the%20threshold%20on%20the%20desired%20value%20but%20unable%20to%20get%20results%20as%20I%20am%20not%20good%20in%20query%20writing%2C%20can%20you%20please%20edit%20above%20given%20query%20in%20correct%20way%20so%20I%20can%20do%20it%20for%20others%20and%20help%20me%20to%20understand.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-771307%22%20slang%3D%22en-US%22%3ERe%3A%20Monitor%20Azure%20Resource%20Only%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-771307%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F380509%22%20target%3D%22_blank%22%3E%40Rahul_Mahajan%3C%2FA%3EYou%20should%20have%20single%20alert%20per%20resource%20type%20and%20performance%20counter.%20Creating%20one%20alert%20for%20multiple%20resource%20types%20that%20do%20not%20have%20things%20in%20common%20and%20multiple%20metrics%20is%20not%20approach%20I%20would%20recommend.%20In%20queries%20that%20you%20will%20not%20use%20for%20alerts%20but%20rather%20to%20visualize%20data%20you%20can%20do%20whatever%20correlation%20you%20want.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBelow%20is%20example%20query%20on%20your%20first%20posted%20query.%20The%20rest%20queries%20will%20follow%20similar%20logic.%20Here%20is%20the%20logic%20of%20this%20query%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EYou%20are%20getting%20data%20from%20Perf%20table%3C%2FLI%3E%0A%3CLI%3EYou%20filter%20on%20specific%20counter%20by%20specifying%20CounterName%2C%20ObjectName%20and%20InstaneName%3C%2FLI%3E%0A%3CLI%3EYou%20summarize%20the%20the%20value%20in%20CounterValue%20by%20using%20average%20function.%20The%20summarization%20is%20done%20for%20every%20computer%20in%20buckets%20of%205%20minutes%3C%2FLI%3E%0A%3CLI%3EThe%20summarized%20value%20is%20put%20into%20column%20AggregatedValue%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CPRE%3EPerf%0A%7C%20where%20CounterName%20%3D%3D%20%22%25%20Processor%20Time%22%0Aand%20ObjectName%20%3D%3D%20%22Processor%22%0Aand%20InstanceName%20%3D%3D%20%22_Total%22%0A%7C%20summarize%20AggregatedValue%20%3D%20avg(CounterValue)%20by%20Computer%2C%20bin(TimeGenerated%2C%205m)%0A%7C%20where%20AggregatedValue%20%26gt%3B%2095%0A%3C%2FPRE%3E%0A%3CP%3EAs%20I%20have%20mentioned%20before%20if%20you%20will%20use%20the%20above%20query%20in%20alert%20than%20you%20will%20remove%20the%20last%20filter%20'where%20AggregatedValue%20%26gt%3B%2095'%20because%20you%20will%20set%20the%20threshold%20on%20the%20alert%20definition.%3C%2FP%3E%0A%3CP%3EIf%20I%20remember%20there%20is%20documentation%20on%20how%20to%20get%20started%20with%20Kusto%20query%20language%2C%20alerting%20etc.%20Also%20this%20forum%20contains%20a%20lot%20of%20examples%20on%20queries%20for%20a%20lot%20of%20things.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-771336%22%20slang%3D%22en-US%22%3ERe%3A%20Monitor%20Azure%20Resource%20Only%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-771336%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F9172%22%20target%3D%22_blank%22%3E%40Stanislav%20Zhelyazkov%3C%2FA%3E%26nbsp%3BGot%20it%20now.%20One%20last%20issue%20is%20that%20when%20we%20run%20query%20it%20give%20multiple%20results%20for%20same%20computer%20name%2C%20how%20to%20make%20sure%20to%20get%20only%20one%20result%20per%20server%20which%20is%20latest%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20481px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F124292i25B4AFABA01E1283%2Fimage-dimensions%2F481x235%3Fv%3D1.0%22%20width%3D%22481%22%20height%3D%22235%22%20alt%3D%22Test.PNG%22%20title%3D%22Test.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-771342%22%20slang%3D%22en-US%22%3ERe%3A%20Monitor%20Azure%20Resource%20Only%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-771342%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F380509%22%20target%3D%22_blank%22%3E%40Rahul_Mahajan%3C%2FA%3EThis%20is%20how%20the%20bin%20function%20works.%20You%20have%20to%20do%20some%20reading%20on%20the%20documentation%20to%20understand%20it%20better.%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Flog-query%2Fget-started-queries%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Flog-query%2Fget-started-queries%3C%2FA%3E.%26nbsp%3B%20The%20interval%20of%20the%20buckets%20it%20is%20important%20also%20when%20you%20create%20the%20alerts%20as%20there%20you%20have%20frequency%20and%20time%20windows%20of%20the%20alert.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Rahul_Mahajan
Occasional Contributor

Hi All,

 

I am using Azure LA for VM performance monitoring but it include on-prem servers also. When we run CPU or memory or disk utilization alerts it include all the servers in Azure and on-prem.

 

Here we want to monitor only Azure resources only not on-prem, how to achieve that?

 

Queries :

 

CPU 

Perf
| where CounterName == "% Processor Time"
and CounterValue > 95
and ObjectName == "Processor"
and InstanceName == "_Total"
| summarize arg_max(TimeGenerated, CounterValue) by Computer, CounterName
 
Memory 

Perf

| where ObjectName == "Memory" and CounterName == "% Committed Bytes In Use"

| where CounterValue > 80

| summarize (TimeGenerated, Free_Memory_Percent)=arg_max(TimeGenerated, CounterValue) by Computer

 

Disk 

Perf
| where ObjectName == "LogicalDisk" and CounterName == "% Free Space"
| where CounterValue < 10
| summarize (TimeGenerated, Free_Space_Percent)=arg_max(TimeGenerated, CounterValue) by Computer, InstanceName
| where InstanceName contains ":"

 

Thanks in advance.

6 Replies

Hello @Rahul_Mahajan

 

You can add a join to the Heartbeat table, as that has a Azure / non-Azure value.  You'll need to do the same for the other two examples.

 

Heartbeat
| where ComputerEnvironment =="Azure"
| distinct Computer
| join (
    Perf
    | where CounterName == "% Processor Time"
        and CounterValue > 95
        and ObjectName == "Processor"
        and InstanceName == "_Total"
    | summarize arg_max(TimeGenerated, CounterValue) by Computer, CounterName
) on Computer

 

To test run it here Go to Log Analytics and Run Query

 

Solution

Hi@Rahul_Mahajan 

Another way is to use _ResourceId column as a way of finding which VMs are in Azure.

Currently all Azure VMs have _ResourceId so you can do:

Perf
| where CounterName == "% Processor Time" and _ResourceId contains "virtualmachines" 

Additionally I would like to point out that all your queries are written incorrectly. You do not filter on CounterValue. First you need to summarize and than filter the threshold on the desired value. If you will use the queries for alerts than you do not filter in the query at all as the threshold is applied via the alert configuration. If you do not follow these rules you will get false positive on alerts.

Thanks @Clive Watson and @Stanislav Zhelyazkov both work completely fine.

Query to @Stanislav Zhelyazkov if I use _ResourceId contains "virtualmachines", it will only query VMs but not SQL DBs if I send logs to LA in future but if I use how to include them also or its good to keep SQL CPU usage in different alert.

Also I tried your suggestion on First you need to summarize and than filter the threshold on the desired value but unable to get results as I am not good in query writing, can you please edit above given query in correct way so I can do it for others and help me to understand.

@Rahul_Mahajan You should have single alert per resource type and performance counter. Creating one alert for multiple resource types that do not have things in common and multiple metrics is not approach I would recommend. In queries that you will not use for alerts but rather to visualize data you can do whatever correlation you want.

 

Below is example query on your first posted query. The rest queries will follow similar logic. Here is the logic of this query

  • You are getting data from Perf table
  • You filter on specific counter by specifying CounterName, ObjectName and InstaneName
  • You summarize the the value in CounterValue by using average function. The summarization is done for every computer in buckets of 5 minutes
  • The summarized value is put into column AggregatedValue
Perf
| where CounterName == "% Processor Time"
and ObjectName == "Processor"
and InstanceName == "_Total"
| summarize AggregatedValue = avg(CounterValue) by Computer, bin(TimeGenerated, 5m)
| where AggregatedValue > 95

As I have mentioned before if you will use the above query in alert than you will remove the last filter 'where AggregatedValue > 95' because you will set the threshold on the alert definition.

If I remember there is documentation on how to get started with Kusto query language, alerting etc. Also this forum contains a lot of examples on queries for a lot of things.

 

@Stanislav Zhelyazkov Got it now. One last issue is that when we run query it give multiple results for same computer name, how to make sure to get only one result per server which is latest

 

Test.PNG

@Rahul_Mahajan This is how the bin function works. You have to do some reading on the documentation to understand it better. https://docs.microsoft.com/en-us/azure/azure-monitor/log-query/get-started-queries .  The interval of the buckets it is important also when you create the alerts as there you have frequency and time windows of the alert.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies