{"_id":"589e0a4dad98aa3900d157ff","parentDoc":null,"category":{"_id":"57ae593a7c93fa0e001e6b50","__v":0,"project":"56ba46e2ce5d540d00e2d7a7","version":"56ba46e2ce5d540d00e2d7aa","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-08-12T23:18:18.323Z","from_sync":false,"order":4,"slug":"platforms","title":"Platforms"},"version":{"_id":"56ba46e2ce5d540d00e2d7aa","project":"56ba46e2ce5d540d00e2d7a7","__v":13,"createdAt":"2016-02-09T20:06:58.727Z","releaseDate":"2016-02-09T20:06:58.727Z","categories":["56ba46e3ce5d540d00e2d7ab","5771a6b145c7080e0072927f","5771a72eb0ea6b0e006a5221","5772e5b20a6d610e00dea073","577c3006b20f211700593629","57ae587bca3e310e00538155","57ae593a7c93fa0e001e6b50","57b1f8263ff6c519005cf074","582601f155b1060f00ec4173","582a62857a96051b0070b011","58ebfae58d5a860f00851fb9","590a75a1ec0d5e190095ab38","59e5253fd460b50010237bed"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"user":"5732062ad720220e008ea1d2","__v":0,"project":"56ba46e2ce5d540d00e2d7a7","updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-02-10T18:45:33.146Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"The LogDNA CloudWatch integration relies on [AWS Lambda](https://aws.amazon.com/documentation/lambda/) to route your [CloudWatch logs](http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/WhatIsCloudWatchLogs.html) to LogDNA.\n\n### Configure the LogDNA AWS Lambda function\n\n1. [Create a new Lambda function](https://console.aws.amazon.com/lambda/home?region=us-east-1#/create/configure-function?firstrun=true) and skip to the Configure function section\n2. Set the following fields:\n * Name: `LogDNA`\n * Runtime: `Python 2.7`\n * Code entry type: `Upload a file from Amazon S3 `\n * S3 link URL: `https://s3.amazonaws.com/repo.logdna.com/integrations/cloudwatch/lambda.zip`\n * Handler: `logdna_cloudwatch.lambda_handler`\n * Environment variable: LOGDNA_KEY YOUR_INGESTION_KEY_HERE\n3. Assign an IAM user with basic execution permissions\n4. Click `Create function`\n\n### Configure your CloudWatch Stream\n\n1. Select the [CloudWatch log group](https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logs:) to upload to LogDNA\n2. Click the Actions menu and select `Stream to AWS Lambda`\n3. Select the `LogDNA` Lambda function and click `Next`\n4. Select the desired log format and click `Start Streaming`","excerpt":"","slug":"cloudwatch","type":"basic","title":"CloudWatch"}
The LogDNA CloudWatch integration relies on [AWS Lambda](https://aws.amazon.com/documentation/lambda/) to route your [CloudWatch logs](http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/WhatIsCloudWatchLogs.html) to LogDNA. ### Configure the LogDNA AWS Lambda function 1. [Create a new Lambda function](https://console.aws.amazon.com/lambda/home?region=us-east-1#/create/configure-function?firstrun=true) and skip to the Configure function section 2. Set the following fields: * Name: `LogDNA` * Runtime: `Python 2.7` * Code entry type: `Upload a file from Amazon S3 ` * S3 link URL: `https://s3.amazonaws.com/repo.logdna.com/integrations/cloudwatch/lambda.zip` * Handler: `logdna_cloudwatch.lambda_handler` * Environment variable: LOGDNA_KEY YOUR_INGESTION_KEY_HERE 3. Assign an IAM user with basic execution permissions 4. Click `Create function` ### Configure your CloudWatch Stream 1. Select the [CloudWatch log group](https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logs:) to upload to LogDNA 2. Click the Actions menu and select `Stream to AWS Lambda` 3. Select the `LogDNA` Lambda function and click `Next` 4. Select the desired log format and click `Start Streaming`