Health Monitoring and Diagnostics

Earn 25 points (50 with Pro) in two steps

  1. ① Read through the lesson — each section gets a ✓ as you scroll through it.
  2. ② When every section has a ✓, tap Complete lesson.

0 of 12 read · keep scrolling

✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro

Health Monitoring and Diagnostics in Microsoft Sentinel

Introduction: Why Health Monitoring Matters

In the world of security operations, Microsoft Sentinel acts as the central brain of your defense strategy. It ingests massive volumes of data from cloud services, on-premises infrastructure, and third-party applications. However, a security platform is only as effective as the data it receives and the integrity of its internal processes. If your data connectors fail, your analytics rules stop running, or your automation playbooks time out, you are essentially flying blind. Health monitoring and diagnostics are the proactive measures you take to ensure that your security information and event management (SIEM) system remains operational, reliable, and accurate.

Without a robust health monitoring strategy, security teams often discover failures only after a security incident has been missed. Imagine a scenario where a critical firewall log stops flowing into Sentinel due to a credential expiration. If you are not monitoring the health of that specific data connector, you might go days or weeks without visibility into that network segment. By implementing structured diagnostics and health monitoring, you shift from a reactive stance—where you fix things after they break—to a proactive stance, where you identify and resolve issues before they impact your security posture. This lesson explores the tools, Kusto Query Language (KQL) patterns, and monitoring methodologies required to keep your Sentinel environment running at peak performance.


Not read yet

Understanding the Sentinel Health Architecture

Microsoft Sentinel provides built-in mechanisms to track the health of its components. At the core of this system is the SentinelHealth table in your Log Analytics workspace. This table captures events related to the performance and state of your data connectors, automation rules, and analytics. Understanding how to query this table is the first step toward building a comprehensive monitoring dashboard.

The health model in Sentinel is designed to provide visibility into three primary areas:

  1. Data Ingestion Health: Tracking whether data is arriving as expected and identifying gaps or delays in log delivery.
  2. Component Operational Status: Monitoring the health of specific connectors, such as API-based integrations or agent-based log forwarders.
  3. Execution Integrity: Tracking the success or failure of automated playbooks and the runtime performance of complex analytics rules.

Callout: Health Monitoring vs. Security Monitoring It is important to distinguish between security monitoring and health monitoring. Security monitoring focuses on identifying threats (e.g., "Is someone brute-forcing this account?"). Health monitoring focuses on the system itself (e.g., "Is the log forwarder still sending data?"). While they use the same underlying technology—KQL and Workbooks—they serve different operational goals. You should never conflate the two in your alert strategy, as health alerts should be routed to infrastructure teams, while security alerts go to the Security Operations Center (SOC).


Not read yet

Monitoring Data Connector Health

Data connectors are the lifeblood of Sentinel. If a connector stops working, the data stops flowing, and your detections become ineffective. Sentinel provides a native way to track these through the SentinelHealth table. You can query this table to see the status of your connectors and identify those that are currently in a "Failed" or "Degraded" state.

Practical Example: Querying Connector Status

To find out which connectors are currently experiencing issues, you can use the following KQL query. This query filters for entries where the health status is not "Healthy" and provides a summary of the affected connectors.

SentinelHealth
| where TimeGenerated > ago(24h)
| where Status != "Healthy"
| summarize LatestStatus = arg_max(TimeGenerated, *) by SentinelResourceName, SentinelResourceKind
| project TimeGenerated, SentinelResourceName, SentinelResourceKind, Status, Description
| order by TimeGenerated desc

Explanation of the query:

  • SentinelHealth: This is the primary table where health events are logged.
  • where TimeGenerated > ago(24h): We focus on the last 24 hours to ensure we are looking at current issues.
  • where Status != "Healthy": This filters out the noise of normal operations.
  • arg_max(TimeGenerated, *): This ensures we only see the most recent status update for each specific resource.
  • project: We select the columns that are most useful for a quick dashboard view.

Tip: Always include the SentinelResourceName and SentinelResourceKind in your results. This allows you to quickly distinguish between different types of connectors (e.g., API-based versus Syslog-based) and pinpoint exactly where the failure is occurring.


Not read yet

Advanced Diagnostics: Tracking Log Latency

Data latency is a silent killer of security efficacy. If a log arrives three hours late, the detection rule that relies on that data will also trigger three hours late. In a fast-moving attack, those three hours could represent the difference between preventing an exfiltration and dealing with a full-scale breach. Sentinel allows you to track the ingestion delay by comparing the time an event was generated at the source versus the time it was ingested into the Log Analytics workspace.

Calculating Data Latency

You can monitor latency by calculating the difference between the TimeGenerated field (when the event occurred) and the _TimeReceived field (when Sentinel received it).

let LatencyThreshold = 10m; // Define what "too slow" means
Heartbeat
| summarize arg_max(TimeGenerated, *) by Computer
| extend Latency = datetime_diff('minute', now(), TimeGenerated)
| where Latency > LatencyThreshold
| project Computer, TimeGenerated, Latency
| order by Latency desc

In this example, we use the Heartbeat table to check if agents are reporting in on time. If an agent has not sent a heartbeat for more than 10 minutes, it is flagged. You can apply this same logic to specific security tables like SecurityEvent or SigninLogs to track the actual flow of security data.


Not read yet

Building a Health Monitoring Dashboard

While individual queries are useful, a dashboard is essential for ongoing operations. Sentinel Workbooks provide a visual interface to aggregate health data. You should build a "System Health" workbook that includes the following sections:

  1. Connector Health Overview: A bar chart showing the count of healthy vs. unhealthy connectors.
  2. Ingestion Volume Trends: A line chart showing daily data ingestion. Sudden drops in volume are often a primary indicator of a misconfigured or failed connector.
  3. Execution Failures: A list of recent playbook failures, which helps identify issues with automation logic or service principal permissions.
  4. Agent Status: A map or table showing the connectivity status of on-premises log forwarders.

Best Practices for Workbook Design

  • Use Parameters: Allow your dashboard users to filter by "Time Range" or "Connector Type." This makes the dashboard interactive and useful for different team members.
  • Color Coding: Use conditional formatting. For example, show "Healthy" in green and "Failed" in red. This allows for immediate visual identification of issues without needing to read individual rows.
  • Drill-down Capabilities: Ensure that clicking on a failed connector takes the user to the specific logs associated with that connector’s errors.

Not read yet

Common Pitfalls in Health Monitoring

Even with the best tools, teams often encounter common mistakes that undermine their monitoring efforts. Being aware of these pitfalls will help you build a more reliable system.

1. Alert Fatigue

One of the most common mistakes is setting up alerts for every minor health fluctuation. If you alert the SOC for every intermittent network hiccup, they will quickly learn to ignore your health alerts. Instead, focus on "Severity" and "Persistence." Only alert on health issues that persist for a significant period or that impact critical data sources.

2. Ignoring "Silent" Failures

Some failures do not result in an error message. For example, if a log forwarder is running but the source system has stopped sending logs, the connector might appear "Healthy" because the infrastructure is active. Always monitor for data volume as well as component status. If a connector that usually sends 1GB of data a day suddenly sends 0MB, that is a health incident, even if the service itself is "up."

3. Lack of Ownership

Health monitoring is often treated as a "shared responsibility," which usually means nobody is responsible for it. Assign clear ownership. The security engineering team should be responsible for the health of the connectors and the accuracy of the detection rules, while the IT infrastructure team should be responsible for the health of the underlying servers or cloud services.

Warning: Never rely solely on email alerts for critical health failures. Email can be missed or filtered into spam. For critical infrastructure components, integrate your health alerts with an ITSM tool (like ServiceNow) or a dedicated alerting system (like PagerDuty) to ensure the issue is tracked through to resolution.


Not read yet

Automating the Response to Health Issues

Once you have identified a health issue, the next step is automating the remediation. Sentinel’s automation playbooks (based on Azure Logic Apps) can be triggered by your health queries.

Example: Automating Connector Remediation

If a specific connector fails, you can trigger a playbook to:

  1. Create an Incident: Open a ticket in your ITSM system.
  2. Notify the Team: Send a message to a dedicated Microsoft Teams or Slack channel.
  3. Attempt a Restart: If the connector supports it, trigger a script to restart the service or refresh the authentication token.

To implement this, you would create an Analytics Rule that runs every hour, queries the SentinelHealth table for failures, and triggers the Logic App if the result set is not empty.

// Analytics Rule Query
SentinelHealth
| where Status == "Failed"
| where TimeGenerated > ago(1h)

This simple query, when attached to an automation rule, ensures that you are never unaware of a system failure for more than an hour.


Not read yet

Comparison Table: Monitoring Methods

Method Best For Complexity Real-time?
KQL Queries Ad-hoc investigation & troubleshooting Low Yes
Workbooks Long-term trend analysis & management Medium Yes
Automation Playbooks Proactive remediation & ticketing High Yes
Azure Monitor Alerts Resource-level health (CPU/RAM) Medium Yes

Monitoring Data Volume and Costs

Health monitoring is also intrinsically linked to cost management. If a data connector starts sending unexpected volumes of data, it can lead to massive cost overruns. Monitoring the "Data Ingestion" table allows you to spot these anomalies early.

Querying Data Ingestion Trends

Usage
| where TimeGenerated > ago(30d)
| summarize DailyVolume = sum(Quantity) by bin(TimeGenerated, 1d), DataType
| render timechart

By tracking this, you can identify if a specific source (e.g., a firewall or a cloud service) has had a configuration change that increased its log output. This is a critical part of maintaining the "Health" of your budget and your Sentinel environment.


Not read yet

Industry Best Practices for Sentinel Health

To maintain a high-performing environment, you should adopt the following standards:

  1. Establish a Baseline: You cannot identify an anomaly if you do not know what "normal" looks like. Document the average daily data volume and the typical latency for every connector you manage.
  2. Regular Audits: Conduct a monthly "Health Review" where you look at the uptime of your connectors and the performance of your detection rules.
  3. Documentation: Keep a clear record of which service principal is used for each connector. When a connector fails due to an expired secret, you should be able to identify exactly where to go to update it.
  4. Version Control: If you use custom KQL queries for your dashboards or detections, store them in a source control system like GitHub. This allows you to track changes and roll back if a new detection rule causes performance issues.
  5. Test in Sandbox: Never deploy a new data connector or a complex detection rule directly into your production environment without testing it in a development instance.

Not read yet

Troubleshooting Common Issues

Even with the best planning, things will go wrong. Here is how to handle the most frequent problems:

Connector "Degraded" Status

A "Degraded" status usually indicates that the connector is receiving data, but perhaps not at the expected rate, or there are intermittent connection issues.

  • Step 1: Check the logs in the SentinelHealth table for specific error messages.
  • Step 2: Check the source system. Is the firewall or server overloaded?
  • Step 3: Verify network connectivity between the source and the Log Analytics workspace.

Playbook Execution Failure

If a playbook fails, it is often due to a permission issue.

  • Step 1: Check the Logic App run history in the Azure portal.
  • Step 2: Look at the specific step that failed. Is it an authentication error?
  • Step 3: Ensure the Managed Identity of the Logic App has the necessary permissions (e.g., "Sentinel Responder") to perform the intended action.

Not read yet

Key Takeaways

As we conclude this lesson on Sentinel health monitoring, keep these core principles in mind:

  • Visibility is the Foundation: You cannot protect what you cannot see. If a connector is down, your SIEM is essentially disabled for that data stream.
  • Proactivity Prevents Incidents: Use KQL queries to monitor the SentinelHealth table regularly so that you can fix issues before they become security gaps.
  • Automate, Don't Just Alert: Whenever possible, use playbooks to automate the remediation of common issues, such as service restarts or ticket creation.
  • Context Matters: Distinguish between a system health issue (infrastructure) and a security event (threat). Route these alerts to the correct teams accordingly.
  • Data Volume is a Health Metric: Unexplained spikes in data ingestion are often signs of misconfiguration or malicious activity; monitor your usage trends as part of your overall health strategy.
  • Document and Audit: Keep clear documentation of your infrastructure, including service principals and connector configurations, to make troubleshooting faster and more efficient.
  • Iterate: Your health monitoring strategy should evolve as your environment grows. Regularly review your dashboards and alerts to ensure they remain relevant and actionable.

By integrating these practices into your daily operations, you ensure that Microsoft Sentinel remains a reliable, accurate, and powerful tool in your security arsenal. Remember, the goal of health monitoring is not to create more work, but to ensure that the work you are doing—the security investigations and threat hunting—is always based on complete and accurate information.


Not read yet

Frequently Asked Questions (FAQ)

Q: How often should I check my Sentinel health? A: You should have automated alerts that run continuously. However, a manual review of your health dashboards should be part of your weekly operational rhythm.

Q: Can I monitor the health of non-Sentinel resources? A: Yes, you can use the same Log Analytics workspace to monitor the health of your Azure virtual machines, storage accounts, and other infrastructure, providing a holistic view of your entire environment.

Q: What is the difference between SentinelHealth and Heartbeat? A: SentinelHealth is specific to the Sentinel service (connectors, rules, playbooks). Heartbeat is used to track the connectivity of the agents (Log Analytics agents or AMA) that are sending data to the workspace. Both are essential for a complete picture.

Q: Should I alert on every failure? A: No. Focus on "critical" failures that impact security visibility. For minor, transient issues, consider logging them to a dashboard rather than sending an alert notification.

Q: How do I handle "Degraded" status in a large environment? A: Use the summarize and arg_max patterns shown in this lesson to group failures by category or region, allowing you to prioritize the most impactful issues first.

Not read yet

Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.