Skip to content

Commit

Permalink
chore: add note for pipeline dryrun api
Browse files Browse the repository at this point in the history
  • Loading branch information
paomian committed Sep 10, 2024
1 parent 8f40653 commit e1ac887
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/user-guide/logs/manage-pipelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,14 @@ transform:
index: timestamp'
```

The Pipeline has been successfully created at this point.
Now that the Pipeline has been created successfully, you can test the Pipeline using the `dryrun` interface.

### Debug writing logs

We can test the Pipeline using the `dryrun` interface. We will test it with erroneous log data where the value of the message field is in numeric format, causing the pipeline to fail during processing.

**This API is only used to test the results of the Pipeline and does not write data to GreptimeDB.**


```bash
curl -X "POST" "http://localhost:4000/v1/events/pipelines/dryrun?pipeline_name=test" \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ transform:

### 调试日志写入

接下来使用一个错误的日志数据来测试,该日志中 message 字段的值为数字类型,这会导致 Pipeline 处理失败。
我们可以使用 `dryrun` 接口测试 Pipeline。我们将使用错误的日志数据对其进行测试,其中消息字段的值为数字格式,会导致 Pipeline 在处理过程中失败。

**此接口仅仅用于测试 Pipeline 的处理结果,不会将数据写入到 GreptimeDB 中。**

```bash
curl -X "POST" "http://localhost:4000/v1/events/pipelines/dryrun?pipeline_name=test" \
Expand Down

0 comments on commit e1ac887

Please sign in to comment.