• Home
  • Platform modules
  • Business Analytics in Dynatrace
  • Business event bucket assignment

Business event bucket assignment

Business events can be stored in buckets that have three different retention periods. You create rules with matcher-specific DQL queries to assign matching business events to a bucket. Retention period options are 3 years, 1 year, or 35 days.

Choose the retention period

  1. In the Dynatrace menu, go to Settings > Business Analytics > Ingest Pipeline > Bucket assignment.
  2. In the Business event bucket assignment, select Add rule and name your rule.
  3. In the Bucket field, choose your retention period (3 years, 1 year, or 35 days).
  4. Add a Matcher to your rule by typing or pasting your matcher-specific DQL query. Events that match your rule will be assigned to your selected bucket. If no rules match, events will be assigned to the default bucket.
  5. Select Save changes.

Example

If you need to store your data for three years, for example, for tax purposes:

  1. In the Dynatrace menu, go to Settings > Business Analytics > Ingest Pipeline > Bucket assignment.

  2. Select Add rule.

  3. Set Rule name to Bucket_rule.

  4. Set Bucket to Business events (3 years).

  5. Set your rule's Matcher to the following matcher-specific DQL query:

    matchesValue(event.provider, "www.easytrade.com")

    Details
    • If you needed to add only one event type (for example, com.easytrade.buy-assets), the matcher would be:

      dql
      matchesValue(event.type, "com.easytrade.buy-assets")
    • For two event types within the same event provider, the matcher would be:

      dql
      matchesValue(event.type, "com.easytrade.buy-assets") or matchesValue(event.type, "com.easytrade.sell-assets")
    • In this use case, however, you need to take all event types under the EasyTrade event provider, so it is sufficient just to use:

      dql
      matchesValue(event.provider, "www.easytrade.com")