08 Jul 2026
01:20 PM
- last edited on
09 Jul 2026
07:53 AM
by
MaciejNeumann
What is the best approach to direct my logs to the right bucket, making use of a openpipeline?
Can anybody provide me more info/details how to do this?
Thanks a lot
09 Jul 2026 08:11 AM
There are two ways to control which Grail bucket your logs land in:
Option 1 — Bucket assignment processor in a pipeline (recommended)
In OpenPipeline, each pipeline has a dedicated Storage stage that runs after all processing. You configure a bucket assignment processor there:
matchesPhrase(content, "my-app") or check an attribute like k8s.namespace.name == "prod") to select which records go where.Rules are evaluated top-to-bottom — first match wins.
Option 2 — Send dt.system.bucket at ingest time
If you control the sending side (e.g., a custom log shipper or the Logs Ingest API), you can set the dt.system.bucket attribute directly on each log record before sending. OpenPipeline will honour it.
Documentation for OpenPipeline is here:
https://docs.dynatrace.com/docs/platform/openpipeline
Featured Posts