Splunk Search

iOS Transaction & Events Not Working

cvDev
New Member

I can initialize my Mint instanced and it shows in the dashboard. I have a nice sample log like so.

[[Mint sharedInstance] logEventAsyncWithName:message logLevel:ErrorLogLevel andCompletionBlock:^(MintLogResult *mintLogResult) {
    NSString* logResultState = mintLogResult.resultState == OKResultState ? @"OK" : @"Error";
    NSLog(@"Log result: %@", logResultState);
}];

And sample transaction like so.

   [[Mint sharedInstance] transactionStart:@"Test_Start" andResultBlock:nil];
    [[Mint sharedInstance] transactionStop:@"Test_Stop" andResultBlock:nil];

I see in my console that the log result is "OK". And yet when I got to my dashboard I am shown sample data for events and transactions because nothing is posted yet.

Tags (3)
0 Karma

mattwestbright
New Member

The first parameter of the transactionStart:andResultBlock: and transactionStop:andResultBlock: methods are transactionName. You are starting a transaction called Test_Start but not stopping it. Similarly, you are stopping a Test_Stop transaction which was never started. Try this:

[[Mint sharedInstance] transactionStart:@"My_Test_Transaction" andResultBlock:nil];
[[Mint sharedInstance] transactionStop:@"My_Test_Transaction" andResultBlock:nil];

I hope this helps someone.
Matt.

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...