Skip to content

A stack to support ETL for NebulaLogger. Suited for enterprises where monitoring may need to be integrated with other systems.

Notifications You must be signed in to change notification settings

nhall97/nebulaLogger-nodejs-ETL

Repository files navigation

NebulaLogger NodeJS ETL

NodeJS server that can do:

  • Extract records from NebulaLogger (Salesforce Package)
  • Transform Logs
  • Send to a destination (TBC) - InfluxDB / Grafana?

Configuration

.env

SF_LOGIN_URL=https://login.salesforce.com
SF_USERNAME=demo.user@test.com
SF_PASSWORD=
SF_SECURITY_TOKEN=

Under the hood

Package Information Link
NebulaLogger Package for better Salesforce Logging https://github.com/jongpie/NebulaLogger
JSForce Javascript package for Salesforce https://jsforce.github.io
Nebula Logger nodeJS NodeJS package to help integrate with Nebula Logger Salesforce Package https://www.npmjs.com/package/nebula-logger-nodejs

Example 'Records' response from Salesforce

  records: [
    {
      attributes: [Object],
      Id: 'a078d000000oV5HAAU',
      OwnerId: '0058d0000019D40AAE',
      IsDeleted: false,
      Name: 'Log-000000',
      CreatedDate: '2021-12-24T14:42:00.000+0000',
      CreatedById: '0058d000001bDXhAAM',
      LastModifiedDate: '2021-12-24T14:42:02.000+0000',
      LastModifiedById: '0058d000001bDXhAAM',
      SystemModstamp: '2021-12-24T14:42:02.000+0000',
      Issue__c: null,
      LoginBrowser__c: 'Firefox 95',
      LoginDomain__c: null,
      LoginApplication__c: 'Browser'
    },
    {
      attributes: [Object],
      Id: 'a078d000000oV5IAAU',
      OwnerId: '0058d0000019D40AAE',
      IsDeleted: false,
      Name: 'Log-000001',
      CreatedDate: '2021-12-24T14:42:43.000+0000',
      CreatedById: '0058d000001bDXhAAM',
      LastModifiedDate: '2021-12-24T14:42:43.000+0000',
      LastModifiedById: '0058d000001bDXhAAM',
      SystemModstamp: '2021-12-24T14:42:43.000+0000',
      Issue__c: null,
      LoginBrowser__c: 'Firefox 95',
      LoginDomain__c: null,
      LoginApplication__c: 'Browser'
    }
  ]
}

About

A stack to support ETL for NebulaLogger. Suited for enterprises where monitoring may need to be integrated with other systems.

Resources

Stars

Watchers

Forks

Packages

No packages published