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/
Use
- Install the package:
pip 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 CSV Field Name=dotted.sentry.path
, 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.1.0.tar.gz
(4.4 kB
view details)
Built Distribution
File details
Details for the file sentry2csv-1.1.0.tar.gz
.
File metadata
- Download URL: sentry2csv-1.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30567822af91ddd7850b6d91f9369e02489deccf07d8e8608ae99e0b73105a9c |
|
MD5 | 18aeeb719489ea4ef3709353fdb6a342 |
|
BLAKE2b-256 | ca7f1f06f6075c7375b02ecebe6b0b5bb55676c643e20f501bbefd8135bb6bd8 |
File details
Details for the file sentry2csv-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: sentry2csv-1.1.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6cf38b2f92fec7ee4f966a4095fec4c5a702dcca685a0909d2dcedf58c505ec |
|
MD5 | a82c7ace7efecd537ba9aeb5b0a322a7 |
|
BLAKE2b-256 | a5884eaaf16cfa0d60585985a0444a2aff600f62dab9854cb2c8473fbda9db80 |