Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

172
Views
No logs on DataDog dashboard (agent installed)

I'm using DataDog on Mac with the Agent installed. I have verified that the Agent is running fine and that my ENV vars are correct. I wrote the following script to send logs to local files and to the DataDog server:

const { format, transports, createLogger } = require("winston");
const DatadogWinston = require("datadog-winston");

logDir = 'logs'

const logger = createLogger({
    level: 'info',
    format: format.combine(format.timestamp(), format.json()),
    transports: [
        new transports.File({ filename: `${logDir}/error.log`, level: 'error' }),
        new transports.File({ filename: `${logDir}/warn.log`, level: 'warn' }),
        new transports.File({ filename: `${logDir}/info.log`, level: 'info' }),
    ],
});

if (process.env.LIVE_LOGGING == "yes") {
    logger.add(new DatadogWinston({
        apiKey: process.env.DATADOG_API_KEY,
        hostname: process.env.DATADOG_HOSTNAME,
        service: 'orch-backend',
        ddsource: 'nodejs'
    }));
}

logger.info('Yo!', new Error("something went wrong!"));

Now, I can see logs in my local file but the DataDog dashboard is empty. Any idea what I might be doing wrong?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!