Skip to main content

Okta

Okta's System Log records every sign-in attempt, every multi-factor prompt and its outcome, every administrator action, and every change to a user, group or application assignment: the first place an account takeover shows up, and the record of what the attacker did once inside. Fluency polls Okta's /api/v1/logs endpoint on a schedule and writes the events into a datalake index.

Authentication is an API token created in the Okta Admin Console. The token has no permissions of its own: it carries those of the admin account that created it, so which account owns the token is the one decision you make.

The setup has two halves:

  1. In Okta: signed in as a service account with the Read-Only Administrator role, create a token under Security → API → Tokens, and copy the token value and your org domain.
  2. In Fluency: install the Okta Events application template and paste those two values in.

What arrives​

StreamWhat it holdsLands in
System LogEvery event in the org: sign-ins, multi-factor outcomes, administrator actions, and user, group, application and policy changes, each with actor, client, geolocation, outcome and target.The Okta index
Okta rosterThe org's users, groups and applications.Resources: Okta

The token owner's admin role decides what is collected: an owner who cannot view the System Log produces a token that authenticates and then collects nothing (step 1). Okta serves only the last 90 days, so an outage longer than that is permanent loss (retention).

Endpoints, event ordering, deduplication and a sample event are in Reference.

Before you begin​

The token is created while signed in to the Okta Admin Console as the account that will own it: ideally a dedicated service account holding the Read-Only Administrator role (step 1). Have that account created, and its sign-in to hand, before you start.

Part 1: Okta​

1. Choose the token owner​

An Okta API token has no permission settings. It can read whatever the admin account that created it can read, its access changes whenever that account's role changes, and it is revoked the day that account is deactivated.

Use a dedicated service account with the Read-Only Administrator role, not a person's account. That role can view the System Log, users, groups and applications, which is everything this integration reads, and can edit nothing.

To check the account, sign in as it and open Reports → System Log. If the log loads, a token created by this account can read it.

Okta's own wording, and how this role compares with Okta's recommendation of a super admin account, are in Token permissions.

2. Create the token​

Signed in as that account, go to Security → API in the Okta Admin Console and open the Tokens tab.

Okta Admin Console API page, Tokens tab, with the Create token button and the token list showing status badges

Click Create token.

Create token dialog with a name field and the network-restriction dropdown

  1. In What do you want your token to be named?, enter a name that identifies the consumer, such as fluency-ingext.
  2. Leave API calls made with this token must originate from on Any IP. Fluency polls Okta from its own infrastructure, not from your network, so a token restricted to your network zones is rejected on every request (network restrictions).
  3. Click Create token.

3. Copy the token value​

Shown once

Okta shows the token value on this dialog only, then stores it as a hash. If you lose it, revoke the token and create another.

Token created successfully dialog with the Token Value field and a copy-to-clipboard button

Click the copy to clipboard button beside Token Value, keep the value somewhere safe until the install, then click OK, got it.

4. Collect the org domain​

Click your username in the upper-right corner of the Admin Console; the dropdown shows the org domain. It looks like example.okta.com, example.okta-emea.com or example.oktapreview.com, or it is a custom domain you configured. Record it as a bare host: no https://, no path, no trailing slash.

Not the address bar

The browser's address bar shows the Admin Console host (example-admin.okta.com), which is not the API host: strip -admin. A mistyped domain under okta.com does not fail to connect; it answers E0000011 Invalid token provided, the same error as a bad token.

Optional: verify the token before you leave Okta

Two calls that prove the domain, the token and the owner's role before anything is installed.

DOMAIN="example.okta.com" # step 4: bare host, no https://
TOKEN="00…" # step 3

# The event feed
curl -sS -o /dev/null -w '%{http_code}\n' \
-H "Authorization: SSWS $TOKEN" \
"https://$DOMAIN/api/v1/logs?limit=1"

# The resource roster
curl -sS -o /dev/null -w '%{http_code}\n' \
-H "Authorization: SSWS $TOKEN" \
"https://$DOMAIN/api/v1/users?limit=1"
ResponseWhat it means
200 on bothDomain, token and role are all good.
401 (E0000011 Invalid token provided)A wrong domain or a wrong token. Check step 4 first, then step 3.
403 (E0000006)The token is valid and its owner's role does not cover that endpoint (step 1). On the first call only: the owner cannot view the System Log.
Works from one network and not from anotherThe network restriction from step 2.
429 (E0000047)Something else is using up the org's /api/v1/logs budget (rate limits).
curl: (6) or a TLS errorThe domain has a scheme, a path or a typo in it.

Part 2: Fluency​

Install the Application​

In the navigation rail, open Applications and click Install Application, then choose Okta Events from the Cloud-based Business Softwares category of the Application Catalog.

ParameterNotes
Okta DomainThe org domain from step 4, as a bare host: example.okta.com.
API TokenThe value copied in step 3.
datalakePre-filled managed.
datalake index namePre-filled Okta. Two applications writing to the same index name in the same lake will collide, and the second one aborts.

datalake and datalake index name sit in the collapsed Advanced configuration section below Configuration; click its heading to reach them.

Install Okta Events form with the Application section's Instance name and Display name fields, the Configuration section's Okta Domain and API Token fields, and Advanced configuration expanded to datalake and datalake index name, above Cancel, Dry run and Install Application

Click Dry run first to have the platform check the domain and token before anything is installed, then click Install Application. The Applications page opens with the notice Default is launching., and the new application is listed with a green Running badge once the pipeline is up.

Confirm it is running​

The quickest check is in Okta, which records when each token was last used. Go to Security → API → Tokens:

Okta token list showing ACTIVE, IDLE and EXPIRES IN 4 DAYS status badges with last-used times

  • ACTIVE (green), last used within the past few hours: the collector is polling.
  • IDLE (grey): unused for more than three days. If the application reads Running, its requests are not reaching Okta.
  • EXPIRES IN n DAYS (red): unused for more than three weeks, and about to be revoked for good.

In Fluency, query the Okta index; see Confirm data is arriving. The first collection may reach back only seven days. Where the install also produced an Okta roster on the Resources page (v1: a card on SIEM → Resources), that is the stricter check: a roster is never legitimately empty, where a log on a quiet org can be.

Once the token reads ACTIVE and events are in the Okta index, setup is complete.

Maintenance​

The token has no expiry date, but Okta revokes it permanently after 30 days without use. A polling collector resets that clock on every cycle; an application that is uninstalled or failing for more than a month does not, and reinstalling with the same token then fails. Create a new token and reinstall.

Rotating the token​

Template parameters are read-only after install, so a new token means a new application:

  1. In Okta, create a new token as the same owner account and copy its value (steps 2–3).
  2. In Fluency, uninstall the existing Okta Events application and install it again with the new token. To uninstall, click Uninstall at the top right of the application's details page (v1: the red Uninstall button at the foot of its details panel on Platform → Applications).
  3. Once the replacement is collecting, revoke the old token in Okta: the trash icon under Actions on the Tokens tab, or Revoke token on the token's own page. Revoking is immediate.

Rotate onto a different owner before the current owner's account is deactivated or its admin role is narrowed; either one stops the feed, and nothing in Fluency names the cause.

Removing the integration​

  1. Uninstall the Okta Events application in Fluency, so nothing is polling: the Uninstall button at the top right of its details page (v1: the red Uninstall button at the foot of its details panel on Platform → Applications).
  2. Revoke the token in Security → API → Tokens.
  3. If you created a service account for it, deactivate that too. Deactivating revokes every token the account owns, so check the Tokens tab for others first.

Troubleshooting​

SymptomLikely causeFix
Application installs, index stays empty, E0000011A wrong domain or a wrong token: the error is the same for bothCheck the domain first (step 4), then run the verification calls.
E0000006 on /api/v1/logsThe token owner's admin role cannot view the System LogHave the owner open Reports → System Log; if they cannot see it, neither can the token (step 1).
Worked for months, then stoppedThe token owner was deactivated, or their role was changedCheck the Role column on the Tokens tab, then rotate.
Token shows IDLE while the application shows RunningRequests are not reaching Okta: a network restriction on the token, or a wrong domainSet the token to Any IP (step 2) and recheck the domain.
Token expired although nobody revoked itMore than 30 days without useCreate a new token and reinstall; the old value cannot be reactivated.
Events arrive out of chronological orderExpected: Okta orders a polled feed by commit timeSort on published (event order).
The same event appears twiceExpected at page boundariesDeduplicate on uuid.
Counts do not match the console's System Log viewThe console runs bounded queries; the collector pollsCompare a fixed time window, not a running total.
Nothing older than about three monthsOkta serves only the last 90 daysNot recoverable from Okta (retention).
E0000047, intermittentlyAnother consumer is sharing the org's /api/v1/logs rate limitRate limits.
Events arrive but the Okta roster on Resources is emptyThe owner's role does not cover users and groups, or the install created no resource syncRead-Only Administrator covers both. Check the installed application's Actions list.

Reference​

What the System Log looks like once it lands, and how the collector reads it, for searches and detection rules written against the Okta index. The collector's own settings (its cadence, what the Okta resource group populates and the field names events land under in the lake) are recorded on the install: open the installed application's details and read its Actions list.

Token permissions: why the owner account matters

The Create token dialog asks for a name and a network restriction, and that is all: there is nowhere to say what the token may read. The permissions come from the admin account that created it, and they are not a snapshot. Okta's wording:

API tokens are generated with the permissions of the user that created the token. If a user's permissions change, then so do the token's.

Two consequences follow, and neither announces itself:

  • Narrow the owner's role and the feed stops. A Read-Only Administrator can view the System Log. Group admins and group membership admins may also create tokens but do not have that view: a token owned by one of those authenticates and then returns E0000006 on every log request.
  • Deactivate the owner and the token dies. "If a user account is deactivated in Okta, any API token created by that user account is deprovisioned at the same time." An offboarding takes the integration down on the day the account is disabled, and the failure reads as an authentication error.

Two recommendations are in circulation. Okta's own advice is to optimise for stability:

To avoid service interruptions, generate API tokens using a service account that won't be deactivated and that has super admin permissions that won't change.

The least-privilege answer, which this guide recommends, is a service account with the Read-Only Administrator role. Okta's description is that read-only admins "have view access to most data in the Admin Console" and "are unable to edit data", and the list of what they can view includes System Log, Users, Groups and Apps and app instances. Rapid7's Okta integration asks for the same thing: "Ensure you have Okta administrator privileges with 'Read-Only' permissions or higher." The two positions are not really in conflict: Okta's concern is that the role should not change, and a read-only service account satisfies both as long as nobody edits it later.

The owner's role carries the whole permission model because of the token scheme. An API token is sent as a single header on every request (Authorization: SSWS 00…), with no token endpoint and no refresh. SSWS is Okta's proprietary scheme, and Okta "strongly recommends using the OAuth 2.0 authentication scheme with Okta APIs rather than relying on the Okta-propriety SSWS API token scheme", because "OAuth 2.0 and OIDC access tokens provide fine-grain control over the bearer's actions on specific endpoints." The Okta Events template takes an API token and nothing else; the scoped alternative for this endpoint would be the okta.logs.read OAuth scope, and SSWS has no equivalent.

Okta records the creation and revocation of a token in its own System Log, with the message API token created or API token revoked.

Token lifetime and network restrictions

Lifetime. Okta API tokens have no fixed expiry date. They have an inactivity timer instead:

API tokens are valid for 30 days and automatically renew every time they're used with an API request. When a token has been inactive for more than 30 days, it's revoked and can't be used again.

The window is "fixed and can't be changed for your org." The Tokens tab warns before it closes: a token turns red and reads EXPIRES IN n DAYS once it is within seven days of the deadline. "API tokens are always revocable" by hand as well.

Network restrictions. The API calls made with this token must originate from field on the Create token dialog offers Any IP, In any network zone defined in Okta, In any of the following zones, Not in any network zone defined in Okta, and Not in any of the following zones. A token pinned to your corporate zones stays valid and is rejected on every request from Fluency, so the failure reads as a credential problem rather than a network one. Restrict the token only if you know the collector's egress addresses and have built an Okta zone for them; then "You can only use IP-based zones with SSWS tokens", and "You can't use blocklist zones with SSWS tokens." The setting is editable afterwards: open the token and use Edit in its Security section, where the same dropdown is labelled Token can be used from.

Streams, endpoint and query parameters
StreamEndpointContents
System LogGET /api/v1/logsEvery event in the org: user.session.start, user.authentication.*, user.lifecycle.*, application.lifecycle.*, application.user_membership.*, group.user_membership.*, policy.* and security.request.blocked, each with actor, client, geolocation, outcome and target.
Resource rosterOkta user, group and application objectsThe template declares an Okta resource group, so the install produces an Okta roster on the Resources page (v1: a card on SIEM → Resources) alongside the event index.

GET /api/v1/logs is called on https://{yourOktaDomain}. Its parameters:

ParameterDefaultNotes
since7 days prior to untilISO 8601. Mutually exclusive with after.
untilcurrent timeSetting it makes the request bounded.
after-Opaque page token from the next link.
filter-SCIM expression: eventType eq "…", actor.id eq "…", target.id eq "…".
q-Keyword search. Max 40 characters per keyword, 10 keywords per query.
limit1000–1000.
sortOrderASCENDINGASCENDING or DESCENDING.

Individual queries time out at 30 seconds.

Event order and duplicates

Fluency reads the System Log as what Okta calls a polling request, the mode Okta documents for "ingesting System Log data into an external SIEM system". It returns "every event that occurs in your org", and pays for that with ordering:

The returned events are ordered by the internal persistence time, which reflects when an event is actually committed to the log, and not necessarily the timestamp when the event occurred. … They may return events out of order according to the published field.

So events can land in the lake in a different order than they happened, and a detection that assumes arrival order is chronological will occasionally be wrong. Sort on published, which is Okta's own event timestamp, rather than on ingest order. Deduplicate on uuid, which Okta defines as the "unique identifier for an individual event".

Polling requestBounded request
Parametersuntil unspecified, sortOrder=ASCENDINGboth since and until set
Orderinginternal persistence time; may be out of order by publishedguaranteed in order by published
Pagesinfinite: next link always present, "even if there are no new events"finite: last page has no next link
Completeness"every event that occurs in your org""Not all events for the specified time range may be present. Some events may be delayed."
Used forSIEM ingestiondebugging, auditing a fixed window

A bounded request is the wrong tool for collection: it has a finite number of pages, so it cannot follow a live stream. Paging follows the link: …; rel="next" header rather than incrementing timestamps, because Okta warns: "Don't transfer data by manually paginating using since and until, as this may lead to skipped or duplicated events."

The 90-day retention limit

The System Log API returns the last 90 days and no more. There is no parameter that reaches further back and no archive endpoint, so an outage longer than 90 days is permanent loss rather than a delay.

Okta does not reject an out-of-range query:

System Log data older than 90 days isn't returned, in accordance with Okta's Data Retention Policy. Queries that exceed the retention period succeed, but only those results that have a published timestamp within the window are returned.

A backfill request for six months of history therefore returns 200 OK with three months of data in it. Nothing errors, and the gap only shows up later as a period nobody can search. If you need longer retention than 90 days, the lake is where it has to live, which is an argument for installing this before you need it, not after.

A query with no since starts "7 days prior to until", so a first collection may be shorter still.

Rate limits

The /api/v1/logs bucket is org-scoped, and a single credential does not get all of it:

By default, each API token or OAuth 2.0 app can use up to 50% of a bucket's total rate limit. For example, if your org-wide limit for the /api/v1/logs bucket is 120 requests per minute, a single API token can only make 60 requests per minute to that endpoint before being rate-limited.

The share is adjustable per token: open the token and use Edit in its Token rate limits section. Two things make this worth knowing:

  • Another SIEM, an archiver or a script polling the same org is competing for the same bucket, and the ceiling that bites first is the token's half, not the org's whole.
  • Okta's alerting does not cover it. "Alerts (email and dashboard notifications) are triggered based on the consumption of the overall quota assigned to an org-scoped bucket, not the allocated capacity of an individual API token or app." A token can sit at its ceiling indefinitely without anyone being told.

Violations answer E0000047 API call exceeded rate limit due to too many requests. and are recorded in the System Log, where Okta lets you attribute them: the filter transaction.detail.requestApiTokenId eq "00T…" "returns all events that were the result of an action made using the token". The token ID is on the Tokens tab. That is the one query that proves whether the throttling is Fluency's or somebody else's.

Sample event and the fields that matter in a detection

Okta's own example of a user.session.start event, trimmed:

{
"uuid": "dc9fd3c0-598c-11ef-8478-2b7584bf8d5a",
"published": "2024-08-13T15:58:20.353Z",
"eventType": "user.session.start",
"displayMessage": "User login to Okta",
"severity": "INFO",
"legacyEventType": "core.user_auth.login_success",
"actor": {
"id": "00uttidj01jqL21aM1d6",
"type": "User",
"alternateId": "john.doe@example.com",
"displayName": "John Doe"
},
"client": {
"userAgent": { "os": "Mac OS X", "browser": "CHROME" },
"device": "Computer",
"ipAddress": "10.0.0.1",
"geographicalContext": {
"city": "New York", "state": "New York", "country": "United States"
}
},
"outcome": { "result": "SUCCESS", "reason": null },
"securityContext": {
"asNumber": 394089, "asOrg": "ASN 0000", "isp": "google", "isProxy": false
},
"authenticationContext": { "externalSessionId": "idxBager62CSveUkTxvgRtonA" },
"transaction": { "type": "WEB", "id": "ab609228fe84ce59cdcbfa690bgce016" },
"target": [
{ "id": "pfdfdhyjf0HMbkP2e1d7", "type": "AuthenticatorEnrollment", "displayName": "Okta Verify" },
{ "id": "0oatxlef9sQvvqInq5d6", "type": "AppInstance", "displayName": "Okta Admin Console" }
]
}

Four properties are worth knowing when writing detections against this:

  • uuid is the deduplication key and published is the event time. Arrival order is neither.
  • actor carries names inline (alternateId is the login and displayName the human name), so unlike many audit APIs, events are readable without a second lookup.
  • target is an array whose order is not stable. Okta: "When searching the target array, search for a given type rather than the array location. Target types, such as User and AppInstance, for a given eventType are not always in the same array location." Indexing target[0] will work until it does not.
  • severity is one of DEBUG, ERROR, INFO, WARN, and describes the log record rather than the security significance. A successful sign-in from a new country is INFO.

transaction.id groups events produced by one operation, and authenticationContext.externalSessionId groups a user's session: several events per transaction, several transactions per session, and neither relationship is strictly many-to-one.

Okta documentation

Fluency

Other integrations

  • Business Software integrations: the rest of this category
  • Integration Matrix: which ingress method each product uses
  • Cisco Duo: the other multi-factor and access feed, and the same one-install-two-halves shape resolved by permission checkboxes rather than by an admin role
  • Auth0: Okta's customer-identity platform, a separate product with its own tenant log and its own template; a tenant whose administrators sign in at manage.auth0.com is collected there, not here