Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions azure/activity_logs_monitoring/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

const { app, InvocationContext } = require('@azure/functions');

const VERSION = '2.1.0';
const VERSION = '2.1.1';

const STRING = 'string'; // example: 'some message'
const STRING_ARRAY = 'string-array'; // example: ['one message', 'two message', ...]
Expand All @@ -29,6 +29,8 @@ const DD_SOURCE = process.env.DD_SOURCE || 'azure';
const DD_SOURCE_CATEGORY = process.env.DD_SOURCE_CATEGORY || 'azure';
const DD_PARSE_DEFENDER_LOGS = process.env.DD_PARSE_DEFENDER_LOGS; // Boolean whether to enable special parsing of Defender for Cloud logs. Set to 'false' to disable

const EVENTHUB_NAME = process.env.EVENTHUB_NAME || 'datadog-eventhub'; // The event hub name inside your eventhub namespace

const MAX_RETRIES = 4; // max number of times to retry a single http request
const RETRY_INTERVAL = 250; // amount of time (milliseconds) to wait before retrying request, doubles after every retry

Expand Down Expand Up @@ -651,11 +653,12 @@ class EventhubLogHandler {
}
}

app.eventHub('datadog-function', {
// using a function-name with dashes can cause deployment errors on function update
app.eventHub('datadogFunction', {
trigger: {
type: 'eventHubTrigger',
name: 'eventHubMessages',
eventHubName: 'datadog-eventhub',
eventHubName: EVENTHUB_NAME,
connection: 'EVENTHUB_CONNECTION_STRING',
cardinality: 'many',
consumerGroup: '$Default',
Expand Down
13 changes: 7 additions & 6 deletions azure/activity_logs_monitoring/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions azure/activity_logs_monitoring/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "datadog-eventhub-forwarder",
"version": "2.0.0",
"version": "2.1.1",
"main": "index.js",
"author": "Datadog",
"license": "Apache-2.0",
"dependencies": {
"@azure/functions": "^4.7.2"
"@azure/functions": "^4.8.0"
}
}
Loading