github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/logentries/r/log.html.markdown (about)

     1  ---
     2  layout: "logentries"
     3  page_title: "Logentries: logentries_log"
     4  sidebar_current: "docs-logentries-log"
     5  description: |-
     6    Creates a Logentries log.
     7  ---
     8  
     9  # logentries\_log
    10  
    11  Provides a Logentries log resource.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  # Create a log and add it to the log set
    17  resource "logentries_log" "app_log" {
    18    logset_id = "${logentries_logset.host_logs.id}"
    19    name      = "myapp-log"
    20    source    = "token"
    21  }
    22  ```
    23  
    24  ## Argument Reference
    25  
    26  The following arguments are supported:
    27  
    28  * `logset_id` - (Required) The id of the `logentries_logset` resource.
    29  * `name` - (Required) The name of the log. The name should be short and descriptive. For example, Apache Access, Hadoop Namenode.
    30  * `retention_period` - (Optional, default `ACCOUNT_DEFAULT`) The retention period (`1W`, `2W`, `1M`, `2M`, `6M`, `1Y`, `2Y`, `UNLIMITED`, `ACCOUNT_DEFAULT`)
    31  * `source` - (Optional, default `token`) The log source (`token`, `syslog`, `agent`, `api`). Review the Logentries [log inputs documentation](https://docs.logentries.com/docs/) for more information.
    32  * `type` - (Optional) The log type. See the Logentries [log type documentation](https://logentries.com/doc/log-types/) for more information.
    33  
    34  ## Attributes Reference
    35  
    36  The following attributes are exported:
    37  
    38  * `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](https://logentries.com/doc/input-token/) for more information.