Documentation Pricing
Enterprise
Sign in Sign up
Documentation Pricing Enterprise
Better Stack

Uptime monitoring
Get 10 monitors, and a status page totally free.
Incident management & on-call
Get a call when your website goes down
Status page
Communicate downtime & build trust
Incident silencing
Reduce alert noise & prevent alert fatigue
Slack-based incident management
Resolve incidents directly in Slack
Better Stack

Log management
Collect insights across your stack
Infrastructure monitoring
OpenTelemetry-native infrastructure monitoring
Observability dashboards
Analyze metrics across your services
Community home Guides Questions Comparisons Blog Newsletter
Work at Better Stack Engineering Security
  • Uptime
  • Telemetry
  • Demos
Explore documentation
  1. Welcome to Telemetry👋
  2. Quick start guide
  3. Ingesting data
    1. Vector (Recommended)
    2. OpenTelemetry
    3. Ingesting via HTTP API
    4. Ingesting metrics
    5. Ingesting logs
      1. Docker & Kubernetes
      2. Operating systems
      3. Log forwarders
      4. Programming languages
        1. JavaScript & Node.js
          1. Quick start guide
          2. Advanced usage
          3. Frameworks
        2. Python
        3. Ruby
        4. PHP
        5. Java
        6. .NET
        7. Go
        8. Erlang
      5. Cloud platforms
      6. Web servers & Load balancers
      7. Databases & queues
      8. Storage
    6. Migrating to Better Stack
  4. Telemetry API
    1. Getting an API token
    2. Sources API
    3. Metrics API
    4. Query API
  5. Using the product
    1. Wide events vs. time series
    2. Transforming ingested data
    3. Querying data
    4. Alerts

JavaScript & Node.js

Better Stack provides clients for JavaScript, Node.js, and multiple logging frameworks. Choose the right approach for you below.

Recommended: Better Stack JavaScript client

Collect logs from browser and Node.js with Better Stack logger.

  • Quick start guide

Already using a logging framework?

  • Pino transport
  • Koa middleware
  • Winston transport
  • Bunyan stream

Using AWS Lambda?

  • Logging in AWS Lambda running Node.js

Using edge runtime (eg. Cloudflare Workers)?

  • Logging in edge runtime

Previous article

Send logs to Better Stack using Logstash

Next article

JavaScript quick start guide

Platform
Enterprise
Uptime
Telemetry
Solutions
Log management
Infrastructure monitoring
Uptime monitoring
Website monitoring
Incident management
Status page
Incident silencing
Slack-based incident management
Dashboards
Integrations
Resources
Help & Support
Uptime docs
Logs docs
Company
Work at Better Stack
Engineering
Security
Community
Guides
Questions
Comparisons
Blog
Write for us
Company
Work at Better Stack
Engineering
Security
Resources
Help & Support
Uptime docs
Logs docs
Compare
Pingdom Pagerduty StatusPage.io Uptime Robot StatusCake Opsgenie VictorOps
From the community
What Is Incident Management? Beginner’s Guide How to Create a Developer-Friendly On-Call Schedule in 7 steps 8 Best Free & Open Source Status Page Tools in 2024 10 Best API Monitoring Tools in 2024 5 Most Used Incident Management Tools (Reviewed & Ranked)

Better Stack lets you see inside any stack, debug any issue, and resolve any incident.

+1 (628) 900-3830 hello@betterstack.com
Terms of Use Privacy Policy GDPR System status
© 2025 Better Stack, Inc.