Skip to main content

Synthetic Data

Realistic synthetic events on demand, for two jobs: a continuous live-looking inbound stream for sales demos, and repeatable data for testing. It is never a load generator: every knob is a ceiling, and the shipped defaults generate nothing until an operator or caller asks.

Every synthetic event has a marker (overridable per request), which the common header lands in _tags, so synthetic data is always identifiable downstream. Where the pack's tags is an object, the event has tags.synthetic: true, found as _tags.synthetic. Where it is an ECS keyword list (meta/elastic/ecs and the beats packs that map ECS tags), the event has the keyword synthetic in that list, found with has(_tags.list.:`Array(Nullable(String))`, 'synthetic'), and extra tags in the request are rejected because a list cannot hold keys (src/dfe_engine/synthetic_data/tags.py).

Schema packs and sampled rows feed two event factories, and a paced stream posts their events to dfe-receiver.

Figure 1. L4 Detail -- Synthetic data paths. dfe-receiver is outside the engine. Up: The DFE control-plane layer.

From the receiver, a synthetic event takes the same path as any other: the loader writes it to ClickHouse.

ModeInputRealism source
Reference packs (default)A dfe-schemas meta schema (meta/syslog, meta/otel/logs, meta/beats/filebeat, the cyber sets)@source: expressions give the event fields, name and type heuristics pick typed generators, and schema-authored synthetic: hints and scenarios hold vocabularies and message templates
LookalikeA sample's parsed rows or raw lines (the sampler's output)The sample's distributions: enums replay weighted, numerics fit the observed range, free text keeps its structure with identity tokens substituted in place

Both draw from a seeded entity pool: a generated host keeps its FQDN, IP, MAC and users across the whole stream, and an identical seed reproduces an identical stream. Lookalike mode never replays sample identities. IPs, MACs, UUIDs, emails and name-identified user and host keys are synthesised, so it doubles as a scrub.

Correlated columns must not draw independently (an sshd message under appname: cron reads as fake). A pack's version entry may declare synthetic.scenarios: one weighted scenario is drawn per event and pins the correlated columns together. The format is in dfe-schemas' meta-schema.md.

API and limits​

GET /synthetic-data/packs, POST /synthetic-data/generate, POST /synthetic-data/lookalike, and the stream task endpoints (POST /synthetic-data/stream, GET /synthetic-data/streams, GET /synthetic-data/streams/{operation}, POST /synthetic-data/streams/{operation}/cancel). Reads need synthetic-data:read. Generating or streaming needs synthetic-data:run, write-grade because it injects data into the pipeline. The full contract is openapi/openapi.json.

SyntheticDataSettings (DFE_ENGINE_SYNTHETIC_DATA_*) caps inline counts, stream rate and stream duration. The autostart settings run a standing sales demo: name the pack refs and a receiver URL (DFE_ENGINE_SYNTHETIC_DATA_AUTOSTART_*, set through the overlay's extraEnv) and the engine keeps those streams running for the pod's lifetime, in bounded segments, retrying when the receiver is away, cancelled at shutdown. Empty, the default, is off.

Receiver auth​

A stream to the deployment's own receiver presents the engine's own ingest credential, dfe-engine-synthetic-data, owned by and binding the primary org on the HTTP listener, so its records land in that org. The own receiver is any name the receiver's Service answers on, read from the app manifest: dfe-receiver, its forms in the engine's namespace, and its mesh listener alias. The host of synthetic_data.autostart_receiver_url and any listed in synthetic_data.allowed_receiver_hosts count too, over http or https. A stream to any other host carries no engine credential, whatever the scheme, so a caller can't have the token sent to a host it picked. The engine mints it on the first such stream once a primary org is named, and again when its token is gone or the primary org changes. It never turns the listener's auth on, so on a listener running mode: none its token is ignored and records land under the receiver's default_org_id, your org's first tenant id. The receiver reads a new token within 60 seconds, and a stream retries a 401 for 90 seconds after a mint. A request whose headers carry its own Authorization presents that instead. No org can create a credential with this id (409 credential_id_taken).