Consuming the OpenCTI live stream in your own tools

Teams that need OpenCTI changes in their SIEM, ticketing or data systems can read the live stream over SSE, resume after restarts and filter by definition. This page covers the design, setup and operating trade-offs.

On this page

When an OpenCTI live stream consumer makes sense

A live stream consumer makes sense when your security team needs indicator and report changes in its own systems as they happen, rather than discovering them on a polling schedule. If a SIEM, SOAR platform, blocklist service or ticketing system must react to new or updated OpenCTI objects, subscribing to the platform's event stream is the better fit. Polling is still the right choice for periodic reporting, one-off bulk exports and ad hoc lookups, where a scheduled query answers the question with less to operate.

OpenCTI exposes its changes over a Server-Sent Events (SSE) stream tied to a live stream definition, so your consumer holds one long-lived HTTP connection and receives create, update and delete events as they are written. Stream connectors are the official pattern for pushing that data out to other tools, and they run as separate processes you deploy, monitor and upgrade. Before building your own consumer, confirm with your team whether an existing stream connector already covers your target system, since that changes the ownership and maintenance burden considerably. Ask whether the consumer's events need to be replayed after an outage, because that requirement drives the resume design covered later on this page.

Plan for the cost of ownership before you commit. A custom consumer is code your team owns for its full lifetime: it must track changes in the event payloads across OpenCTI releases, handle reconnects, and be tested against the version you run. Because OpenCTI publishes releases on a frequent cadence, confirm how Filigran documents stream payload stability for your chosen version, and plan a regression check into every upgrade. If your need is only a nightly summary of new indicators, a scheduled GraphQL query is usually cheaper to run and easier to audit, and it avoids holding a persistent connection open to the platform.

Live stream options and when each fits

This table compares the ways to move OpenCTI changes into your own systems: reading the SSE stream directly, running a stream connector, using a Filigran-published connector, or polling the GraphQL API on a schedule. Treat latency as a figure to confirm in your own environment, and read state handling as the work your team owns after a restart. The main takeaway is that the live stream suits near-real-time push only if your team can own event ID tracking and replay.

OptionLatency to confirmState handling burdenBest fit
Direct SSE consumer in your own serviceMeasure end to end in your environment, from event write to your system's updateHigh: store the last processed event ID, resume after restarts, handle duplicates and reconnectsIn-house systems that need change-driven updates and can own a long-running consumer
Custom stream connector to an external systemConfirm with a test stream and your target system's write pathMedium to high: the connector must track its position and handle failed deliveriesNiche or internal tools that need a dedicated push path packaged as a connector
Filigran-published stream connectorConfirm against the connector's documentation and your loadLower for your team, but confirm how the connector records its position and recoversCommon tools that already have a published connector in the OpenCTI connectors repository
Scheduled GraphQL API pollingSet by your polling interval, plus query time on your platformLow to medium: store a watermark or cursor and handle pagination and missed windowsBatch reporting, reconciliation and systems that tolerate delay between runs
Stream for changes, API for backfillStream latency for new changes, polling interval for gaps you detectHigh: combines both position tracking and reconciliation logicSystems that must not miss changes after outages and can run a periodic check
Live stream definitions for filteringDepends on the stream and filter you define; confirm with a testMedium: each definition needs a documented owner and a test planTeams that want only specific entity types or changes sent to a consumer

Filtering with live stream definitions

A live stream definition that targets one entity type is the simplest filter to reason about. Use it when a consumer acts on one kind of object, such as indicators that feed a blocklist or malware records that open tickets. The consumer then receives create, update and delete events only for that type, which keeps its parsing logic small and its load predictable.

  • Pick one type per consumer: Give each in-house system its own definition so a change in one pipeline does not affect another.
  • Match the consumer's actions: A blocklist sync needs indicator events, not report or note events, so exclude everything else.
  • Test with real change volume: Create a sample change in the test platform and confirm that only the intended type arrives.
  • Separate creation from update handling: Confirm which event types your consumer must handle before it reaches production.
  • Document the entity type in the consumer's config: A later change to the definition should be visible to the team that owns the consumer.

Before going live, confirm the entity type options and event type options available in the live stream definition screen of your running OpenCTI version, since the list of filterable fields can change between releases.

Setting up a stream consumer, step by step

This sequence takes a stream consumer from a version check to a monitored production service that resumes cleanly after restarts without writing duplicates downstream. Each step ends with a check so the team knows the previous step holds before it builds on it.

  1. Confirm platform version and access model

    Record the exact OpenCTI version your platform runs, including whether it is a regular release or an LTS line, because the stream behavior and the API you build against should match that version. Confirm where the consumer will run, which network path it will use to reach the platform, and whether the platform sits behind a proxy or load balancer that could affect long-lived connections. Ask your platform owner to confirm the version in the administration settings and to confirm that the consumer's network route is allowed. Done when the version, endpoint and network path are written down in the design record.

  2. Create a dedicated service account with minimal rights

    Create a separate service account for the consumer rather than reusing a person's login or an administrator token. Grant it only the read access that the events it needs to forward require, and confirm that the marking and organization scope of the account covers exactly the data the downstream system is allowed to hold. If your platform uses Enterprise Edition features for access control, confirm with your platform owner which of them apply before you configure the account. Done when a test call made with the account returns the expected entities and is refused for data outside its scope.

  3. Define the live stream filter

    Create a live stream definition in the platform that selects only the entity types, labels or markings the downstream system needs, and keep the filter narrow so the consumer does not carry traffic it will discard. Record the stream identifier, because the consumer will use it in its connection URL. Review the filter with the team that owns the downstream system so that a change in what they need is a filter change, not a code change. Done when the stream appears in the platform, a sample of events matches the filter, and no out-of-scope event appears in the sample.

  4. Build the consumer with a stored last event ID

    Write the consumer to open the event stream with the service account, read each event, and save the ID of the last event it has processed only after the downstream write succeeds. On restart, the consumer should read the saved ID and pass it back to the stream so it resumes from that point. Keep the saved position in durable storage that survives a process restart, and log the ID alongside each write so operators can trace the position. Done when a test run shows the saved ID advancing after each successful write and not advancing when the write fails.

  5. Test reconnect and resume after a forced restart

    Run the consumer against a test platform, stop it partway through a batch of changes, and start it again. Verify that it resumes from the saved event ID and does not skip events that were generated while it was down. Also test a dropped network connection and a downstream outage, since those are the failures most likely in production. Done when every event created during the test window appears exactly once in the downstream system after the restart.

  6. Verify that a resumed consumer writes no duplicates

    Compare the downstream records with the platform's events after a forced restart and check for duplicate writes. Make the downstream write idempotent by using the event's entity identifier or a stored event key as the upsert key, so a replayed event updates the same record instead of creating a second one. Confirm this with a deliberate replay of the last few events. Done when the replay produces no new records and the record counts match the expected totals.

  7. Deploy with monitoring and alerting

    Deploy the consumer to the environment you control with a process supervisor or container restart policy, and add monitoring for connection state, the saved event position, the lag between the latest platform event and the last processed event, and downstream write errors. Set alerts that reach the team that owns the consumer, and document the runbook for a stuck position or an expired token. Ask your platform owner what the platform's own monitoring exposes so you do not duplicate it. Done when an induced failure triggers the alert and the consumer recovers without manual data repair.

How the stream reaches your system

The flow starts in the OpenCTI platform, where changes to entities are published as events. A live stream definition filters those events so only the relevant ones leave the platform. Your consumer reads the filtered events over SSE, records the last event ID in its own state store, and only then writes to the in-house target. The trust boundary sits where the consumer crosses from OpenCTI's network into yours, so check which side holds the stream credentials and what the consumer can reach.

Filtered OpenCTI events cross the trust boundary into the consumer, which tracks its own position.

Resuming from event IDs after restarts

A live stream consumer is only as reliable as its restart behavior. The four risks below are the ones that most often turn a working prototype into a silent data problem, and each has a check you can run before the consumer goes into production. Together they decide whether your in-house systems stay in step with OpenCTI after a crash, a deploy or a long outage.

Losing the stored event ID

The consumer must persist the last event ID it has fully processed, usually in a durable store outside the process. If the ID lives only in memory or on an ephemeral container disk, every restart falls back to the start of the stream or to the live tail. Confirm where the checkpoint is written, that it is written only after the downstream write succeeds, and that a restart in the middle of a batch does not advance it.

Replaying events and creating duplicates

Resuming from an older ID re-delivers events the target has already seen. If the target creates a new ticket, alert or record for every event it receives, a single restart can multiply your workload. Make target writes idempotent by keying each write on the OpenCTI entity identifier and event type, so a replayed event updates the existing record instead of adding one.

Gaps when the consumer is down

Stream events are kept for a limited period. If the consumer stays offline longer than that window, the events it missed may no longer be available, and it will resume with a silent hole in its data. Before you rely on resume, confirm how long events remain available for replay on your OpenCTI version and set alerts on consumer downtime. Plan a reconciliation query against the GraphQL API to recover entities changed during a long outage.

Stopping on errors instead of skipping

Not every failure should advance the checkpoint. A transient network error or a target outage should pause the consumer and retry the same event, while a malformed or unexpected payload may need to be quarantined with its ID for review. Define which error classes stop the stream and which are dead-lettered, and test both paths. Skipping a failed event silently is the most common cause of permanent inconsistency between systems.

Questions teams ask before building a live stream consumer

How much does it cost to build an OpenCTI live stream consumer?

No price figure applies here until the scope is written, so the cost is best understood by component. The main one-time cost is engineering time: building the consumer, integrating it with each target system, and testing restarts and failures. Recurring costs include maintaining the consumer after OpenCTI upgrades and target system changes, running the consumer process, and any licensing for Enterprise Edition features. DeployOpen agrees fixed scope, deliverables and timelines in writing before work starts. Ask for a quote that itemizes the consumer build, each target integration, resume and test work, handover documentation and any ongoing support retainer.

What drives the effort of a live stream consumer?

Effort rises with how much the consumer has to do and how many systems it touches. The main drivers are:

  • Consumer complexity, such as filtering rules, data mapping, ordering requirements and deduplication
  • The number of target systems and how well each one's API is documented
  • Resume logic after restarts, including durable storage of the last processed event ID
  • Testing against failure cases, such as target outages, malformed events and replayed messages
  • Whether the features you rely on need Enterprise Edition, which can add licensing and access design work

A single consumer pushing a narrow set of events into one system is a small job. Several consumers feeding different teams, each with its own filters and failure handling, is a much larger one.

How long does it take to build and confirm a live stream consumer?

The duration depends on scope, and no reliable figure applies until the target systems, event types and test environment are known. Confirm the following during scoping: which target APIs are available and how they authenticate, how many event types and filter definitions the consumer must handle, whether a non-production OpenCTI instance is available for testing, and what approval steps apply before anything reaches production. Ask for a timeline that lists the milestones for build, resume testing, failure testing and handover. Fixed-scope engagements agree those milestones in writing before work starts, so the timeline should match the written scope.

Does consuming the OpenCTI live stream require Enterprise Edition?

Confirm this for your version before you design around it. OpenCTI Community Edition is licensed under Apache License 2.0, and Enterprise Edition is under a proprietary license. Enterprise Edition adds features such as activity monitoring and audit logs, organization-based data segregation and SSO configuration. Since 7.260224.0, defining and using authentication strategies, including SSO, is an Enterprise Edition feature. Check the Enterprise Edition documentation against the features your consumer and its access model depend on, especially the service account and any audit or segregation controls. If your consumer relies on an Enterprise feature, that licensing belongs in the cost quote from the start.

What does our team need to provide for a live stream consumer project?

The work needs three kinds of input. First, platform admin access to OpenCTI, enough to create a service account, review live stream definitions and reach a test instance. Second, a target system owner who can supply API credentials, confirm the data fields the target accepts and approve the mapping. Third, an engineer who will own the consumer after handover, because it has to be deployed, monitored and updated. Also agree who receives alerts when the consumer stops or falls behind. Missing any of these usually shows up as delays during testing, so name the people and their time commitments in the scope before work begins.

Can our own engineers build an OpenCTI live stream consumer?

Yes, if the team has a working knowledge of Python or another language suited to the target system, can work with the STIX data model that OpenCTI uses, and has time to handle failure cases. The hardest parts are usually not the streaming call itself. They are durable resume after restarts, handling duplicate or out-of-order events, keeping filters aligned with what the target expects, and testing all of it. A partner is worth considering when the deadline is fixed, several target systems are involved, or no one on the team can own the consumer after handover. DeployOpen plans, implements, tests and documents these integrations inside your own infrastructure.

How do OpenCTI upgrades affect a live stream consumer?

Each upgrade can change the stream, the filters or the event shapes your consumer depends on, so every upgrade needs a consumer retest. Regular releases use the x.YYMMDD.z format and ship from daily to weekly. LTS releases appear every 6 months, carry the x.YYMMDD.z-lts.n format, and are supported for 1 year, which gives a 6-month overlap between LTS versions. LTS releases need a specific LTS license key, and after a one-month stabilization they receive only critical bug and security fixes. Pin the version your consumer was tested against, test the next release in a non-production instance, and check event IDs and filter definitions after each change. The OpenCTI product life cycle documentation sets out the release channels.

What happens to events if the live stream consumer stops?

Events are safe only if the consumer records its position durably and can resume from that position after a restart. Store the last processed event ID outside the consumer process, update it only after the target system confirms the write, and decide how the consumer behaves when the target is unavailable. Confirm two things with the platform owner: how long OpenCTI keeps events a consumer may need to replay, and how the consumer should recover if the stored ID falls outside that window. Test these cases on purpose by stopping the consumer, taking the target offline and restarting after a long gap, then compare the target's data with OpenCTI's before go-live.

Limits to confirm in your environment

Live stream behavior is set by the OpenCTI release you run, not by this page. The cards below list the limits your consumer depends on, so you can confirm each one against Filigran documentation or a test instance before you write retry, replay or filtering logic.

Stream retention and replay window

Confirm how long the stream keeps events and how far back a consumer can resume. If your consumer restarts after a long outage and the event ID it stored has aged out, it cannot replay the gap. Decide whether that gap triggers a full resync through the GraphQL API or a manual reconciliation. Test with a consumer that is stopped for longer than your planned outage window and record what happens to the last stored event ID.

Deployment overview

Reconnect and heartbeat behavior

Confirm how the server signals idle connections, how often heartbeats arrive, and what the client must do to reconnect. Your proxies and load balancers may close idle connections before the platform does, so check their timeouts against the heartbeat interval. Also confirm whether a reconnect requires the last event ID header so that no events are skipped or duplicated.

Filter capabilities in the running release

Confirm which fields and operators live stream definitions accept in the release you run. Filters that work in one release may be unavailable or behave differently in another, so keep a saved test filter per release and rerun it after each upgrade. Do not assume that a filter built in the user interface maps one to one onto what your consumer receives.

Rate and volume limits

Confirm whether the platform throttles stream delivery or caps the number of concurrent consumers. Measure event volume on a copy of your production data during a busy import, since enrichment and bulk ingestion can produce bursts. Your consumer should apply backpressure and write events to a durable queue so that a slow downstream system does not stall the stream.

License dependency of stream features

Confirm whether the stream features you need are part of the Community Edition or require the Enterprise Edition license. The Enterprise Edition documentation lists the features it adds, and the authentication page states that SSO is Enterprise only from a specific release. Ask Filigran in writing which stream capabilities your license covers before you design the consumer around them.

Enterprise Edition docs

Release-specific behavior

Confirm live stream behavior against the release you deploy, and recheck it on every upgrade. OpenCTI ships regular releases from daily to weekly and LTS lines every 6 months, so a behavior you verified on one release can change on the next. Read the release notes for stream, filter and API changes, and rerun your replay and reconnect tests on a staging instance before moving a new version into production.

OpenCTI releases

Operating a stream consumer after go-live

The consumer needs its own monitoring from the first day in production, because a live stream that stops quietly is harder to notice than a failed import. Track two signals: the lag between the newest event OpenCTI has published and the last event ID your consumer has durably stored, and the number of reconnects over time. A rising reconnect count usually points to network timeouts, proxy idle limits or authentication token expiry, while steady lag with no reconnects points to slow downstream writes in your own system. Alert on a stalled event ID, meaning no advance for longer than your normal event rate would explain, and confirm the threshold against the event volume you observe in a quiet period rather than a number copied from another deployment.

Platform upgrades are the most likely cause of silent breakage, because the event payload is shaped by the OpenCTI version that emits it. Before each upgrade, capture a sample of stream events from the current version, store them as fixtures, and run your parser and downstream mappings against a test instance on the target version. Read the release notes for changes to event types, entity fields and marking handling, and treat any unexpected field as a parser change to review, not as noise to ignore. Your consumer should fail loudly on payloads it cannot parse, and it should keep the last committed event ID so a failed upgrade can be rolled back without losing position.

Tie the consumer's version plan to the release life cycle that your platform runs. Regular releases ship when ready, and LTS releases arrive every six months, each supported for one year with a six-month overlap, according to the OpenCTI product life cycle documentation. If your team runs an LTS line, plan consumer changes to land within the overlap window so you are never testing against a version that has moved past support. Confirm the current dates, license key requirements and stabilization schedule for your line with Filigran before you set a calendar, and record the OpenCTI version your consumer was last validated against in your runbook.

How DeployOpen scopes and delivers stream integrations

DeployOpen plans, builds, tests and hands over live stream consumers inside your own infrastructure, so your team can see how events reach your systems. The work starts with a written scope that fixes the event types, filters, targets and acceptance tests before any code is written.

How we scope

  • Inventory which OpenCTI object types and event operations your downstream systems need, such as creates, updates and deletes.
  • Define the live stream definitions, filters and markings the consumer will read, and who approves them.
  • Agree in writing where the consumer runs, which network paths it uses, and how its checkpoint is stored and recovered.

How we build

  • Build the SSE consumer with reconnection handling and resume from the last stored event ID after restarts.
  • Map each event to the target system's data model, with idempotent writes so replayed events do not create duplicates.
  • Test filter behavior, restart recovery and load against a staging OpenCTI platform before anything touches production.

How we hand over

  • Deliver source code, configuration files and deployment manifests stored in your version control system.
  • Document checkpoint storage, filter definitions, failure modes, alert conditions and the steps for replaying missed events.
  • Walk your operations and security teams through runbooks and the acceptance test results before sign-off.

How we support

  • Engagements are fixed-scope, and ongoing support, upgrades and continuous testing are available as a retainer.
  • Retesting after OpenCTI upgrades helps confirm that stream event formats and filters still behave as documented.
  • Ask any partner to confirm how it handles OpenCTI release changes and which versions it tests against.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.