Attempting to setup the AWS CloudWatch Log integration following these instructions: ahttps://docs.newrelic.com/docs/logs/enable-logs/enable-logs/aws-cloudwatch-plugin-logs
I have no problem following these steps:
Install the New Relic Lambda
- From the AWS console, go to the Lambda section, select Create function , and select Serverless Application Repository .
- Search for
newrelicand check the box that says " Show apps that create custom IAM roles or resource policies " to find the
newrelic-log-ingestionLambda. Follow the instructions in the Lambda’s documentation to deploy it. A SAM template will build the Lambda
However I immediately get this error message:
- An error occurred while listing cloudwatch-logs relations: 2 validation errors detected: Value ‘’ at ‘logGroupName’ failed to satisfy constraint: Member must satisfy regular expression pattern: [.-_/#A-Za-z0-9]+; Value ‘’ at ‘logGroupName’ failed to satisfy constraint: Member must have length greater than or equal to 1 (Service: AWSLogs; Status Code: 400; Error Code: InvalidParameterException; Request ID: 13c03ccf-ceb4-421e-b913-b35e9aed216f)
If I ignore the issue and continue the setup:
Configure your Lambda function
I can setup my Key and the other environment variable and save the values.
Create a Lambda trigger
Also no problem here I can add triggers and select the appropriate CloudWatch Log Groups.
However the error persists and I don’t see any log data in New Relic.