
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
elk-kinesis-logger
Advanced tools
Send logs to an ELK stack via an AWS Kinesis stream.
The ELK stack should be using the Kinesis Input Plugin.
Uses STSAssumeRole
to authenticate to Kinesis.
The main use case is for AWS Lambdas. When you console.log
within a Lambda, they go into CloudWatch Logs.
Whilst CloudWatch Logs is good, an ELK stack is better!
Using this module, we can easily get logs into an ELK stack.
npm install elk-kinesis-logger
Import the module:
const ELKKinesisLogger = require('elk-kinesis-logger');
Create a new logger:
const logger = new ELKKinesisLogger({
stage: 'PROD',
stack: 'my-stack',
app: 'my-app',
roleArn: 'arn:aws:iam::000000000000:role/my-role',
streamName: 'my-stream'
});
Open the logger:
logger.open().then(() => {
});
Write a log message:
logger.log('something happened');
Ensure all logs have written by closing the logger:
logger.close().then(() => {
});
const ELKKinesisLogger = require('elk-kinesis-logger');
const logger = new ELKKinesisLogger({
stage: 'PROD',
stack: 'my-stack',
app: 'my-app',
roleArn: 'arn:aws:iam::000000000000:role/my-role',
streamName: 'my-stream'
});
logger.open().then(() => {
const value = 5 * 5;
logger.log(`the value is ${value}`);
return logger.close();
}).then((writtenLogs) => {
// other work
});
See the examples.
npm test
npm publish
FAQs
Logging to a Kinesis stream for consumption into an ELK cluster
The npm package elk-kinesis-logger receives a total of 2 weekly downloads. As such, elk-kinesis-logger popularity was classified as not popular.
We found that elk-kinesis-logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.