Skip to main content

Export Sentry issues to CSV for further analysis

Project description


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
AttributeError,secret_project.tasks.remove_every_zig,'NoneType' object has no attribute 'zig_count',12,1,,


sentry2csv is available on PyPI.

pipx (reccomended)

pipx is a tool that allows you to install and run Python applications in isolated environments.

  1. Install pipx, following their instructions
  2. Install sentry2csv: pipx install sentry2csv


Alternatively, you can install sentry2csv using standard pip.

  1. pip3 install sentry2csv


  1. Get a Sentry API Token from
  2. 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 dotted.sentry.path=CSV_Field_Name, and multiple enrichments are comma-separated.


  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.

Files for sentry2csv, version 1.2.0
Filename, size File type Python version Upload date Hashes
Filename, size sentry2csv-1.2.0.tar.gz (5.8 kB) File type Source Python version None Upload date Hashes View
Filename, size sentry2csv-1.2.0-py3-none-any.whl (6.5 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page