Skip to main content

Export Sentry issues to CSV for further analysis

Project description

sentry2csv

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
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.

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

pip

Alternatively, you can install sentry2csv using standard pip.

  1. pip3 install sentry2csv

Use

  1. Get a Sentry API Token from https://sentry.io/settings/account/api/auth-tokens/
  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.

Development

  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.

Source Distribution

sentry2csv-1.2.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

sentry2csv-1.2.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file sentry2csv-1.2.0.tar.gz.

File metadata

  • Download URL: sentry2csv-1.2.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for sentry2csv-1.2.0.tar.gz
Algorithm Hash digest
SHA256 56ce33e0bf631c8716367428d1b10dcdb7e6a3497d0e92366c480be10488f8a5
MD5 c792fd4d31e2eebcedd25d7ee6b41966
BLAKE2b-256 041fbc0cf96b3b400b2e2146cf2d6b5af74e5f239ad908aeead0a5e7bc7d95bd

See more details on using hashes here.

File details

Details for the file sentry2csv-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: sentry2csv-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for sentry2csv-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2eac84e3788fb2f92caf11fafb0f22d6a1aa5331fd949281efd2adb876222d6
MD5 0dfdcdcff973cc46818cf2f06514b460
BLAKE2b-256 2718be97acee84c65bf48385efc32d6d0430ec05d098a6d9b1691dea9e85902e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page