layout | page_title | sidebar_current | description |
---|---|---|---|
logentries |
Logentries: logentries_log |
docs-logentries-resource-log-basic |
Creates a Logentries log. |
Provides a Logentries log resource.
# 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"
}
The following arguments are supported:
logset_id
- (Required) The id of thelogentries_logset
resource.name
- (Required) The name of the log. The name should be short and descriptive. For example, Apache Access, Hadoop Namenode.filename
- (Optional) the filename of the log.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.
The following attributes are exported:
token
- If the logsource
istoken
, this value holds the generated log token that is used by logging clients. See the Logentries token-based input documentation for more information.