Skip to content

LogstoreProps

Properties for defining a Logstore.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-sls-logstore

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdksls"
&alicloudroscdksls.LogstoreProps {
    LogstoreName: interface{},
    ProjectName: interface{},
    AppendMeta: interface{},
    AutoSplit: interface{},
    EnableTracking: interface{},
    EncryptConf: interface{},
    MaxSplitShard: interface{},
    Mode: interface{},
    PreserveStorage: interface{},
    ShardCount: interface{},
    Ttl: interface{},
}

Properties

Name Type Description
LogstoreName interface{} Property logstoreName: Logstore name: 1.
ProjectName interface{} Property projectName: Project name: 1.
AppendMeta interface{} Property appendMeta: Whether to add client external network IP and log arrival time after receiving the log.
AutoSplit interface{} Property autoSplit: Whether to automatically split the shard.
EnableTracking interface{} Property enableTracking: Whether to enable WebTracking, which supports fast capture of various browsers and iOS\/Android\/APP access information.
EncryptConf interface{} Property encryptConf: Data encryption config.
MaxSplitShard interface{} Property maxSplitShard: The maximum number of shards when splitting automatically.
Mode interface{} Property mode: The type of the Logstore.
PreserveStorage interface{} Property preserveStorage: Whether to keep the log permanently.
ShardCount interface{} Property shardCount: The number of Shards.
Ttl interface{} Property ttl: The lifecycle of log in the logstore in days.

LogstoreNameRequired

LogstoreName interface{}
  • Type: interface{}

Property logstoreName: Logstore name: 1.

Only supports lowercase letters, numbers, hyphens (-) and underscores (_). 2. Must start and end with lowercase letters and numbers. 3. The name length is 3-63 characters.


ProjectNameRequired

ProjectName interface{}
  • Type: interface{}

Property projectName: Project name: 1.

Only supports lowercase letters, numbers, hyphens (-) and underscores (_). 2. Must start and end with lowercase letters and numbers. 3. The name length is 3-63 characters.


AppendMetaOptional

AppendMeta interface{}
  • Type: interface{}

Property appendMeta: Whether to add client external network IP and log arrival time after receiving the log.

Default to false.


AutoSplitOptional

AutoSplit interface{}
  • Type: interface{}

Property autoSplit: Whether to automatically split the shard.

Default to false.


EnableTrackingOptional

EnableTracking interface{}
  • Type: interface{}

Property enableTracking: Whether to enable WebTracking, which supports fast capture of various browsers and iOS\/Android\/APP access information.

Default to false.


EncryptConfOptional

EncryptConf interface{}
  • Type: interface{}

Property encryptConf: Data encryption config.


MaxSplitShardOptional

MaxSplitShard interface{}
  • Type: interface{}

Property maxSplitShard: The maximum number of shards when splitting automatically.

Must be specified if AutoSplit is set to true. Allowed Values: 1-64.


ModeOptional

Mode interface{}
  • Type: interface{}

Property mode: The type of the Logstore.

Simple Log Service provides two types of Logstores: Standard Logstores and Query Logstores. Valid values: standard: Standard Logstore. This type of Logstore supports the log analysis feature and is suitable for scenarios such as real-time monitoring and interactive analysis. You can also use this type of Logstore to build a comprehensive observability system. query: Query Logstore. This type of Logstore supports high-performance queries. The index traffic fee of a Query Logstore is approximately half that of a Standard Logstore. Query Logstores do not support SQL analysis. Query Logstores are suitable for scenarios in which the amount of data is large, the log retention period is long, or log analysis is not required. If logs are stored for weeks or months, the log retention period is considered long.


PreserveStorageOptional

PreserveStorage interface{}
  • Type: interface{}

Property preserveStorage: Whether to keep the log permanently.

If set to true, TTL will be ignored. Default to false.


ShardCountOptional

ShardCount interface{}
  • Type: interface{}

Property shardCount: The number of Shards.

Allowed Values: 1-100, default to 2.


TtlOptional

Ttl interface{}
  • Type: interface{}

Property ttl: The lifecycle of log in the logstore in days.

Allowed Values: 1-3600, default to 30.