Export Sentry issues to CSV for further analysis
Project description
sentry2csv
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/
Installation
sentry2csv is available on PyPI.
pipx (reccomended)
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
pip
Alternatively, you can install sentry2csv using standard pip.
pip3 install sentry2csv
Use
- 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.
Development
- Clone this repository
- Create a virtualenv with Python 3.7 or greater
- e.g.,
mkvirtualenv -p $(which python3.7) sentry2csv
- e.g.,
- Install the package in editable mode:
pip install -e .[dev]
- Hack away!
Project details
Release history Release notifications | RSS feed
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.2.1.tar.gz
(6.3 kB
view details)
Built Distribution
File details
Details for the file sentry2csv-1.2.1.tar.gz
.
File metadata
- Download URL: sentry2csv-1.2.1.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47bd118785791e34fc49e401e2e61f8a81f5e4aaae01b398fdc3ce5518e4f268 |
|
MD5 | 71fe8d73759a04f6e182ca836f01cb99 |
|
BLAKE2b-256 | 70048712de9f2d6d80d433c6ed461263ff8f44feb150bec842d0934c2756b6b2 |
File details
Details for the file sentry2csv-1.2.1-py3-none-any.whl
.
File metadata
- Download URL: sentry2csv-1.2.1-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7074a4d76153becd30e91494f0bdcc76a3b88362c2c38cdc311231d2d793b6f7 |
|
MD5 | 603c997a4326b40c2515384d7ba018bd |
|
BLAKE2b-256 | 0ab558c42bb141d84d46effc3ef3de5e914987ce92ec1ada8565fc47b797702b |