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!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...