Mobile Analytics (iOS) with Storm

As those who have been following articles about mobile analytics with Storm and Splunk already know, there’s been demand for an  iOS library to help iOS app developers to debug their apps. I’m happy to announce that the iOS library is now available for use with Storm REST API input. The installation steps to use this libary are trivial:

[1] Get a Splunk Storm account by registering yourself here:

[2] Create a Storm project and obtain the STORM PROJECT ID and STORM ACCESS TOKEN at the STORM REST API page:

Splunk Storm REST API page

[3] Then download the logging library from or

[4] Unzip it and drag the splunkmobileanalytics folder into the project.

[5] Select Relative to Project at Reference Type, then click Add.

[6] In the AppDelegate interface file (AppDelegate.h), import Storm.h, like so:

#import "Storm.h"
// other awesome codes that you are writing

[7] In the AppDelegate implementation file (AppDelegate.m), provide the stormAPIProjectId and stormAPIAccessToken values in the message

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    // Set the view controller as the window's root view controller and display.
    self.window.rootViewController = self.viewController;
    [self.window makeKeyAndVisible];

    [Storm stormAPIProjectId:@"YOUR_STORM_PROJECT_ID" stormAPIAccessToken:@"YOUR_STORM_ACCESS_TOKEN];

    return YES;

[8] You are set! Splunk Storm is now integrated seamlessly into your iOS mobile app!

This is a sample snapshot of what the stacktrace looks like in Storm upon the triggering of any uncaught exceptions from an iPhone emulator:

There are certainly areas to improve. Nevertheless, give it a try and tell us your experience integrating it into your iOS apps – what works and what doesn’t. Feedback and suggestions are very much appreciated! Next: sending stacktrace into Splunk Enterprise and Storm via TCP

Nicholas Key

Posted by


Show All Tags
Show Less Tags