Skip to content

Send logs via Sentry CLI #2584

@AbhiPrasad

Description

@AbhiPrasad

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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions