Skip to content

LogstoreProps

Properties for defining a Logstore.

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

Initializer

using AlibabaCloud.SDK.ROS.CDK.Sls;
new LogstoreProps {
    object LogstoreName,
    object ProjectName,
    object AppendMeta = null,
    object AutoSplit = null,
    object EnableTracking = null,
    object EncryptConf = null,
    object MaxSplitShard = null,
    object PreserveStorage = null,
    object ShardCount = null,
    object Ttl = null
};

Properties

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

LogstoreNameRequired

public object LogstoreName { get; set; }
  • Type: object

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

public object ProjectName { get; set; }
  • Type: object

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

public object AppendMeta { get; set; }
  • Type: object

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

Default to false.


AutoSplitOptional

public object AutoSplit { get; set; }
  • Type: object

Property autoSplit: Whether to automatically split the shard.

Default to false.


EnableTrackingOptional

public object EnableTracking { get; set; }
  • Type: object

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

Default to false.


EncryptConfOptional

public object EncryptConf { get; set; }
  • Type: object

Property encryptConf: Data encryption config.


MaxSplitShardOptional

public object MaxSplitShard { get; set; }
  • Type: object

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

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


PreserveStorageOptional

public object PreserveStorage { get; set; }
  • Type: object

Property preserveStorage: Whether to keep the log permanently.

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


ShardCountOptional

public object ShardCount { get; set; }
  • Type: object

Property shardCount: The number of Shards.

Allowed Values: 1-100, default to 2.


TtlOptional

public object Ttl { get; set; }
  • Type: object

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

Allowed Values: 1-3600, default to 30.