logentries_log
Provides a Logentries log resource.
Example Usage
# Create a log and add it to the log set
resource "logentries_log" "app_log" {
logset_id = "${logentries_logset.host_logs.id}"
name = "myapp-log"
source = "token"
}
Argument Reference
The following arguments are supported:
logset_id- (Required) The id of thelogentries_logsetresource.name- (Required) The name of the log. The name should be short and descriptive. For example, Apache Access, Hadoop Namenode.retention_period- (Optional, defaultACCOUNT_DEFAULT) The retention period (1W,2W,1M,2M,6M,1Y,2Y,UNLIMITED,ACCOUNT_DEFAULT)source- (Optional, defaulttoken) The log source (token,syslog,agent,api). Review the Logentries log inputs documentation for more information.type- (Optional) The log type. See the Logentries log type documentation for more information.
Attributes Reference
The following attributes are exported:
token- If the logsourceistoken, this value holds the generated log token that is used by logging clients. See the Logentries token-based input documentation for more information.
See the source of this document at Terraform.io