
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
datadog-event
Advanced tools
Writes an event to Datadog through the node-dogstatsd library.
"datadog-event": "0.0.0"
var DD = require("node-dogstatsd").StatsD;
var DatadogEvent = require('datadog-event')
...
let datadogEvent = new DatadogEvent(( {"dogstatsd":new DD()} ));
datadogEvent.write("My Title","My Description", {tags:["mytags"]});
When creating a new datadog-event you can pass in your own dogstatsd object or let the module create a default one (localhost:8125).
Options available on the write object include:
(see tests)
The write method acceps 4 parameters
datadogEvent.write(title, text, options, callback);
The callback is used only in case of an error with the data passed in and is optional. For example:
datadogEvent.write("My Title", "My Text", {tags:["a:b"], function(err) {
if (err) {
console.error(err.message);
}
});
Global tags specified in the dogstatsd object will be merged with the tags passed into the write function.
A Datadog event looks like this:
_e{title.length,text.length}:title|text|d:date_happened|h:hostname|p:priority|t:alert_type|#tag1,tag2
Where the title and text are mandatory and the other information is optional.
FAQs
Write events to datadog
The npm package datadog-event receives a total of 6 weekly downloads. As such, datadog-event popularity was classified as not popular.
We found that datadog-event demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.