Skip to main content
Apply Tero policies to logs passing through your OpenTelemetry Collector. Choose the option that fits your environment.
Run the Tero Collector, a pre-built OpenTelemetry Collector distribution with the Policy Processor included.

How it works

The Tero Collector is a standard OTel Collector with our Policy Processor baked in. Deploy it like any collector, configure policies, and it filters logs before they reach your backend.The Policy Processor supports three actions:
  • Drop: Remove logs matching patterns
  • Keep: Retain only logs matching patterns
  • Sample: Sample at configurable rates
Policies hot-reload without restarting the collector.

Included components

The Tero Collector includes standard OTel components:

Prerequisites

  • Docker or Kubernetes cluster
  • Tero account

Deploy

1

Deploy the collector

Create a collector config:
config.yaml
Run the collector:
2

Verify

Check the container is running:
Check logs for policy sync:

Policy providers

Configure where the collector loads policies from.

File provider

Load from a local file. Use this for static policies or GitOps workflows.

HTTP provider

Fetch from a remote endpoint. Choose this for dynamic policies managed via Tero.

Example policies

Policies use JSON format. Here are common patterns:
See Policy Reference for all filtering options.

Troubleshooting

Collector won’t start Check the config syntax:
Policies not loading Verify the policy file path is correct and the file is valid JSON. Check collector logs for policy-related errors. CGO build errors (Policy Processor) Ensure Hyperscan/Vectorscan is installed and CGO_ENABLED=1 is set. On macOS, you may need to set PKG_CONFIG_PATH: