Todos os produtos
Search
Central de documentação

Simple Log Service:OSSIngestionConfigurationSource

Última atualização: Oct 21, 2026

Parâmetro

Tipo

Descrição

Exemplo

object

The OSS import configuration.

advancedParameters

object

The advanced parameter settings.

any

The parameter settings.

{"key": "xxx"}

bucket

string

oss bucket

ossbucket

compressionCodec

string

The compression type.

none

encoding

string

The encoding type.

UTF-8

endTime

integer

Os arquivos modificados antes de um horário específico.

1714360481

endpoint

string

oss endpoint

oss-cn-hangzhou.aliyuncs.com

format

object

The format.

any

The OSS data format.

  • Single-line text log: {"type":"Line"}

  • CSV:

{
  "type": "CSV",
  "fieldDelimiter": ",",   //Separator
  "quoteChar": "\"",      //Quote character
  "escapeChar": "\\",    //Escape character
  "firstRowAsHeader": true,    //Whether the first row is used as field names
  "maxLines": 1,    //Maximum number of lines per log
  "skipLeadingRows": 0   //Number of rows to skip
}

  • Single-line JSON: {"type": "JSON"}

  • Multi-line text log:

{
  "type": "Multiline",
  "match": "after", //Regex match position
  "pattern": "\\d+", //Regular expression
  "maxLines": 10 //Maximum number of lines
}
  • ORC: {"type": "ORC"}

  • Parquet: {"type": "Parquet"}

  • Alibaba Cloud OSS access log: {"type": "ossAccessLog"}

  • Content Delivery Network (CDN) download log: {"type": "cdnDownloadedLog"}

{"type": "Line"}

interval

string

O intervalo para verificação de novos arquivos.

never

pattern

string

O filtro de expressão regular para caminhos de arquivo.

.*

prefix

string

O filtro de prefixo de caminho de arquivo.

prefix

processorId

string

The write processor ID.

ingest-processor-1756802123-953901

restoreObjectEnabled

boolean

Especifica se os arquivos arquivados devem ser importados.

true

roleARN

string

roleArn

acs:ram::12345:role/aliyunlogdefaultrole

startTime

integer

Os arquivos modificados após um horário específico.

1714274081

tagPackId

boolean

Especifica se a consulta contextual deve ser ativada.

true

timeField

string

O campo de hora a ser extraído.

__time__

timeFormat

string

The time field format.

yyyy-MM-dd HH:mm:ss

timePattern

string

A expressão regular para extração de hora.

[0-9]{0,2}\/[0-9a-zA-Z]+\/[0-9:,]+

timeZone

string

The time field partition.

GMT+08:00

useMetaIndex

boolean

Especifica se o índice de metadados do OSS deve ser usado.

false