Why monitoring Okta and Microsoft 365 logs in OpenSearch matters for account takeover
Your identity provider and SaaS suite hold the keys to most of your applications, and their audit logs are often the first evidence of an account takeover. A stolen password, a replayed session token or a newly enrolled MFA device usually shows up in Okta System Log events, Microsoft 365 unified audit records or Google Workspace admin and login events long before anyone notices unusual data access in the application itself. OpenSearch Security Analytics ships standard log types for AD/LDAP, Okta, GitHub, Google Workspace, Microsoft 365 and Azure, so the same platform can hold identity evidence next to endpoint, network and cloud logs and run detectors across all of them. Before you commit to this, confirm the exact log type names, field mappings and supported event categories for your tenant versions in the OpenSearch log types reference.
Vendor consoles are usually enough when you have a small number of tenants, a short retention need, no requirement to correlate identity events with other systems and no team that must answer for detection coverage. A self-hosted SIEM becomes worth its operating cost when you need one place to search across providers, want detections you can version and test, must keep logs for a retention period that the console does not cover, or need to show an auditor how account takeover signals are monitored. Ask each vendor what its audit log retention is on your plan, whether logs can be exported continuously, and how long an export takes to appear. Those answers set the collection design, so settle them before you write any rules.
The decision you face is not whether to collect identity logs, but who owns the pipeline. Someone must keep collectors running, rotate the API credentials or service principals that read each audit feed, and confirm that log volumes and gaps are visible when a connector stops. Write these duties into your runbook before go-live, because an account takeover detector that silently stopped receiving events will not raise an alert about its own silence. If your team lacks capacity for that ongoing work, a partner can plan and build the pipeline, but the operating responsibility and its cost should be stated in the written scope.
Which identity and SaaS log types Security Analytics supports
Security Analytics ships standard log types for the identity and SaaS platforms most organizations use to sign people in and store their work. Each type maps a source's audit events to fields that detectors can query, so the choice of log type decides which account takeover signals you can see in OpenSearch.
Okta system logs
The Okta log type covers authentication, session and administrative events from your Okta tenant, including sign-in attempts, MFA challenges, password resets and changes to policies and applications. For account takeover work, the useful signals are failed sign-ins followed by a success, MFA factor changes and admin role grants. Confirm that the field mappings for user, client, IP and authentication outcome match the events your tenant actually emits before writing detections against them.
Log types referenceMicrosoft 365 audit logs
The Microsoft 365 log type covers unified audit events from Exchange, SharePoint, OneDrive and Teams, including mailbox access, file sharing and sign-in related activity. Account takeover often shows up here as new inbox rules, mailbox forwarding or unusual file downloads after a sign-in. Check which workloads and record types your audit configuration enables, because a log type can only detect what the tenant records.
Azure activity and sign-in logs
The Azure log type covers control-plane activity in your Azure subscriptions, such as role assignments, resource creation, deletions and policy changes. It complements identity sign-in data by showing what an account did once it had access to cloud resources. Confirm which Azure log categories you export and how they reach OpenSearch, since subscription-level activity and directory sign-in data arrive through different paths.
Google Workspace admin and login events
The Google Workspace log type covers admin console changes, login events, Drive activity and token grants for the applications users authorize. Authorized OAuth applications and admin privilege changes are the events most often tied to persistent access. Confirm which Google report applications you collect, since login and admin reports are separate data sources that need their own ingestion.
GitHub audit logs
The GitHub log type covers organization audit events such as member additions, repository visibility changes, personal access token activity, deploy key creation and SSO authorizations. Compromised developer accounts frequently show up as new tokens or keys added to repositories shortly after an unusual sign-in. Verify that your collection method captures the organization or enterprise events you care about and that retention on the GitHub side does not limit your lookback window.
AD and LDAP directory events
The AD/LDAP log type covers directory events from Active Directory and LDAP sources, including authentication, account lockouts, group membership changes and password resets. It is the on-premises counterpart to cloud identity logs and helps you correlate a hybrid user's sign-ins across both environments. Confirm domain controller audit policy and forwarding coverage first, because missing audit subcategories produce gaps that no detector can fill.
How audit logs reach OpenSearch from each SaaS source
Okta system log events are typically collected through Okta's log streaming or by polling its System Log API from a shipper that writes into OpenSearch. The vendor-side work is administrative: confirm which tenant administrator role can enable log export, and confirm that the service account or API token used by the collector has read access to the System Log. Events are then normalized to the Okta log type in Security Analytics, so field names line up with the detectors you plan to use.
- Vendor-side enablement: Confirm with Okta which log streaming option your tenant license includes and who must approve it.
- Collector identity: Use a dedicated, read-only API token or service account, stored in your secrets manager and rotated on a schedule you set.
- Shipping component: A log shipper or ingestion pipeline polls or receives the events and writes them to a dedicated index, not a shared one.
- Field mapping: Check that the shipped fields match the Okta log type, including actor, client, and authentication context fields used by account takeover rules.
- Gaps: Record any period where the collector was down so you can backfill from the source.
Before go-live, confirm with Okta the API rate limits, event retention window, and any tenant-level restrictions on export.
Microsoft 365 unified audit log events and Azure Active Directory sign-in and audit events come from different Microsoft surfaces, and they often need different collection paths. Auditing must be turned on in the Microsoft Purview compliance portal for the Microsoft 365 audit log, and Entra ID diagnostic settings must send sign-in and audit logs to an export destination. Your collector then reads from the management activity API or from the exported storage, depending on the design you choose.
- Vendor-side enablement: Confirm that unified audit logging is on for your tenant and that the sign-in and audit log categories are exported.
- Application registration: Register an application with the read permissions the collector needs, and restrict it to the tenants it must cover.
- Shipping component: A collector or pipeline reads the management activity feed or exported logs and writes them to OpenSearch with the Microsoft 365 and Azure log types in mind.
- Retention and licensing: Ask Microsoft which audit log retention applies to your license tier, because it determines how far back your detections can look.
- Duplicate coverage: Decide whether Azure sign-in events are collected once through Entra ID or twice through separate paths, and document the choice.
Confirm with Microsoft the current API endpoints, permissions and retention for your license before you build the collector.
Google Workspace audit events come from admin, login, token, drive and other application logs in the Google Admin console and reporting APIs. The vendor-side task is to confirm which applications are logging for your domain and that the account used to read them holds the reporting privileges it needs. A pipeline then polls the reports API or receives the events from a Google Cloud export, and writes them to OpenSearch under the Google Workspace log type.
- Vendor-side enablement: Confirm in the Admin console that each application you need reports activity, and note which audit applications your edition covers.
- Service account: Use a service account with domain-wide delegation scoped to the reporting read permissions only, and document who approves it.
- Shipping component: A poller or Google Cloud export pipeline writes events to a dedicated index, with timestamps normalized to one timezone.
- Login and token events: Make sure OAuth token grants and suspicious login events are included, since account takeover detections depend on them.
- Quota planning: Ask Google which API quotas apply to the reports endpoints and size the polling interval against them.
Check the applications and quotas with Google before you finalize the polling design.
GitHub audit log events cover organization and enterprise actions such as member changes, token creation, and repository settings. Collection depends on the plan: streaming to an external destination is an enterprise-level feature, while organization audit logs are read through the API. Your design should decide whether the collector reads the audit log API or receives a stream, and it should choose a token type that can read the required events without broad write access.
- Vendor-side enablement: Confirm which GitHub plan and audit log features your organization has and who can enable streaming or API access.
- Token choice: Prefer a fine-grained or GitHub App credential with audit log read permission, and store it in your secrets manager.
- Shipping component: A pipeline polls the audit log API or receives the stream and writes events to a dedicated GitHub index.
- Scope: Cover every organization that holds code or access to production systems, not only the primary one.
- Retention: Confirm with GitHub how long audit events are available through the API for your plan, because that sets your backfill window.
Confirm the plan features, token permissions and retention with GitHub before you build collection.
How identity and SaaS events flow into detectors and alerts
The path starts at the SaaS audit APIs for Okta, Microsoft 365, Azure, Google Workspace and GitHub, which sit outside your control. A collector pulls those audit events across the trust boundary into the OpenSearch cluster you operate, where they land in indices mapped to the matching Security Analytics log types. Detectors then run against those indices, producing findings and alerts for your SOC. Check that each source's log type is mapped correctly and that the collector's credentials are scoped to read-only audit access.
Identity and SaaS audit events cross the trust boundary into detection and alerting.
Which detections catch account takeover in identity logs
Account takeover in Okta, Microsoft 365 and Google Workspace usually shows up as a short chain of identity events rather than one obvious alert, so the detection set should follow that chain. The patterns to target are sign-ins from a new location or device, repeated failed logins followed by a success, a change to the MFA factors on an account, the creation of a mailbox forwarding or inbox rule, and the grant of an administrator role. Each one maps to a specific log type in Security Analytics: the Okta log type for sign-in and factor events, the Microsoft 365 and Azure log types for mailbox and directory activity, and the Google Workspace log type for account and admin events. Confirm the exact event names and field mappings for each of these in the log types reference before writing any rule, because the names differ by source and by version of the connector you run.
The prepackaged Sigma rules for these log types are the starting point, not the finished answer. Review each rule against the event fields your own collection actually produces, check which ones depend on fields your pipeline normalizes, and decide which to enable, disable or duplicate for editing. Account takeover rules are only useful when tuned to your baseline: sign-in from a new country will fire constantly for a company with travelling staff or a VPN exit in another region, and a failed-then-successful login rule needs a threshold and time window that match how often your users mistype passwords. Record the baseline you used, the thresholds you chose and who approved them, so the tuning can be reviewed later.
Plan the validation before you trust the alerts. Replay known test sign-ins, a test MFA enrollment change and a test inbox rule in a non-production tenant, then confirm each detector raises the expected finding and that the alert reaches the people who will handle it. This document does not claim any detection coverage figure for these patterns. Measure coverage in your own environment, and ask any vendor or partner to show the tested events and results rather than a percentage.
Collection and detection options and when each fits
This table compares three ways to bring Okta, Microsoft 365, Azure and Google Workspace audit events into Security Analytics: the prepackaged log types, a per-tenant custom pipeline and an existing log shipper. Read each row against your tenant count, existing tooling and who owns the pipeline after go-live. The main takeaway is that the detection content is the easy part, and the collection path decides how much ongoing work you carry.
| Option | Fit | Effort drivers | What to confirm |
|---|---|---|---|
| Prepackaged log types with a managed collector | Single or few tenants, a team that wants standard field mappings and fewer custom parsers | Collector setup, API credentials per source, field mapping checks after vendor schema changes | Which log types match your tenants and whether the collector you use supports each SaaS audit source |
| Custom pipeline per SaaS tenant | Several tenants or subsidiaries with separate admin consoles, or sources the standard types do not cover | Separate credentials and polling per tenant, custom field mappings, and testing each pipeline after changes | Whether each tenant can issue read-only audit access, and who approves credential rotation |
| Forwarding through an existing log shipper | Organizations already running a shipper that collects SaaS audit events for another SIEM or log platform | Reusing current connectors, but mapping shipper output to the Security Analytics log type fields | Which fields the shipper preserves, such as actor, source IP, user agent and result, and whether timestamps stay in UTC |
| Detection content coverage | Account takeover rules depend on sign-in result, MFA events, admin role changes and mailbox or forwarding rule changes | Rules that assume a field the source does not emit will silently miss activity | Which Sigma rules ship for each log type and which need tuning or custom authoring |
| Retention and volume | Identity and SaaS audit volumes grow with user count and integration use | Index retention, storage placement and query load on the cluster | The retention period your compliance or investigation policy requires and who owns the storage budget |
How to set up identity and SaaS log monitoring in order
This sequence takes Okta, Microsoft 365, Azure and Google Workspace audit activity from vendor settings into searchable OpenSearch events and then into detectors and alerts. Each step ends with a check so the team knows the layer below it works before building on it.
Confirm log types and vendor audit features
Before touching any tenant, the security engineering lead confirms which Security Analytics log types will be used: Okta, Microsoft 365, Azure, Google Workspace and, if in scope, GitHub and AD/LDAP. For each log type, the team checks the current log type reference and records which vendor audit feeds, sign-in logs and admin activity logs the tenant actually exposes, along with the license tier that includes them. Ask each vendor's administrator which audit features the organization's plan provides, because some sign-in and risk signals depend on the edition. The step is done when a written inventory lists each source, its audit feed, its license requirement and the owner who will approve access. Illustrative: a tenant on a plan without a given sign-in log feed should be flagged here, not discovered during detector testing.
Enable audit export with a least-privilege account
Each SaaS administrator enables the audit or log export feature for the tenant and creates a dedicated service account or application registration used only for reading audit events. The account receives read-only audit permissions and nothing that changes configuration, and its credentials are stored in the collection host's secrets store, not in pipeline configuration files. Record who approved the account, the permissions granted, and the rotation owner. The step is done when a test call with that account returns recent audit events and the same call with a write-capable action is refused, which confirms the account is read-only.
Build and test the collection pipeline
The platform team builds the collection path from each tenant's audit API or export into the OpenSearch cluster, using the ingestion tooling the team has chosen for that environment. Run the pipeline against a non-production or low-volume window first, and confirm that the collector handles pagination, rate limits and token refresh without dropping events on restart. Check that TLS is used for every hop and that the collector's own logs are shipped to monitoring. The step is done when a deliberate test action in each tenant, such as a test sign-in or a test admin change in a sandbox, appears in the destination index within the expected delay and no events are duplicated after a collector restart.
Map fields and verify events are searchable
The team compares the incoming documents with the field mappings expected by each Security Analytics log type and fixes mismatches in the ingestion mapping rather than editing the detection rules to fit the data. Key fields to confirm include the user identifier, source IP address, event or operation name, outcome, timestamp and, for sign-in events, the client or application identifier. The team runs searches in OpenSearch Dashboards for each source and confirms that the fields filter and aggregate correctly. The step is done when a sample search per source returns the expected user, IP and outcome values and the timestamp field matches the event time reported by the vendor.
Enable and tune the account takeover detectors
The detection engineer enables the prepackaged rules for each log type that apply to account takeover, such as repeated failed sign-ins followed by success, sign-ins from unfamiliar locations, new MFA or authentication method changes, mailbox rule creation and privilege grants. Each detector is first run without alerting, so the team can measure how often it fires on normal activity and adjust thresholds or exclusions, for example for known service accounts or travel. Changes are recorded in version control or change tickets. The step is done when each enabled detector has a documented baseline of findings, a named owner and a tuning note explaining every exclusion. Confirm the test events from the earlier step trigger the intended detectors.
Wire alerts and test the handoff
The SOC lead configures notifications for the detectors that have been tuned, routing high-severity account takeover findings to the on-call channel and lower-severity findings to a review queue. Each notification is tested end to end by triggering a controlled detection in a test account, then confirming the alert reaches the right responders with the user, source IP and tenant clearly stated. The team also confirms what happens when the alert channel is unavailable. The step is done when a test alert from each tenant arrives at its intended destination, the responders can acknowledge it, and the runbook names the person who disables a compromised account and the steps to do so.
Securing credentials, retention and access to identity logs
Identity and SaaS audit logs describe who signs in, from where, and what they change, so the pipeline that collects them is a sensitive system in its own right. The cards below cover the credentials the collectors hold, the transport and storage around them, who can query the results, and the privacy questions that come with the data.
Read-only collector service accounts
Each source needs its own collector identity with only the read scope required for system logs, such as the Okta System Log, Microsoft 365 audit content and Google Workspace reports. Avoid reusing an administrator account or a personal token for collection. Before go-live, confirm in each vendor's admin console exactly which scopes the account receives, and record who approved them. Review the scope list whenever a new log type is added.
Secret storage for API credentials
Collector tokens, client secrets and certificates should live in a secrets store or an encrypted configuration path, not in plain pipeline files or container images. Define who can read the secret, how it is rotated, and what breaks when rotation happens. Check that pipeline logs and error messages do not echo credential values. Confirm the rotation schedule with the owners of each SaaS tenant before the collector is put into production.
TLS on every collection path
Encrypt traffic from the collector to the SaaS API, from the collector to the ingest endpoint, and from the ingest endpoint to the OpenSearch nodes. OpenSearch Security provides TLS for node and client traffic, so configure it on the cluster side and confirm certificate validation on each collector. Plan certificate renewal before expiry, because a lapsed certificate silently stops identity log collection and creates a gap in the audit trail.
OpenSearch security docsRole-based access to identity events
Identity events reveal account names, IP addresses and admin actions, so not every analyst should see them. Use OpenSearch Security roles to limit index access to the SOC or identity team, and consider document-level or field-level security for fields such as client IP or user agent. Confirm the identity backend you will use for analysts, and test each role with a non-administrator account before the SOC relies on it.
Audit logging of cluster access
Logging what analysts and services do to the SIEM is part of the same control set as logging the sources themselves. Enable the OpenSearch Security audit log, decide which categories to record, and send it to storage that the detection administrators cannot quietly edit. Confirm who reviews these logs and how often, so that changes to detectors, roles and collector accounts are visible.
Privacy review of identity data
Identity logs contain personal data about employees and contractors, including usernames, IP addresses, locations and device details. Agree with the privacy and works council contacts where applicable on purpose, access, and how long each index is kept. Set retention in index lifecycle policies that match the approved schedule, and document the legal basis or internal policy that covers the collection. Ask counsel to confirm the requirements for your jurisdiction.
Questions buyers ask before monitoring identity logs in OpenSearch
What drives the cost and effort of monitoring identity and SaaS logs in OpenSearch?
The main drivers are the number of log sources, how much each source logs, how many detections you need, and how much of the collection path you build yourself. Each source needs its audit log enabled or exported, a collection path into OpenSearch, field mapping checked against the Security Analytics log type, and at least one detector that someone has tested. Cost has a one-time part (design, collection, mapping, first detections and testing) and a recurring part (tuning, rule updates and alert handling). Ask any quote to break out the work per source, the detection set, and what is handled by your team versus the partner. Infrastructure for the cluster is a separate cost line and depends on your retention and volume.
How long does a first identity log deployment take?
Duration depends mainly on how many sources you onboard, whether audit logs are already exported somewhere, and how much tuning the detections need before they are quiet enough to act on. A single source with an existing export is much faster to bring online than several sources that need new API access, new storage and new mappings. Confirm the timeline in the written scope rather than relying on general estimates, and ask which steps depend on your identity and SaaS admins approving access. Tuning typically runs after the first alerts arrive, so plan for it as a separate phase.
What does the work need from our identity and SaaS admins?
Collection needs admin-level decisions that your identity and SaaS owners must make. For Okta, that usually means creating a service account or API token with read access to the System Log. For Microsoft 365 and Azure, it means deciding how audit and sign-in logs are exported, which tenant and subscription scope is covered, and who holds the licenses that retain those logs. For Google Workspace and GitHub, it means confirming which admin audit logs are available on your plan and who can grant read access. Ask these owners to confirm retention periods and the account used for collection, since both affect what detections can see.
Can our internal team do this without a partner?
Yes, if you have engineers who can run a self-hosted OpenSearch cluster, manage collection pipelines and write or tune detections, and someone owns alert handling. The harder parts are usually the cross-source work: consistent field mapping, testing account takeover detections against realistic attack paths, and keeping the setup current as vendors change log formats. Many teams split the work, keeping cluster operations and alert triage in-house while bringing in a partner for the design, the first detection set and a security review. Decide that split before you start so that nobody assumes another team owns the detection content.
What does ongoing tuning cost after the first deployment?
Tuning is recurring work. Detections generate false positives when your users, locations, travel patterns, VPNs or service accounts change, and each new log type or vendor update can change field names. The effort scales with the number of active detectors, the volume of alerts your team receives, and how often your identity stack changes. Ask for a retainer or support scope that states how rule changes are reviewed, how new sources are added and how retests are handled. Without a defined scope, tuning tends to fall to whoever is on call, which is where alert fatigue starts.
How does the OpenSearch license affect this decision?
All software in the OpenSearch project is released under the Apache License, Version 2.0, and the OpenSearch FAQ does not describe any paid edition. That means the Security Analytics plugin and its standard log types are available without a license fee from the project. Your costs are the infrastructure you run, the people who operate it and any services you buy. Check the current license terms and trademark policy in the OpenSearch FAQ before you publish internal documentation or name the product in customer-facing material.
Which OpenSearch version should we plan around for a SIEM?
Choose a version that is still under maintenance when your deployment goes live and plan the upgrade path before you add sources. The OpenSearch releases page explains that versions receive bug fixes and security patches during maintenance but no new features, and that a version stays in maintenance until the next major version enters maintenance or one year passes, whichever is longer. Confirm which Security Analytics features and standard log types your chosen version includes, since log type coverage can change between releases.
How DeployOpen scopes and delivers identity log monitoring
Every engagement starts with a written scope that names each log source and tenant. For this work that means the Okta org or orgs, the Microsoft 365 tenant and its audit log sources, the Azure subscriptions whose activity logs matter, the Google Workspace domain, and the GitHub organizations in use. For each one, the scope records who owns the admin consent or service account, which log types are being collected, where the events are shipped from, and which OpenSearch Security Analytics log types and detectors will consume them. Items left out of the written scope are the ones most likely to surface later as blind spots, so the scoping conversation covers tenants that exist only for testing or legacy use. DeployOpen plans and implements this work inside your infrastructure, and the agreed scope, deliverables and timeline are fixed in writing before collection work begins.
The written deliverables list what you will receive: configured collection pipelines, the log type mappings in use, the detectors that run against identity and SaaS events, the account takeover detections and their alert routing, a short runbook for tuning them, and a record of what was tested. The detection review then checks each rule against replayed or test events from your tenants, and a retest follows the fixes so you can see which findings closed. Ask the vendor or DeployOpen to show exactly which fields the detections depend on, and confirm the audit log retention period each provider gives you, since your own retention policy has to sit on top of it. Optional retainers cover ongoing tuning, new log sources, and upgrades to the OpenSearch release line, which is maintained under the project's published schedule.

