全部产品
Search
文档中心

日志服务:GCSIngestionConfigurationSource

更新时间:Oct 28, 2026

名称

类型

描述

示例值

object

A short description of struct

accessKeyId

string

gcs AccessKey ID

GOxxxxxxxxxxxxxxxxxxxxY4

accessKeySecret

string

gcs AccessKey Secret

4WgxxxxxxxxxxxxxxxxxxxxxxxxxxxxxY9SKycWj

advancedParameters

object

高级参数配置

any

高级参数配置的内容

示例:{"test1": "xxxxx"}

bucket

string

gcs bucket

gcsbucket

compressionCodec

string

压缩类型:none,snappy,gzip

none

encoding

string

编码类型

UTF-8

endTime

integer

某个时间点前修改过的文件

1714360481

endpoint

string

gcs endpoint

  • 默认使用全局端点:https://storage.googleapis.com。如有特殊需求需键入。

https://storage.googleapis.com

format

object

格式

any

GCS 数据格式。

  • 单行文本日志:{"type":"Line"}

  • CSV:

{
  "type": "CSV",
  "fieldDelimiter": ",",   //分隔符
  "quoteChar": "\"",      //引号
  "escapeChar": "\\",    //转义符
  "firstRowAsHeader": true,    //首行是否作为字段名称
  "maxLines": 1,    //日志最大跨行数
  "skipLeadingRows": 0   //跳过行数
}

  • 单行 JSON:{"type": "JSON"}

  • 跨行文本日志:

{
  "type": "Multiline",
  "match": "after", //正字匹配位置
  "pattern": "\\d+", //正则表达式
  "maxLines": 10 //最大行数
}
  • JSON 数组:{"type": "jsonarray"}

  • Cloudtrail:{"type": "cloudtrail"}

{"type":"Line"}

interval

string

检查新文件周期

5m

pattern

string

文件路径正则过滤

.*

prefix

string

文件路径前缀过滤

prefix

processorId

string

写入处理器 id

ingest-processor-17568xxxxx-xxxxx1

startTime

integer

某个时间点后修改过的文件

1714274081

tagPackId

boolean

启动上下文检索

true

timeField

string

提取时间字段

__time__

timeFormat

string

时间字段格式

yyyy-MM-dd HH:mm:ss

timePattern

string

提取时间正则

[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}

timeZone

string

时间字段分区

GMT+08:00