Export Sentry issues to CSV for further analysis
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/
sentry2csv is available on PyPI.
pipx is a tool that allows you to install and run Python applications in isolated environments.
- Install pipx, following their instructions
- Install sentry2csv:
pipx install sentry2csv
Alternatively, you can install sentry2csv using standard pip.
pip3 install sentry2csv
- Get a Sentry API Token from https://sentry.io/settings/account/api/auth-tokens/
- Run the exporter:
sentry2csv --token <API_TOKEN> <SENTRY_ORG> <SENTRY_PROJECT>
- For example,
sentry2csv --token f9u3fdu821ed9j10sj19kjd991010 sparkmeter TopSecretProject13
- For example,
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.
- Clone this repository
- Create a virtualenv with Python 3.7 or greater
mkvirtualenv -p $(which python3.7) sentry2csv
- Install the package in editable mode:
pip install -e .[dev]
- Hack away!
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
sentry2csv-1.3.0.tar.gz (6.6 kB view hashes)
Hashes for sentry2csv-1.3.0-py3-none-any.whl