Skip to main content

Export Sentry issues to CSV for further analysis

Project description

sentry2csv

Code style: black

Dump Sentry issues to CSV for further analysis.

$ sentry2csv --token f9u3fdu821ed9j10sj19kjd991010 sparkmeter TopSecretProject13
Fetching issues page 1
Exported to sparkmeter-TopSecretProject13-export.csv
$ head -2 sparkmeter-TopSecretProject13-export.csv
Error,Location,Details,Events,Users,Notes,Link
AttributeError,secret_project.tasks.remove_every_zig,'NoneType' object has no attribute 'zig_count',12,1,,https://sentry.io/organizations/sparkmeter/issues/129481/

Use

  1. Install the package: pip install sentry2csv
  2. Get a Sentry API Token from https://sentry.io/settings/account/api/auth-tokens/
  3. Run the exporter: sentry2csv --token <API_TOKEN> <SENTRY_ORG> <SENTRY_PROJECT>
    • For example, sentry2csv --token f9u3fdu821ed9j10sj19kjd991010 sparkmeter TopSecretProject13

This also accepts an optional --enrich flag. Enrichments augment issues with data from the latest event. An enrichment is in the form of CSV Field Name=dotted.sentry.path, and multiple enrichments are comma-separated.

Development

  1. Clone this repository
  2. Create a virtualenv with Python 3.7 or greater
    • e.g., mkvirtualenv -p $(which python3.7) sentry2csv
  3. Install the package in editable mode: pip install -e .[dev]
  4. Hack away!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sentry2csv-1.1.0.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

sentry2csv-1.1.0-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page