The log store is a unit in Log Service to collect, store, and query the log data. Each log store belongs to a project, and each project can create multiple Logstores. Refer to details
Basic Usage
resource "alicloud_log_project" "example" { name = "tf-log" description = "created by terraform" } resource "alicloud_log_store" "example" { project = "${alicloud_log_project.example.name}" name = "tf-log-store" description = "created by terraform" }
The following arguments are supported:
project
- (Required, ForceNew) The project name to the log store belongs. name
- (Required, ForceNew) The log store, which is unique in the same project. retention_period
- The data retention time (in days). Valid values: [1-3650]. Default to 30. Log store data will be stored permanently when the value is "3650". shard_count
- The number of shards in this log store. Default to 2. You can modify it by "Split" or "Merge" operations. Refer to details The following attributes are exported:
id
- The ID of the log project. It formats of "project
- The project name. name
- Log store name. retention_period
- The data retention time. shard_count
- The number of shards. Log store can be imported using the id, e.g.
$ terraform import alicloud_log_store.example tf-log:tf-log-store
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/alicloud/r/log_store.html