Security Data Tables Overview

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 11 read · keep scrolling

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

Lesson: Security Data Tables in Microsoft Sentinel

Introduction: The Foundation of Security Operations

In the world of modern cybersecurity, the sheer volume of data generated by enterprise networks, cloud infrastructure, and user endpoints is staggering. Without a structured way to store, organize, and access this information, security analysts would be effectively blind. Microsoft Sentinel serves as a centralized hub for this data, and at the heart of this hub lies the Log Analytics workspace. Within this workspace, data is organized into specific tables. Understanding these tables is not just a technical requirement for configuring Sentinel; it is the fundamental skill required to perform effective threat hunting, incident investigation, and automated response.

When we talk about "Security Data Tables" in Microsoft Sentinel, we are referring to the structured schemas where your logs live. Whether you are ingesting logs from a firewall, a cloud identity provider like Microsoft Entra ID, or a custom application, that data eventually lands in a Kusto Query Language (KQL) table. If you do not know how your data is structured, you cannot write the queries necessary to detect threats. This lesson will guide you through the architecture of these tables, how to explore them, and how to master the data structures that power your security operations.


Not read yet

Understanding the Data Architecture

Microsoft Sentinel uses the Azure Monitor Log Analytics workspace as its data store. Every piece of telemetry ingested—whether it is a sign-in event, a process creation log from a server, or a network flow—is mapped to a table. These tables are defined by a schema, which includes columns (fields) and data types (string, integer, datetime, dynamic, etc.).

Why Schema Knowledge Matters

The schema determines how you interact with the data. For instance, if you are looking for a specific user, you need to know if the username is stored in a column named UserPrincipalName, Account, or TargetUserName. Because different log sources (like Windows Security logs versus Linux Syslog) use different naming conventions, Microsoft Sentinel relies on the Advanced Security Information Model (ASIM) to normalize these differences. However, at the base level, you are always interacting with raw or normalized tables.

Types of Tables in Sentinel

  1. Standard Tables: These are the built-in tables created automatically when you enable specific data connectors (e.g., SigninLogs, SecurityEvent, DeviceEvents).
  2. Custom Tables: These are tables you define yourself when ingesting data from non-standard sources via the Data Collection Rule (DCR) API or the HTTP Data Collector API.
  3. Workspace-Specific Tables: These are created within your specific Log Analytics workspace and are scoped to the data you choose to ingest.

Callout: The Importance of Normalization In a typical environment, logs from a Cisco firewall look nothing like logs from a Palo Alto firewall. If you had to write a unique query for every single vendor, your security operations center would collapse under the weight of complexity. Normalization, through frameworks like ASIM, maps disparate fields into a common schema. This allows you to write one query that works across multiple vendors, significantly reducing the maintenance burden on security analysts.


Not read yet

Exploring Data Tables: A Practical Approach

To begin working with security data, you must be comfortable navigating the "Logs" interface in the Microsoft Sentinel portal. This is where you write KQL queries to interact with your data tables.

Step-by-Step: Exploring the Schema

  1. Navigate to the Sentinel Workspace: Open your Sentinel instance in the Azure portal and select "Logs" from the left-hand menu.
  2. Access the Schema Tab: On the left side of the screen, you will see a "Tables" tab. Click this to view a categorized list of all available tables.
  3. Expand a Table: Click the chevron (arrow) next to a table name, such as SecurityEvent. You will see a list of columns, their data types, and a brief description of what they contain.
  4. Sample the Data: Hover over the table name and click the "eye" icon. This will automatically generate a query like SecurityEvent | take 10, which returns the first ten rows of data from that table.

Note: Always use the take operator when exploring a new table. Running a query without a limit on a large table can result in excessive data processing, which increases costs and slows down your investigation.


Not read yet

Deep Dive into Common Security Tables

To be an effective security analyst, you should memorize the structure of the most common tables. While there are dozens of tables, the following are the "bread and butter" of most investigations.

1. SigninLogs

This table is critical for identity-based investigations. It captures every sign-in attempt to your Azure environment.

  • Key Columns: UserPrincipalName (the user), IPAddress (where they came from), ResultType (success or failure), and AppDisplayName (what they were trying to access).
  • Example Query:
    SigninLogs
    | where ResultType != 0 // Filter for failed sign-ins
    | summarize FailedCount = count() by UserPrincipalName, IPAddress
    | where FailedCount > 5
    
    Explanation: This query identifies users who have failed to sign in more than five times, which is a common indicator of a brute-force or password-spraying attack.

2. SecurityEvent

This is a classic table used for Windows-based endpoint monitoring. It captures events like process creation, login events, and account management.

  • Key Columns: EventID (the type of event), Account (the user involved), Computer (the machine), and ProcessName.
  • Example Query:
    SecurityEvent
    | where EventID == 4688 // Process Creation
    | where ProcessName endswith "powershell.exe"
    | project TimeGenerated, Computer, Account, CommandLine
    
    Explanation: We are specifically looking for the execution of PowerShell, which is a common tool used by attackers for lateral movement.

3. DeviceEvents

If you are using Microsoft Defender for Endpoint, this table contains high-fidelity telemetry from your devices.

  • Key Columns: ActionType, DeviceName, FileName, and FolderPath.
  • Example Query:
    DeviceEvents
    | where ActionType == "FileCreated"
    | where FileName endswith ".exe" or FileName endswith ".ps1"
    | project TimeGenerated, DeviceName, FileName, FolderPath
    
    Explanation: This monitors for the creation of executable files, a common step in malware persistence.

Not read yet

Advanced Schema Management: Custom Tables

Sometimes, the data you need to monitor doesn't fit into a pre-defined Microsoft table. In these cases, you will create a custom table. This is common when ingesting logs from proprietary legacy applications or specialized security appliances.

How to Create a Custom Table

Creating a custom table typically involves using a Data Collection Rule (DCR). The process follows these steps:

  1. Define the DCR: In the Azure Monitor section, create a new DCR that specifies the data source (e.g., an API endpoint or a custom log file).
  2. Define the Schema: You must provide a JSON schema that describes the columns and data types for your incoming logs.
  3. Configure the Transformation: You can use KQL within the DCR to parse, filter, or enrich the data before it is written to the table. This is a powerful feature that allows you to drop unnecessary noise or add metadata.

Warning: Be very careful with transformations. If you define a transformation that drops data based on a condition, that data is gone forever. Always test your transformations on a small subset of data before applying them to your production stream.


Not read yet

Best Practices for Querying Security Data

Writing efficient queries is essential for both performance and cost management in Sentinel. Log Analytics is a columnar store, meaning it is highly optimized for queries that filter by specific columns and time ranges.

1. Always Filter by Time

The TimeGenerated column is your best friend. Every query should, if possible, include a time filter to reduce the amount of data the engine has to scan.

  • Bad: SecurityEvent | where EventID == 4624
  • Good: SecurityEvent | where TimeGenerated > ago(24h) | where EventID == 4624

2. Use project to Limit Columns

When you run a query, the default behavior is to return all columns. This consumes memory and bandwidth. Use the project operator to select only the columns you actually need for your analysis.

3. Use summarize for Aggregation

Instead of pulling thousands of raw rows, use summarize to group data. This is much faster and provides better insights for dashboards and alerts.

  • Example: SigninLogs | summarize Count = count() by bin(TimeGenerated, 1h), ResultType

4. Leverage the let Statement

Use let statements to define variables or sub-queries. This makes your complex queries much more readable and modular.

let TimeWindow = 1h;
let FailedSignins = SigninLogs | where ResultType != 0;
FailedSignins | where TimeGenerated > ago(TimeWindow)

Not read yet

Comparison: ASIM vs. Raw Tables

It is important to understand the distinction between raw logs and ASIM-normalized logs.

Feature Raw Tables (SecurityEvent, SigninLogs) ASIM Normalized Tables (imSignin, imProcessEvent)
Structure Vendor-specific, non-uniform Uniform, standardized schema
Query Effort High (must know specific vendor fields) Low (one query works for multiple sources)
Performance Slightly faster (direct access) Slightly slower (parsing overhead)
Primary Use Case Deep-dive forensic analysis Threat hunting and alerting

Callout: Why Use ASIM? Think of ASIM as a translator. If you have an environment with logs from CrowdStrike, Microsoft Defender, and Symantec, they all record process creation differently. ASIM creates a "view" that makes all of them look the same. By writing your detection rules against the ASIM imProcessEvent table, you ensure that your security rules are vendor-agnostic and will continue to work even if you switch security vendors in the future.


Not read yet

Common Pitfalls and How to Avoid Them

Even experienced analysts fall into traps when working with data tables. Here are the most common mistakes:

1. The "Select *" Trap

Never run a query like Table | take 1000 without filtering. In a large environment, this can scan gigabytes of data unnecessarily, leading to slow performance and potential cost spikes. Always filter by time and specific attributes first.

2. Ignoring Data Types

KQL is strictly typed. If you try to compare a string value to an integer, your query will fail. Use the tostring() or toint() functions to cast data types when performing comparisons.

  • Error: SecurityEvent | where EventID == "4624" (Comparing an integer column to a string)
  • Fix: SecurityEvent | where EventID == 4624 (Remove quotes)

3. Misunderstanding Latency

Ingestion latency is real. Data does not appear in Sentinel the millisecond it is generated. It can take anywhere from a few seconds to several minutes for logs to be parsed and indexed. Do not assume your query is broken just because you don't see an event that happened ten seconds ago; wait a few minutes before troubleshooting.

4. Over-reliance on "Custom" Everything

While it is tempting to create custom tables for every unique data source, this leads to "schema sprawl." Before creating a custom table, check if the data can be mapped to an existing ASIM schema. Maintaining fewer, standardized tables is always better for long-term manageability.


Not read yet

Industry Standards for Log Management

Security operations are governed by various standards (like NIST, ISO 27001, and SOC2) that emphasize the integrity and availability of log data.

  • Retention Policies: Ensure that your tables have appropriate retention settings. You don't need to keep verbose firewall logs for two years, but you might need to keep authentication logs for regulatory compliance.
  • Data Archiving: Move older data to "Basic" logs or Archive storage to reduce costs. Sentinel allows you to configure different retention tiers for different tables.
  • Access Control: Use Azure Role-Based Access Control (RBAC) to restrict who can query sensitive tables. For example, HR-related logs should only be accessible by authorized personnel, not every analyst in the SOC.

Step-by-Step: Validating Data Ingestion

If you have just configured a new data connector, how do you verify that the data is flowing into the correct table?

  1. Check the Connector Status: Go to the "Data Connectors" page in Sentinel and ensure the status is "Connected."
  2. Run a Heartbeat Query: Most connectors have a heartbeat table. Search for Heartbeat in the logs to see if the source is sending signals.
  3. Query the Target Table: Identify the table name associated with the connector (e.g., OfficeActivity for Microsoft 365 logs).
  4. Run a Time-Bound Check:
    OfficeActivity
    | where TimeGenerated > ago(1h)
    | count
    
    If the count is greater than zero, your data is flowing. If it is zero, check your connector configuration or the source device's network connectivity.

Not read yet

Summary of Key Takeaways

Mastering security data tables is the path to becoming a proficient security engineer. By understanding how data is structured, normalized, and queried, you move from being a user of the platform to an architect of your own security visibility.

  1. Schema is Everything: You cannot protect what you cannot see. Spend time familiarizing yourself with the schemas of the tables you use most frequently.
  2. Standardization is Key: Prioritize the use of ASIM (Advanced Security Information Model) to ensure your queries are vendor-agnostic and easier to maintain.
  3. Filter Early and Often: Always use TimeGenerated filters and specific column projections to keep your queries fast, cost-effective, and accurate.
  4. Data Types Matter: Pay close attention to data types (string vs. int vs. dynamic) to avoid common runtime errors in your KQL queries.
  5. Manage Complexity: Avoid "schema sprawl" by mapping custom data to existing standard tables whenever possible.
  6. Performance Mindset: Think about the amount of data your query is scanning. Use summarize and take to manage the volume of data returned.
  7. Compliance and Retention: Align your table retention policies with organizational security policies and regulatory requirements to balance cost and compliance.

By applying these principles, you will be able to build a robust, scalable, and highly effective security operations environment in Microsoft Sentinel. The logs are the truth of your network; learning to read them effectively is the most important step in any security mission.


Not read yet

Frequently Asked Questions (FAQ)

Q: Can I rename columns in a table? A: You cannot rename columns in a system-managed table. However, you can use the extend or project operators in your query to create an alias for a column, making it easier to read.

Q: How do I know which table my logs are going to? A: When you enable a data connector, the Microsoft documentation for that specific connector will list the destination table(s). You can also look at the "Data Connectors" page in Sentinel, click on the connector, and view the "Data Types" tab.

Q: Why is my query running slowly? A: Usually, it is because you are scanning too much data. Check if you have a TimeGenerated filter, ensure you are not using wildcards at the start of strings (which prevents indexing), and try to limit the number of columns you are processing.

Q: What is a "Dynamic" data type? A: A dynamic column contains structured data like JSON. You can access nested fields within a dynamic column using the dot notation (e.g., Properties.TargetUser). This is extremely common in cloud logs.

Q: Is there a way to see all tables in my workspace at once? A: Yes, in the Logs interface, you can use the union * command, but be warned: this is extremely slow and should only be used for discovery on very small datasets or with a strict time filter. It is better to use the "Tables" pane to explore selectively.

Not read yet

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