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 Mode = 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. |
Mode |
object |
Property mode: The type of the Logstore. |
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. |
LogstoreName
Required
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.
ProjectName
Required
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.
AppendMeta
Optional
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.
AutoSplit
Optional
public object AutoSplit { get; set; }
- Type: object
Property autoSplit: Whether to automatically split the shard.
Default to false.
EnableTracking
Optional
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.
EncryptConf
Optional
public object EncryptConf { get; set; }
- Type: object
Property encryptConf: Data encryption config.
MaxSplitShard
Optional
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.
Mode
Optional
public object Mode { get; set; }
- Type: object
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.
PreserveStorage
Optional
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.
ShardCount
Optional
public object ShardCount { get; set; }
- Type: object
Property shardCount: The number of Shards.
Allowed Values: 1-100, default to 2.
Ttl
Optional
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.