Getting Data In

How to send a dictionary or a json as an extraData with Splunk mint iOS SDK

splunkmint5
New Member

I have an iOS project where I send analytics logs.
I have a dictionary ( [String: Any] ) that I am able to send to Splunk using a JSON encoder and making HTTP request with Alamofire.

That works perfectly but that does not handle logs when the device is offline. I have read that the Splunk mint SDK handles/cache a certain amount of logs when the device is offline. I want to continue using all the dashboards I made with Splunk cloud.

I am able to send log events with the SDK but my issue is that I can only send a dictionary of type [String: String] with no sub-dictionary. I would like to send a dictionary with sub dictionaries etc of type [String: Any] like I am able to do with an HTTP request.
I am using this function: Mint.sharedInstance().logEvent(withName: "name", logLevel: InfoLogLevel, extraData: data)
Thanks for your help!

0 Karma
Get Updates on the Splunk Community!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...