日志库(LogStore)是日志服务中日志数据的采集、存储和查询单元。
命名规则
只能包含小写字母、数字、连字符(-)和下划线(_)。
必须以小写字母或者数字开头和结尾。
长度为3~63字符。
完整资源示例
{ "logstoreName" : "access_log", "ttl": 1, "shardCount": 2, "autoSplit": true, "maxSplitShard": 64, "createTime":1439538649, "lastModifyTime":1439538649 }示例参数说明
资源示例中各参数含义如下表所示:
参数名称
类型
是否必须
描述
logstoreName
string
是
日志库名称,在该Project下唯一。
ttl
integer
是
日志数据生命周期(TTL),单位为天,最小为1天。
shardCount
integer
是
日志数据服务单元。
autoSplit
bool
否
是否自动分裂Shard。
maxSplitShard
int
否
自动分裂时最大的Shard个数,最小值为1,最大值为64。当autoSplit为true时必须指定。
createTime
integer
否
LogStore创建时间。
lastModifyTime
integer
否
LogStore更新时间。
该文章对您有帮助吗?