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 the logentries_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, default ACCOUNT_DEFAULT
) The retention period (1W
, 2W
, 1M
, 2M
, 6M
, 1Y
, 2Y
, UNLIMITED
, ACCOUNT_DEFAULT
) source
- (Optional, default token
) 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 log source
is token
, this value holds the generated log token that is used by logging clients. See the Logentries token-based input documentation for more information.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/logentries/r/log.html