Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

Exploring your Infrastructure with simple OMS Log Searches by Lawrance Reddy

This repo contains samples of OMS searches that you could use to explore your hybrid infrastructure in near-realtime. Using OMS Log Analytics, these custom searches provide some cool examples on how easy it is to query complex environments with infrastructure, applications, software and many other hidden problematic secrets.

You are free to cut/paste these searches, use them and change them as you see fit.

The Sky is the limit with OMS Analytics. Search Anything, Search Any Source, and Apply corrective action or proactive alerting to search results.

How to Use these Searches

  1. You will require a valid Azure Subscription to test these searches.

  2. You will require a configured OMS Workspace.  

  3. You will need the OMS direct agent installed on Windows or Linux servers.

  4. You will require the necessary OMS Solutions installed as appropriate for the search you are running.

  5. Cut and paste the appropriate searches below into your OMS Workspace Search,

  6. Important, change the values to match your environment.

Part 1 - Performance Searching

Measure the average CPU on multiple servers anywhere in my environment

Type=Perf CounterName="% Processor Time" (Computer=X) OR (Computer=Y) OR (Computer=Z) | measure avg(CounterValue) by Computer Interval 5MINUTE

Tell me what VM "X" processor utilization is?

Type=Perf ObjectName="Capacity and Performance" CounterName="% VM Processor Usage" InstanceName=X | measure avg(CounterValue) by InstanceName Interval 1HOUR  

What is VM "X"s disk throughput?

Type=Perf ObjectName="Capacity and Performance" CounterName="VM Disk MB/s" InstanceName=X | measure avg(CounterValue) by InstanceName interval 1hour

What is the network throughput for VM "X" and VM "Y"?

Type=Perf (CounterName="Bytes Total/sec") (Computer=X) or (Computer=Y) | measure avg(CounterValue) by InstanceName interval 1hour

What is the current disk latency/performance of servers "X", "Y" and "Z"?

Type=Perf (CounterName="Current Disk Queue Length") (Computer=X) OR (Computer=Y OR (Computer=Z)

Type=Perf (CounterName="Avg. Disk sec/Read" OR CounterName="Avg. Disk sec/Write") (Computer=X) OR (Computer=Y OR (Computer=Z) | measure avg(CounterValue), max(CounterValue) by Computer Interval 20MINUTE

Show me all successful web requests to webserver "X"

Type:W3CIISLog (scStatus=200)(Computer=X)

Show me all failed web requests to webserver "X"

Type:W3CIISLog (scStatus=400)(Computer=X)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors