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 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.2.tar.gz
(5.4 kB
view details)
Built Distribution
File details
Details for the file sentry2csv-1.1.2.tar.gz
.
File metadata
- Download URL: sentry2csv-1.1.2.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b92d18aca300c85ec175aa077e6a895db06655cdac93bc90f0f1a35b2dc6c7e |
|
MD5 | e75f59b0c9c4aebd06a2d519da7109a3 |
|
BLAKE2b-256 | 6e3efb266146378ddeab5039840cac7a032af1cfdee4214f2709096c6fa5bb2d |
File details
Details for the file sentry2csv-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: sentry2csv-1.1.2-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 600f2f106b8c5236fc0ba771f6536fbaed3a7a050028c75ac910926a87ae876f |
|
MD5 | 7fee693091eb96ff527c5069bd746161 |
|
BLAKE2b-256 | 5f39e1fb0a68960da312ca249aa7a9f7633661d49db6fb73dbe527343b3b756d |