sentry-cli icon indicating copy to clipboard operation
sentry-cli copied to clipboard

Send logs via Sentry CLI

Open AbhiPrasad opened this issue 5 months ago • 0 comments

Description

Sentry now supports structured logging. Let's add it to sentry-cli.

  1. Build a CLI command that takes a log payload and sends it to Sentry. I'm thinking something similar in structure to https://github.com/getsentry/sentry-cli/tree/master/src/commands/send_metric
  2. Build functionality that allows you to pipe some output stream (think stdout) to sentry-cli and send logs to sentry.

We should be able to use sentry-cli for the https://github.com/HazAT/sentry-node-nginx-logger use case.

AbhiPrasad avatar Jul 08 '25 19:07 AbhiPrasad