Updated on 2025-08-07 GMT+08:00

Routing to OBS

Configure OBS as the event target when creating an event stream.

Prerequisites

  • You have enabled OBS as the event target.
  • Select DMS for RocketMQ as the event source.

Procedure

  1. Log in to the EG console.
  2. In the navigation pane, choose Event Streams > Serverless Event Streams.
  3. Click Create Serverless Event Stream, click the icon in the upper left corner, enter the event stream name and description, and click OK.
  4. Configure the event source by referring to Distributed Message Service (DMS) for Kafka.
  5. Configure the event target.

    1. Click Event Target.
    2. Select Object Storage Service (OBS) as the target.
    3. Set event target parameters.
      Table 1 OBS parameters

      Parameter

      Description

      AK

      Enter an AK.

      NOTE:

      For details about how to obtain an AK/SK, see How Do I Obtain an Access Key (AK/SK)?

      SK

      Enter an SK.

      Bucket

      Select or enter an OBS bucket name.

      Dumping Directory

      Enter a directory

      of an object in the bucket. Use slashes (/) to separate different directories.

      Time Directory Format

      Select a format.

      NOTE:

      Data is saved to a hierarchical time directory in the dumping directory.

      For example, if the time directory is accurate to day, the directory will be in the format of bucket name/file directory/year/month/day.

      Rule

      Transform Type

      EG transforms CloudEvents-compliant events for targets. The following three types are supported:
      • Pass-through: Route the complete structure of native events directly to the target.
      • Variables: Route only parameters extracted from events with JSONPath to the target.
      • Constants: Route only constants in events to the target as a trigger.

      For more information about the transform types, see Event Content Transformation.

      Message Push

      Batch Push

      Specify whether to enable batch push to aggregate multiple events.

      Messages

      Interval (s)

      The maximum number of aggregated records that can be pushed at a time. Default: 100. Range: 1–10,000. This parameter is available only when Batch Push is enabled.

      The interval between batch pushes, in seconds. Default: 1. Range: 0–15. This parameter is available only when Batch Push is enabled.