Giter Club home page Giter Club logo

bugsnag-extract's Introduction

Bugsnag Event Extractor

Overview

This Ruby CLI tool is designed to extract event data from the Bugsnag API and output it in a CSV format. It's useful for analyzing and archiving Bugsnag events for projects and organizations. The script handles pagination and rate limiting, ensuring all desired data is fetched efficiently and reliably.

Requirements

  • Ruby
  • Bundler

Installation

  1. Clone or download this repository:
    git clone https://github.com/cbartlett/bugsnag-extract
  2. Navigate to the script's directory:
    cd bugsnag-extract

Usage

Several command-line options are available for specifying details like the Bugsnag authentication token, organization name, project name, and error ID.

Command-Line Options:

  • -tTOKEN or --token=TOKEN: Required. Your Bugsnag authentication token.
  • -oORG or --organization=ORG: Bugsnag organization name. If omitted, the first organization accessible to the token will be used.
  • -pPROJECT or --project=PROJECT: Bugsnag project name within the specified organization. If omitted, the first project in the organization will be used.
  • -eERROR_ID or --error-id=ERROR_ID: Required. The error ID for which events are to be fetched.

Example:

./script.rb -t YOUR_BUGSNAG_TOKEN -e YOUR_ERROR_ID

The script will output the events data in CSV format to standard output. Redirect the output to a file if you want to save it.

Handling Rate Limits:

The script includes logic to handle Bugsnag API's rate limiting. If the rate limit is exceeded, the script will pause for a brief period before retrying the request.

Contributing

Contributions to this project are welcome. Please ensure that your code adheres to the existing style and that all tests pass.

License

Released under the terms of the MIT license.

bugsnag-extract's People

Contributors

cbartlett avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.