logdna / logdna-cloudwatch Goto Github PK
View Code? Open in Web Editor NEWAWS Lambda for logging from CloudWatch into LogDNA
License: MIT License
AWS Lambda for logging from CloudWatch into LogDNA
License: MIT License
After finishing #27, the unit and integration tests must be added to have, at least, 90%-95% coverage.
AWS is asking to update runtime nodejs14.x to nodejs16.x
I've just did it and everything seems to work fine. Would be great to update README
Create a CloudFormation template to quickly deploy the lambda
Hi, are you please planning to upgrade this package to node 16 or later given that Node 14 will be at the end of their security support in about a month? Thanks
Similar to this, terraformize the lambda for easy deploy
Since we have been switching from using CircleCI to using Jenkins, this one should be updated as well.
Migrating from LogDNA-agent to the Lambda integration, our JSON logs are not properly formatted in the LogDNA web app. The JSON body gets converted to a string, and log lines displayed in the web app as a string.
In the interim, we made our own fork with a hacky fix that would break other use-cases. But we would like the upstream package to have better support for JSON formatted logs so that we do not have to maintain a patch.
Setup:
Follow these instructions (NOTE: The link to the zip file is an old version sitting in an S3 bucket, we downloaded the latest from github). We did port the instructions to Terraform, it is possible that something is different than what the manual instructions would produce, but I could not find a meaningful difference.
Steps to reproduce:
Expected result:
The log lines look the same in the LogDNA web app
Actual result:
The logs lines look different, are not properly parsed as JSON data
Is there a delay before it appears in LogDNA?
My guess from the README was that it should be there just after creating the CW stream and events were sent.
It is required to implement the lambda in a very testable way which requires refactoring and restructuring by using @logdna/logger
and eslint-config-logdna
The README is not really clear and should be updated (https://docs.logdna.com/docs/cloudwatch too)
What wasn't clear is:
1 - Create a new Lambda function and skip to the Configure function section
I guess this was about an old interface? It's impossible to find the Configure Function section see screenshot belowCode entry type
select input, and edit the handler see screenshotHi! This is less of an issue, and more of an FYI. ๐ we created a Terraform module for deploying this lambda and thought you folks might like to check it out. https://github.com/asicsdigital/terraform-aws-logdna-cloudwatch
Line 89 in 834944c
I have replaced with the following line for a temporary fix.
const hostname = config.hostname || payload[0].meta.log.group;
Can you host the file on S3? No need to download the file that way - just copy and paste the URL in Actions->Upload a File from Amazon S3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.