1/47
Looks like no tags are added yet.
Data journey: source to hunting (big picture)
1) Source (server, firewall, cloud app) | 2) Collector (AMA, connector, API, diagnostic settings) | 3) DCE (only when needed, e.g. Logs Ingestion API) | 4) DCR: stream → transformation (KQL) → destination | 5) Table in Log Analytics workspace (Analytics tier) | 6) Copied to the Sentinel data lake | 7) Used by analytics rules, hunting, workbooks, UEBA, KQL jobs
What does each part of a DCR do?
Data source / stream = what comes in | Transformation = KQL that filters or changes rows before storage | Destination = workspace + output table
How does a DCR transformation query start?
With the word source (the incoming data). Example: source | where SeverityLevel != "info" | project-away RawData
What can a DCR transformation do?
Filter rows (where), remove columns (project-away), add or change columns (extend), parse text, mask sensitive data | Goal: less cost, less noise
What can't a DCR transformation do?
Use other tables (no join, union or lookup to other data). It only sees the incoming rows.
Adding a custom column to a standard (Azure) table in a transformation
Name must end in _CF. Example: extend Department_CF = "Finance"
Standard DCR vs workspace transformation DCR
Standard DCR = data that already flows through a DCR (AMA, Logs Ingestion API) | Workspace transformation DCR = data that doesn't use a DCR (diagnostic settings, e.g. Entra SigninLogs and AuditLogs) | Only ONE workspace transformation DCR per workspace
Which data gets which transformation?
AMA: Syslog, CommonSecurityLog (CEF), SecurityEvent, WindowsEvent → transformation in its own standard DCR | Logs Ingestion API custom data → its own DCR | Data with no DCR of its own (diagnostic settings, e.g. SigninLogs, AuditLogs, AzureDiagnostics; legacy agents) → workspace transformation DCR | Workspace DCR is ignored for data that already came through another DCR | Exam clue: "no DCR" or "diagnostic settings" → workspace transformation DCR
Steps: Create a workspace transformation DCR
1) Log Analytics workspace → Tables | 2) Select the table → Create transformation | 3) Workspace transformation DCR is created on first use (one per workspace) | 4) Write the KQL (source | …) | 5) Save. Applies to new data only
Steps: Linux Syslog via AMA up to the workspace
1) Non-Azure Linux machine? Onboard to Azure Arc first | 2) Content hub → install the Syslog solution | 3) Data connectors → Syslog via AMA → Open connector page | 4) Create data collection rule: name, subscription, resource group | 5) Resources: pick the Linux VMs/Arc machines (AMA installs automatically) | 6) Collect: pick facilities + minimum log level | 7) Review + create | 8) Verify: Syslog | take 10
Syslog via AMA: facility vs log level
Facility = which program/area sent the log (auth, authpriv, daemon, local0–7) | Log level = minimum severity to collect (e.g. Warning and above) | Collecting fewer facilities/levels = less cost
Which table does Syslog via AMA write to?
Syslog
Steps: CEF (firewall/appliance) via AMA up to the workspace
1) Build a Linux log forwarder (Azure VM or Arc) | 2) Content hub → install Common Event Format solution | 3) Data connectors → CEF via AMA → Create DCR, select the forwarder, pick facilities and level | 4) Run the forwarder installation script on the Linux box (sets rsyslog/syslog-ng to listen on port 514) | 5) Point the firewall/appliance to send CEF to the forwarder on 514 | 6) Verify: CommonSecurityLog | take 10
Which table does CEF via AMA write to?
CommonSecurityLog
How do you avoid duplicate logs when collecting both Syslog and CEF from one forwarder?
Use different facilities for the CEF DCR and the Syslog DCR. Same facility in both = same events land in Syslog AND CommonSecurityLog
Syslog vs CEF?
Syslog = plain Linux logs → Syslog table | CEF = structured security format from firewalls and appliances, sent through a Linux forwarder → CommonSecurityLog table
Steps: Windows Security Events via AMA
1) Content hub → Windows Security Events solution | 2) Connector: Windows Security Events via AMA → Create DCR | 3) Resources: pick Windows VMs/Arc machines | 4) Collect: pick event set (All, Common, Minimal, or Custom with XPath) | 5) Review + create | 6) Verify: SecurityEvent | take 10
Windows event sets: All, Common, Minimal, Custom
All = every security and AppLocker event | Common = full audit trail incl. sign-outs, moderate volume | Minimal = small set for threat detection only, no sign-outs | Custom = you choose with XPath queries
Windows Security Events vs Windows Forwarded Events?
Security Events via AMA → SecurityEvent table (directly from each machine) | Windows Forwarded Events (WEF collector) → WindowsEvent table
Steps: Send Entra ID logs to Sentinel
1) Content hub → Microsoft Entra ID solution | 2) Connector → select log types (SigninLogs, AuditLogs, etc.) → Apply | 3) It creates an Entra diagnostic setting to the workspace | 4) Verify: SigninLogs | take 10
Steps: Send Microsoft Graph activity logs to Sentinel
1) Entra admin center → Diagnostic settings → Add | 2) Select MicrosoftGraphActivityLogs | 3) Send to the Sentinel workspace | 4) Query MicrosoftGraphActivityLogs | Join to sign-ins: SignInActivityId == UniqueTokenIdentifier (leftouter keeps all Graph rows)
Steps: Azure Activity connector (what we did in the lab)
1) Content hub → Azure Activity solution | 2) Connector → Launch Azure Policy Assignment wizard | 3) Scope = subscription, parameter = Sentinel workspace | 4) Create a remediation task (fixes existing subscriptions) | 5) Policy creates the Activity log diagnostic setting | 6) Verify: AzureActivity | take 10
Steps: Logs Ingestion API (custom app sending data)
1) Register an app in Entra (client secret) | 2) Create a DCE if needed | 3) Create a custom table (_CL) + DCR with the stream schema and transformation | 4) Assign the app Monitoring Metrics Publisher on the DCR | 5) App sends JSON to the endpoint with the DCR immutable ID and stream name | 6) Verify the _CL table
Steps: Threat intelligence via TAXII
1) Content hub → Threat Intelligence solution | 2) Threat Intelligence - TAXII connector | 3) Enter friendly name, API root URL, collection ID, username/password | 4) Set polling frequency → Add | 5) Indicators land in ThreatIntelIndicator / ThreatIntelligenceIndicator
TAXII connector vs Threat Intelligence Upload API?
TAXII = Sentinel pulls from a TAXII 2.x server | Upload API = your platform pushes indicators via REST; needs an app registered in Entra
Steps: Connect Defender XDR to Sentinel
1) Content hub → Microsoft Defender XDR solution | 2) Connector → Connect incidents and alerts | 3) Optionally select Advanced hunting tables (Device, Email, Identity*) to stream raw events | 4) Incidents sync both ways
Analytics tier vs data lake tier
Analytics tier = fast, interactive KQL, analytics rules, higher cost | Data lake tier = cheap, long retention, queried with KQL jobs, interactive lake queries, notebooks | Change a table's tier in Table management
Steps: Onboard to the Sentinel data lake
1) Defender portal → Microsoft Sentinel data lake setup | 2) Pick subscription + resource group for billing | 3) Existing workspace data is mirrored to the lake | 4) Unlocks data lake exploration, KQL jobs, notebooks, Sentinel graph and blast radius
Steps: Create a summary rule
1) Sentinel → Summary rules → Create | 2) Name + destination table (custom _CL, analytics tier) | 3) KQL that aggregates (summarize count() by DeviceId, bin(TimeGenerated, 1h)) | 4) Bin size + delay for late data (e.g. 15 min) | 5) Save. Turns noisy logs into small hourly summaries
Steps: Create a data lake KQL job
1) Defender portal → Sentinel → Data lake exploration → Jobs → Create | 2) Write the KQL on lake data | 3) Pick destination: new table (gets _KQL_CL suffix in analytics tier) or existing table (output must match its schema) | 4) Run once or set a schedule | Promotes lake results so rules and hunting can use them
Search job vs restore vs KQL job vs interactive lake query
Search job = find matching rows in long-term data → _SRCH table | Restore = bring a whole time range back for full KQL → _RST table (delete when done) | KQL job = query lake, write results to analytics tier (one-time or scheduled) | Interactive lake query = quick one-time look, no table created
Steps: Build a custom ASIM parser
1) Collect sample logs | 2) Identify the ASIM schema (e.g. Authentication) | 3) Map source fields to ASIM fields | 4) Write the parser (KQL function) | 5) Test | 6) Deploy | 7) Add it to the unifying parser (Im…) | 8) Optional: contribute to GitHub
Steps: Stop a built-in ASIM parser from auto-updating
Option 1: Custom unifying parser that calls the specific built-in version (e.g. _Im_Dns_AzureFirewallV02) | Option 2: Add an exception: CallerContext = Any + SourceSpecificParser = Any
Steps: Analytics rule wizard (Scheduled)
1) General: name, MITRE tactics, severity | 2) Set rule logic: KQL, entity mapping, custom details, alert details, frequency + lookback, threshold, event grouping, suppression | 3) Incident settings: create incidents, alert grouping | 4) Automated response: automation rules | 5) Review + create
Steps: Turn a hunting query into an NRT rule
1) Analytics → Create → NRT query rule | 2) Paste the query (runs every minute, no frequency/lookback to set) | 3) Map entities | 4) Threshold: Greater than 0 | 5) Incident settings + automation | 6) Create
Steps: Defender XDR custom detection rule
1) Advanced hunting: query returns Timestamp + ReportId + an entity column (e.g. DeviceId) | 2) Create detection rule | 3) Details: name, frequency, severity, category, MITRE | 4) Impacted entities | 5) Actions (isolate, collect package, etc.) | 6) Scope | 7) Review + create
Custom detection frequency → lookback
Every 24h → 30 days | Every 12h → 48 hours | Every 3h → 12 hours | Every 1h → 4 hours | Continuous (NRT) → new events only | Pick a lookback longer than the time you must cover
Steps: Turn on UEBA
1) Roles: Security Administrator (Entra) + Microsoft Sentinel Contributor | 2) Sentinel settings → Entity behavior analytics → Set UEBA | 3) Turn on directory sync (Entra ID, AD via MDI) | 4) Pick data sources (AuditLogs, AzureActivity, SecurityEvent, SigninLogs) | 5) Results in BehaviorAnalytics, IdentityInfo, Anomalies
Steps: Threat hunting flow in Sentinel
1) Hypothesis (narrow, time-bound) | 2) Hunting page: pick or write queries (filter by MITRE tactic) | 3) Run queries, review results | 4) Bookmark interesting rows + map entities | 5) Investigate in the graph, or create/attach an incident | 6) If it keeps finding threats → turn it into an analytics rule | Hunts feature tracks it all as one project
Steps: Investigate an old device event (beyond 30 days)
1) Device page → Timeline | 2) Select a custom date range (default shows 30 days) | 3) Find the event | 4) Hunt for related events → opens Advanced hunting for events around that time
Steps: Use the Sentinel MCP server from VS Code
1) Need Security Reader (Entra) | 2) VS Code → add the Sentinel MCP server | 3) Sign in with Entra | 4) Run list_sentinel_workspaces → pick the workspace ID | 5) Query the data lake through MCP tools | Guest in another tenant → add x-mcp-client-tenant-id header
Steps: Purview audit search and export
1) Need audit roles (Global, Exchange or Compliance Admin) | 2) Purview portal → Audit → New search | 3) Dates, activities, users | 4) Run → Export to CSV (Standard: 180 days, 50,000 rows per export; split date ranges for more) | Premium keeps 1 year
Steps: Make a playbook run automatically
1) Build the playbook (Logic App) with the Sentinel incident trigger (Logic App Contributor) | 2) Grant Microsoft Sentinel Automation Contributor on the playbook's resource group | 3) Automation rule: trigger + conditions + Run playbook | 4) If the playbook acts on Azure resources, give its managed identity a role on them
Steps: Repurpose a manual Logic App as a Sentinel playbook
1) Change the trigger to the Microsoft Sentinel incident (or alert/entity) trigger | 2) Add Sentinel connector actions | 3) Grant permissions (managed identity) | 4) Attach to an automation rule
Steps: Create an automation rule
1) Sentinel → Automation → Create automation rule | 2) Trigger: incident created, incident updated, or alert created | 3) Conditions: incident provider, analytics rule name, tags, etc. | 4) Actions: change status/severity, assign owner, add tags/tasks, run playbook | 5) Order + expiration → Apply
Steps: Device isn't reporting alerts but shows in the Defender portal
1) Defender portal → Configuration management | 2) Approve the devices | Filtering alerts, alert service settings, or device groups won't fix it
Steps: Approve a pending remediation in Defender for Endpoint
1) Role: Security Reader + Active remediation actions permission | 2) Action center → Pending | 3) Select the action → Approve or Reject