All Products
Search
Document Center

Simple Log Service:LogtailConfig

Last Updated:Sep 18, 2026

Parameter

Type

Description

Example

object

The Logtail configuration data structure.

configName

string

The name of the Logtail configuration. The name must be unique within the project to which the configuration belongs. The name cannot be modified after the Logtail configuration is created. Naming rules:

  • The name can contain only lowercase letters, digits, hyphens (-), and underscores (_).

  • The name must start and end with a lowercase letter or digit.

  • The name must be 2 to 128 characters in length.

test-config

createTime

integer

The time when the Logtail configuration was created. This value is a UNIX timestamp representing the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1655176807

inputDetail

object

The configuration of the log input. For more information, see inputDetail parameter description.

"logType": "common_reg_log", "logPath": "/var/log/httpd/", "filePattern": "access*.log", "localStorage": true, "timeFormat": "%Y/%m/%d %H:%M:%S", "logBeginRegex": ".*", "regex": "(\w+)(\s+)", "key" :["key1", "key2"], "filterKey":["key1"], "filterRegex":["regex1"], "fileEncoding":"utf8", "topicFormat": "none"

inputType

string

The method of log input. Valid values:

  • plugin: Collects logs such as MySQL Binlog by using Logtail plugins.

  • file: Collects logs from text files by using fixed modes such as regex mode and separator mode.

file

lastModifyTime

integer

The time when the Logtail configuration was last updated. This value is a UNIX timestamp representing the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1655176807

logSample

string

The log sample.

2022-06-14 11:13:29.796 | DEBUG | __main__::1 - hello world

outputDetail

object

The configuration of the log output. For more information, see outputDetail parameter description.

endpoint

string

The endpoint. For more information, see Endpoints.

cn-hangzhou-intranet.log.aliyuncs.com

logstoreName

string

The Logstore name.

test-logstore

region

string

The region ID.

cn-hangzhou

telemetryType

string

The observable data type of the destination Logstore.

logs

outputType

string

The method of log output. Only LogService is supported, which means data can only be uploaded to Simple Log Service.

LogService