When to use it
Set the alarms below before production traffic, then use this page when an alarm fires.What you get
Log lines worth knowing:
Alarms
Example (ECS, the stack’s log groups are
/<NamePrefix>/detect, /<NamePrefix>/rehydrate and /<NamePrefix>/lattice):
"on_erase hook failed" on /tenet-pii/detect. Before you rely on a filter, prove it with aws logs test-metric-filter against a line from this page.
Create the recommended CloudWatch metric filters and alarms for a deployment.
Usage records
The detect service countsPOST /detect, /redact and /deidentify requests that returned < 400, by document length in characters, and counts the entity labels in each response’s findings. It reads len(text) and the labels, and drops both bodies — values, spans and offsets are never read.
documents and tail_increments count the hour’s documents by length; findings counts entity labels.
- Where: stdout (→ your logs) by default, or JSONL at
TENET_TELEMETRY_PATH(must be under/tmpon the read-only filesystem). Always written locally. - When: each process writes completed hours about once a minute, and a cumulative snapshot of its current hour on shutdown. Records are per process and each is an absolute snapshot of its hour — take the latest snapshot per process and hour, then sum across replicas.
- Sent to Tenet only if you opt in (CloudFormation
EnableUsageTelemetryEgress, Terraformenable_usage_telemetry_egress, Helmtelemetry.egress.enabled): the same records, unchanged, except thatdeployment_idcarries:<replica id>in the HTTP body. Undeliverable records are kept in memory for up to 48 hours, then dropped (dropped N usage records older than 48h). Setup. - For auditors: the schema is an allowlist of exactly these keys; every record is checked against it before it’s written. Hand over the stdout lines (CloudWatch Logs Insights:
filter schema = "tenet.pii.usage.v1") as evidence of volume with no payload-derived field.
Sending usage records to Tenet
Opt in to see each deployment’s hourly volume and entity mix on the PII page of Tenet Platform. Detection and AWS Marketplace billing don’t depend on it, and records keep being written locally either way.1
Create a Tenet Platform API key
Sign in to Tenet Platform, open API Keys and click Generate. Copy the
sk_tenet_… key — it’s shown once. Records land in the Tenet account that owns the key, so generate it in the account whose PII page should show this deployment. Only the account owner sees API Keys. Sending records uses no credits.2
Store the key
ECS (CloudFormation, Terraform): a Secrets Manager secret in the account and Region of the deployment, as a plain string:If the secret uses a customer-managed KMS key, allow the detect execution role
kms:Decrypt with it.EKS (Helm): a Secret in the release namespace, with no trailing newline (or sync it from Secrets Manager with External Secrets Operator):3
Turn on egress
CloudFormation:
EnableUsageTelemetryEgress=true, UsageTelemetryApiKeySecretArn=<secret ARN>, UsageTelemetryNatSubnetId=<public subnet id>. Terraform: enable_usage_telemetry_egress = true, usage_telemetry_api_key_secret_arn, usage_telemetry_nat_subnet_id. If the private route tables already have a default route, also set UsageTelemetryCreateDefaultRoute=false / usage_telemetry_create_default_route = false.This adds a NAT gateway and a tcp/443 egress rule on the detect task security group — cost and the egress tradeoff are under CloudFormation parameters. The update replaces the detect tasks so they pick up the key.Helm: telemetry.egress.enabled=true and telemetry.egress.apiKeySecret.name=tenet-usage-telemetry. The detect NetworkPolicy gains one rule, tcp/443 to public addresses, with private and link-local ranges (including IMDS) still closed. The chart can’t create a NAT gateway: your node subnets need a route to one. helm upgrade replaces the detect pods. Helm values.4
Check that records arrive
A few minutes after the first hour with traffic closes, open PII in Tenet Platform and filter Source: Marketplace. Each row is one hour of one
DeploymentId, summed across replicas, so it should equal the sum of that hour’s latest local record per process. Times show in your browser’s time zone.
To stop sending, set
EnableUsageTelemetryEgress=false / enable_usage_telemetry_egress = false, which also removes the NAT gateway, or telemetry.egress.enabled=false on Helm. Revoking the key on API Keys stops delivery too, but the detect service keeps retrying and logging HTTP 401.
Gotchas
- Callers can’t reach
/healthzor/readyz. Lattice answers them with404. Read readiness from ECS, the Lattice target groups (aws vpc-lattice list-targets) or Kubernetes. - A refusal can come from two places. Lattice refuses on its auth policy and logs it in its access log; requests it lets through are re-checked by the service, which logs
refused … : <reason>. Check both. - Caller ARNs are workforce identifiers. Audit lines and Lattice access logs carry role session ARNs, whose session name is often an email address. Treat these logs accordingly.
- Don’t add body logging in a proxy, sidecar or APM agent in front of the services. The logs are value-free by design; a body logger breaks that.