Running locally
The run command, common flags, and choosing a sink.
Running in Cloud? Tracemill Cloud runs Tests for you and verifies the alerts — see Runs.
Use tracemill run to execute a scenario or job and deliver its events to a sink.
The run command
tracemill run takes a scenario or job, by file path or by content ID, and executes it, resolving state and streaming events until the workload completes.
# A scenario or job from the installed content library
tracemill run scenarios/aws/cloudtrail/delete-trail
# A file of your own
tracemill run ./my-job.yamlContent IDs resolve against the current directory first, then ~/.tracemill/content/, then the library installed by tracemill update, so a local file with the same ID overrides the library's copy.
Checking before you send
Two commands exercise content without delivering anything:
# Schema-check a job, its scenarios and pools, and render it once
tracemill validate --job ./my-job.yaml
# Execute against a simulated clock and print an event-count summary
tracemill run ./my-job.yaml --dry-runChoosing a sink
Events go to stdout by default — JSONL for JSON event types, and the event type's own format for XML and key-value events. Destination flags send them elsewhere: Splunk HEC (--hec-url, --hec-token), S3 (--s3-bucket, with optional CloudTrail layout), raw TCP (--tcp-host, --tcp-port), and generic HTTP (--http-url). Specify at most one destination per run. See Sinks for each one.
When events go to a remote destination, or stdout is redirected, a live statistics overlay is drawn on stderr. Pass --no-stats to turn it off.
Overriding job state
--set key=value overrides a value in a job's state block at invocation time (repeatable). The key must already be declared in the job.
tracemill run ./my-job.yaml --set region=us-west-2 --set attack_count=5See the CLI reference for every command, flag, and environment variable.