Recipes
A recipe is a fix that field engineers make by hand again and again,
written down once: parse JSON log bodies, set service.name on logs that
have none, collapse build-suffixed service names, drop health check spans.
Each recipe has a detector, a template, a shape preview and a verification
check. Recipes ship in Skep’s code, are unit tested, and never call a
model, so the same match always renders the same change.
Each recipe’s detector runs over what Skep already observes: shapes,
attribute keys, map body keys, masked log templates and log health counts.
When it finds the pattern for a service, the match becomes a
finding in the shape
family (or pipeline for privacy) with one recipe remediation. So a
match has evidence, impact, an owner and a lifecycle like any finding, and
it resolves when the detector stops matching.
Skep infers the recipe’s parameters from the evidence: which key holds the service name, which fields to rename, which span names are health checks. Recipes do not overlap on one shape. A recipe match that also fixes other findings on the same service leads their root-cause group.
Review a recipe
Section titled “Review a recipe”Open a recipe from Recommendations. The recipe flow has four steps:
- Evidence: the observed shapes and counts that matched, and why it matters.
- Tailor: the inferred parameters, each editable and checked as you type.
- Preview: the shape before and after, as column lists: columns added, renamed, promoted and dropped, plus volume changes, notes on what the change breaks, and the rendered rules. The preview is built from keys and counts. No values leave your environment for it.
- Roll out: the planned stages, the autopilot setting that applies, and Start.
Agents do the same with preview_recipe and apply_recipe.
Application and staged rollout
Section titled “Application and staged rollout”Applying a match creates an application (shown as a rollout under Recommendations, In progress). It has one stage per environment where the same recipe matches the same service, non-production first.
Each stage:
- creates the recipe’s pipeline rules in the fleets that first saw the data (reusing identical rules already there);
- drafts a revision for each fleet and deploys it with the fleet deploy rules (see Collectors and fleets);
- waits in
verifyinguntil its verification gate passes.
The gate passes when the rules are active, no collector rejects the configuration, and the matched pattern is no longer seen. Skep checks it after 10 minutes. The stage fails at 90 minutes, when a collector fails the configuration, or when the stage is not deployed within a day. On a git fleet the stage waits for its pull request to merge, however long the review takes, and fails only if the pull request is closed without merging. A later stage starts only after earlier stages pass, started by a person or by autopilot.
Stage statuses are pending, awaiting_approval, deploying,
verifying, passed, failed, skipped and rolled_back. A stage
started by an agent shows awaiting_approval until a person with
fleet:deploy approves its deployment.
Pause and roll back
Section titled “Pause and roll back”- Pause stops a planned or running rollout from advancing.
- Roll back a stage to withdraw its revisions that never deployed,
disable the recipe’s rules in that stage’s fleets, and deploy the result.
The rollback deployment follows the same deploy rules. The application
becomes
rolled_back.
On the Free plan, a stage that passes verification counts as one of your 10 remediations a month. A stage that is rolled back stops counting. See Plans and limits.
Risk levels
Section titled “Risk levels”Every recipe has a risk level, shown in the table below:
- low: changes that add or clean up data and break nothing you query today, such as redaction, linking logs to traces, or setting severity.
- medium: changes that reshape, route or drop data, such as parsing a
body, setting
service.name, or dropping health check spans. - high: changes that rename or move many columns your queries, boards and triggers may use, such as semantic convention renames or normalizing GELF logs.
Autopilot policy is set per risk level.
Autopilot
Section titled “Autopilot”Autopilot lets recipes apply themselves under a policy that a human admin sets per risk level:
| Policy | What happens |
|---|---|
propose (default) |
A person starts every stage. |
auto_nonprod |
Skep applies new matches and runs non-production stages. Production stages wait for a person. |
auto |
Skep runs every stage, each still gated by verification. |
Only human admins can change autopilot. Agents cannot. Every step it takes
is audited as the recipe autopilot, on behalf of the admin who set the
policy. Any policy other than propose needs the Plus plan. See
Autopilot.
The recipes
Section titled “The recipes”Fifteen recipes are built today.
| Recipe | Title | Category | Risk |
|---|---|---|---|
redact-sensitive |
Redact sensitive values | Privacy | low |
parse-json-body |
Parse JSON log bodies | Structure | medium |
promote-map-body |
Promote log body fields to attributes | Structure | high |
gelf-normalize |
Normalize GELF logs | Structure | high |
parse-log-pattern |
Parse an unstructured log pattern | Structure | medium |
service-name-from-field |
Set service.name for logs that have none | Routing | medium |
collapse-build-suffix |
Collapse build suffixes in service.name | Routing | medium |
trace-context-from-fields |
Link logs to traces | Correlation | low |
semconv-rename |
Rename fields to OpenTelemetry conventions | Semantic conventions | high |
severity-from-level |
Set log severity from the level field | Correctness | low |
timestamp-from-field |
Use the event’s own timestamp | Correctness | medium |
timestamp-hygiene |
Repair missing and skewed log timestamps | Correctness | medium |
logs-to-metrics |
Turn metric-shaped logs into metrics | Metrics | medium |
drop-compaction-breaker |
Drop the metric-name attribute | Metrics | medium |
drop-health-checks |
Drop health check spans | Cost | medium |
redact-sensitive and parse-log-pattern are detected by Skep’s own
pipeline checks (SENSITIVE_DATA_IN_PIPELINE and
UNSTRUCTURED_LOG_PATTERN). You apply them through the finding’s pipeline
rule fix rather than a recipe rollout. The other 13 roll out as described
above. Recommendations, Library lists every recipe with what it
detects and what it changes.
Targets
Section titled “Targets”A recipe renders to pipeline rules in a fleet, so it reaches your collectors the way any fleet revision does:
- The Skep distribution over OpAMP. Skep pushes the revision to supervised collectors and tracks each one until it reports the new configuration.
- Your own Collector, or the distribution without the supervisor. The fleet is managed by hand: Skep renders the patched configuration, you install it and choose Confirm applied, and observation verifies it.
- A configuration file in Git. If the fleet’s source is a repository, the stage opens a pull request against that file. See Config sources.
Recipes render to the transform and filter processors, the
signal_to_metrics connector and the interval processor. The Skep
distribution includes all of them. If you run your own Collector build,
include the ones your recipes use.