<?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 Datamodel and Pivot export with App in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Datamodel-and-Pivot-export-with-App/m-p/128196#M2897</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;If I create a datamodel and pivot, can I export it and bundle it with an app? &lt;/P&gt;

&lt;P&gt;What are the files created and how can I bundle it with the app?&lt;/P&gt;

&lt;P&gt;thanks, &lt;BR /&gt;
Rajesh&lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2013 20:33:29 GMT</pubDate>
    <dc:creator>rjain15</dc:creator>
    <dc:date>2013-11-04T20:33:29Z</dc:date>
    <item>
      <title>Datamodel and Pivot export with App</title>
      <link>https://community.splunk.com/t5/Reporting/Datamodel-and-Pivot-export-with-App/m-p/128196#M2897</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;If I create a datamodel and pivot, can I export it and bundle it with an app? &lt;/P&gt;

&lt;P&gt;What are the files created and how can I bundle it with the app?&lt;/P&gt;

&lt;P&gt;thanks, &lt;BR /&gt;
Rajesh&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 20:33:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Datamodel-and-Pivot-export-with-App/m-p/128196#M2897</guid>
      <dc:creator>rjain15</dc:creator>
      <dc:date>2013-11-04T20:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Datamodel and Pivot export with App</title>
      <link>https://community.splunk.com/t5/Reporting/Datamodel-and-Pivot-export-with-App/m-p/128197#M2898</link>
      <description>&lt;P&gt;Data models are stored on disk as JSON files, and they have associated configs in &lt;CODE&gt;datamodels.conf&lt;/CODE&gt; and metadata in &lt;CODE&gt;local.meta&lt;/CODE&gt; (for models that you create) and &lt;CODE&gt;default.meta&lt;/CODE&gt; (for models delivered with the product).&lt;/P&gt;

&lt;P&gt;Models that you create are stored in &lt;CODE&gt;&amp;lt;yourapp&amp;gt;/local/data/models&lt;/CODE&gt; while models delivered with the product can be found in &lt;CODE&gt;&amp;lt;myapp&amp;gt;/default/data/models.&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Currently there's no easy way to export data models from one app to another; you'll have to do it by hand, which means at least copying over the JSON file and the related stanza in &lt;CODE&gt;datamodels.conf&lt;/CODE&gt;. You should also move over the related &lt;CODE&gt;local.meta&lt;/CODE&gt; material for the datamodel as well. &lt;/P&gt;

&lt;P&gt;If you no longer want to see the data model in the originating app you should delete the data model from that app via the UI (or, by hand, delete the JSON file and remove the related stanza in &lt;CODE&gt;datamodels.conf&lt;/CODE&gt;).&lt;/P&gt;

&lt;P&gt;For more information see &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Managedatamodels#Manual_data_model_management"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Managedatamodels#Manual_data_model_management&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;As for pivots, to export them save them as a report; this will create a stanza in &lt;CODE&gt;savedsearches.conf&lt;/CODE&gt; which you can copy over to the &lt;CODE&gt;savedsearches.conf&lt;/CODE&gt; for your new app. You'll want to do this after you move the data model over, of course.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 21:47:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Datamodel-and-Pivot-export-with-App/m-p/128197#M2898</guid>
      <dc:creator>mattness</dc:creator>
      <dc:date>2013-11-04T21:47:36Z</dc:date>
    </item>
  </channel>
</rss>

