
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@marfle/winston-transport-datadog
Advanced tools
winston transport for Datadog logging.
There are couple of winston transports for datadog. This one does buffering, error handling and uses tls-tcp instead of https.
npm install @marfle/winston-transport-datadog
Use:
const { createLogger } = require('winston');
const { DatadogTransport } = require('@marfle/winston-transport-datadog');
logger = createLogger({
transports: [
new DatadogTransport({
apiKey: '<YOUR API KEY',
// optional metadata which will be merged with log message
metadata: {
environment: process.env.NODE_ENV,
service: 'myService'
}
})
]
});
| Name | Default | Description |
|---|---|---|
apiKey | undefined | api key from datadog |
host | 'intake.logs.datadoghq.com' | intake hostname |
port | 10516 | intake port |
bufferSize | 10000 | how many messages to buffer before discarding |
reconnectInterval | 10000 | |
socketOptions | { timeout: 10000 } | options passed to tls.socket |
metadata | { ddsource: 'winston' } | optional metadata which will be merged with log message |
DatadogTransport extends Transport from winston-transport, so it's options also apply.
MIT See LICENSE file.
Marfle makes software for workboat fleets
FAQs
Datadog logging transport for winston
We found that @marfle/winston-transport-datadog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.