<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to send a dictionary or a json as an extraData with Splunk mint iOS SDK in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-a-dictionary-or-a-json-as-an-extraData-with-Splunk/m-p/455101#M78725</link>
    <description>&lt;P&gt;I have an iOS project where I send analytics logs. &lt;BR /&gt;
I have a dictionary ( [String: Any] ) that I am able to send to Splunk using a JSON encoder and making HTTP request with Alamofire.&lt;/P&gt;

&lt;P&gt;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.&lt;/P&gt;

&lt;P&gt;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.&lt;BR /&gt;
I am using this function: Mint.sharedInstance().logEvent(withName: "name", logLevel: InfoLogLevel, extraData: data)&lt;BR /&gt;
Thanks for your help!&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jul 2019 20:36:33 GMT</pubDate>
    <dc:creator>splunkmint5</dc:creator>
    <dc:date>2019-07-02T20:36:33Z</dc:date>
    <item>
      <title>How to send a dictionary or a json as an extraData with Splunk mint iOS SDK</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-a-dictionary-or-a-json-as-an-extraData-with-Splunk/m-p/455101#M78725</link>
      <description>&lt;P&gt;I have an iOS project where I send analytics logs. &lt;BR /&gt;
I have a dictionary ( [String: Any] ) that I am able to send to Splunk using a JSON encoder and making HTTP request with Alamofire.&lt;/P&gt;

&lt;P&gt;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.&lt;/P&gt;

&lt;P&gt;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.&lt;BR /&gt;
I am using this function: Mint.sharedInstance().logEvent(withName: "name", logLevel: InfoLogLevel, extraData: data)&lt;BR /&gt;
Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 20:36:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-a-dictionary-or-a-json-as-an-extraData-with-Splunk/m-p/455101#M78725</guid>
      <dc:creator>splunkmint5</dc:creator>
      <dc:date>2019-07-02T20:36:33Z</dc:date>
    </item>
  </channel>
</rss>

