--- layout: "logentries" page_title: "Provider: Logentries" sidebar_current: "docs-logentries-index" description: |- The Logentries provider is used to manage Logentries logs and log sets. Logentries provides live log management and analytics. The provider needs to be configured with a Logentries account key before it can be used. --- # Logentries Provider The Logentries provider is used to manage Logentries logs and log sets. Logentries provides live log management and analytics. The provider needs to be configured with a Logentries account key before it can be used. Use the navigation to the left to read about the available resources. ## Example Usage ```hcl # Configure the Logentries provider provider "logentries" { account_key = "${var.logentries_account_key}" } # Create a log set resource "logentries_logset" "host_logs" { name = "${var.server}-logs" } # 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" } # Add the log token to a cloud-config that can be used by an # application to send logs to Logentries resource "aws_launch_configuration" "app_launch_config" { name_prefix = "myapp-" image_id = "${var.ami}" instance_type = "${var.instance_type}" user_data = <