Skip to content

Create Forwarding Rule


Prerequisites

Commercial Plan only.

Create

Go to the Data Forwarding > Forwarding Rules > Create page.

After a data forwarding rule is created, the system performs rule validation every 5 minutes.

Step 1: Enter a Rule Name

Enter a name for the current data forwarding rule. Up to 64 characters are supported. The rule name identifies the rule in the rule list, search, deletion confirmation, and audit records.

Step 2: Define the Forwarding Rule

1. Data Source

Includes Logs, Metrics, APM, RUM, LLM, Agent, Events, and Audit Events.

After selecting Metrics, you can use filter conditions to filter the metric data to be forwarded and configure the forwarding destination and data viewing permissions in the following steps. Forwarded content retains timestamps, metric values, and related tags. The specific output format follows the receiving protocol of the forwarding destination.

2. Filter Conditions

Supports custom logical operators between conditions; you can add multiple conditions.

  • All conditions: Only data that matches all filter conditions is forwarded.

  • Any condition: Data is forwarded if any filter condition is met.

Condition operators are listed in the following table:

Condition Operator Match Type
in, not in Exact match; multiple values are supported (comma-separated)

If no filter conditions are added here, all data from the selected data source is forwarded.

Pipeline Processing of Forwarded Data

Central Pipeline scripts affect forwarding condition filtering and the final content.

When creating a script, you can select "Enable Pipeline Processing of Forwarded Data": if selected, data is first processed by the script and then filtered and stored; if not selected, raw data is forwarded directly.

3. Advanced Settings

When Logs is selected as the data source, you can configure the following:

  • Include Extended Fields: By default, only the message field content of logs that meet the conditions is forwarded. If "Include Extended Fields" is selected, the entire log entry that meets the conditions is forwarded.

    • When multiple data forwarding rules are created, rules with Include Extended Fields selected are matched first. If different rules match the same piece of data, the entire log entry is displayed according to the Include Extended Fields logic first.
  • Restrict Indexes: Select a Native Direct-Write Index from the drop-down list. When enabled, only log data from the selected index is forwarded. (❗️After Restrict Indexes is enabled, the performance overhead of this data forwarding rule is significantly reduced.)

Step 3: Select a Forwarding Destination

To provide more comprehensive data forwarding methods, the system provides the following forwarding destinations by type:

Type Forwarding Destination
Built-in Storage Guance: Matched log data is saved to OSS, S3, or OBS object storage on the Guance side
Object Storage AWS S3, Huawei Cloud OBS, Alibaba Cloud OSS, Volcengine TOS, GCP GCS
Analytics Platforms Apache Doris, TiDB Cloud Lake, LogBamboo
Message Queues Kafka
Note
  • GCP GCS is supported only for the Hong Kong (China) and Global sites.

  • When Guance is selected as the data forwarding storage destination, the default minimum log data retention is 180 days. Once the rule is created, it cannot be canceled, and fees are charged daily during the storage period. You can go to Manage > Workspace Settings > Change Data Storage Policy to modify it.

Storage Format

When the selected destination provides this configuration item, select a data storage format as needed. For LogBamboo, the format is not selected here; the underlying Parquet files are generated on the service side. For configuration, see Data Forwarding to LogBamboo.

  • JSON: Text format (❗️When data is forwarded to Guance, only the JSON storage format is supported).

  • Parquet: Columnar storage format.

The Parquet lookback limitation in the following table refers to Parquet copies forwarded directly from the platform to object storage and does not apply to historical searches performed through the LogBamboo query service.

Feature JSON Parquet
Purpose Standard format for immediate consumption and integration Optimized format for low-cost archiving and offline analysis
Data Status Viewable hot data. Forwarded data is stored and displayed normally in the Guance platform (such as Log Explorer), remaining consistently visible on both sides Cold data processed externally. After data forwarding, the original logs are still stored and displayed normally in the Guance platform, but due to format limitations, the Parquet-formatted copy forwarded externally cannot be reloaded or viewed in the Guance interface
Key Scenarios Provides a directly parseable copy for real-time consumption by external systems (such as SIEM or self-built log stores) while maintaining Observability of data in Guance For data that meets the conditions, generates a dedicated copy with lower storage costs for efficient batch analysis by external big data systems
Business Use Downstream business systems can obtain readable logs that are exactly consistent with those in the Guance interface in near real time through APIs, object storage files, or message queues, for:
  • Integrating with security audit (SIEM) platforms.
  • Ingesting into self-built log analysis tools for secondary processing
  • Downstream big data systems can periodically (such as hourly/daily) read Parquet files from object storage in batches, for:
  • Compliance archiving of long-term historical logs.
  • Offline aggregation analysis and report generation across months/years
  • Key Impact Dual-write, dual-side visibility. This incurs additional storage costs but ensures consistency and immediate availability of data within the internal and external ecosystems of Guance Format-specific with lookback limitations. The generated Parquet copy is optimized for external analysis and is not suitable for re-ingestion or viewing, so the copy itself cannot be viewed in Guance. However, the Observability of the original logs in Guance is not affected in any way

    Encrypted Storage

    This option applies only to the JSON or Parquet storage formats of AWS S3, Huawei Cloud OBS, Alibaba Cloud OSS, Volcengine TOS, and GCP GCS.

    LogBamboo does not provide this switch. For configuration, see Data Forwarding to LogBamboo.

    When enabled, files forwarded to object storage are stored encrypted. To download files and read them locally, see Decrypt Files.

    What Is Symmetric Encryption?

    Symmetric encryption is an encryption method that uses the same key to encrypt and decrypt data, just as a single key can both lock and open the same lock.

    Step 4: Define Data Viewing Permissions

    Set viewing permissions for forwarded data to improve data security.

    LogBamboo requires a separate query token to query forwarded data in the console. If you only forward data, you do not need to enter a query token. Rule viewing permissions are managed separately from LogBamboo's own account and index permissions.

    • Unrestricted: All members of the workspace can view forwarded data.

    • Custom: Specify the member roles that can view forwarded data.

    Feedback

    Is this page helpful?