Chomp Technology Blog

Getting Access to your Flurry Exception Logs

Posted in Uncategorized by Rob Wills on March 22, 2010

Flurry won’t give you access to more than one 15 record page of your exception log!

If you take your unhandled exceptions seriously (we do), analyzing them regularly is a top priority. To take the tedium out of manually paging and downloading all the individual CSV exports, you can use the Internet’s Swiss Army Knife™, curl.

If you’re on Mac OS X, curl is already installed. On Windows you will need to download and install.

First, use curl to log in to Flurry, obtaining the session cookie for future requests:

<youremail> and <yourpassword> needs to be URL encoded:

$ /usr/bin/php -r 'echo urlencode("rob@domain.com")."\n";'
  rob%40domain.com

$ curl --cookie-jar ./flurry.jar \
  -d "loginEmail=<youremail>&loginPassword=<yourpassword>&rememberMe=true&__checkbox_rememberMe=true" \
  -k https://dev.flurry.com/secure/loginAction.do
  • –cookie-jar stores the response cookie for later use
  • -d sends the POST data
  • -k turns off certificate verification

Grab the Project ID for your App by looking at the CSV download link from the Flurry Error listing page.

Now ask curl to repeatedly download each page of your exception log CSV export:

$ curl --cookie ./flurry.jar \
'http://dev.flurry.com/exceptionLogsCsv.do?projectID=<yourproject>&versionCut=versionsAll&intervalCut=allTime&direction=1&offset=[000-100:15]&pageSize=15' \
--output "exception#1.csv"

You’re ready to read those into iWork Numbers or Microsoft Excel one at a time, or you can go another step further and combine them all for a single exception log:

$ grep -h -v -e "^Timestamp" exception???.csv | sort > AllExceptions.csv

Now get on with tracking down your reported errors and uncaught exceptions.

Advertisement

2 Responses

Subscribe to comments with RSS.

  1. Tom said, on April 28, 2010 at 3:03 pm

    What do you think the chances are of ever getting a data export API or somesuch?

  2. Miker said, on May 20, 2010 at 4:25 pm

    There are new features popping up in Flurry all the time, so it wouldn’t surprise us if something of the sort appeared in due course. The team over there is really approachable though, if you have particular issues you should just contact them:

    http://www.flurry.com/about-us/contact-us.html

    We’ve always gotten great support and quick answers, even if the exact feature we want isn’t always available.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.