terraform/website/source/docs/providers/logentries/r/log.html.markdown

1.4 KiB

layout page_title sidebar_current description
logentries Logentries: logentries_log docs-logentries-log Creates a Logentries log.

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 the logentries_logset resource.
  • name - (Required) The name of the log. The name should be short and descriptive. For example, Apache Access, Hadoop Namenode.
  • 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.

Attributes Reference

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.