NodeJS SDK for sending logs to LogicMonitor
npm install lm-logs-sdk-node
- COMPANY_NAME
- ACCESS_ID
- ACCESS_KEY
const { ingest } = require("lm-logs-sdk-node");
logs = [{
"message": "Hello! from Logic Monitor",
"_lm.resourceId": {
"<lm_property>": "<lm_property_value>"
}
}]
ingest(logs);
- COMPANY_NAME
- ACCESS_ID
- ACCESS_KEY
- TARGET_PROPERTY (e.g. system.deviceId)
- TARGET_VALUE (e.g. "123")
const { logger } = require("lm-logs-sdk-node");
logger("Hello! from Logic Monitor");
// Log message would be a stringified version
logger(["Hello", "From", "Logic", "Monitor"]);
logger({ "Hello From": "Logic Monitor" });