<?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 Re: Compare Fields in Data Model vs all other Available fields in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Compare-Fields-in-Data-Model-vs-all-other-Available-fields/m-p/426722#M5947</link>
    <description>&lt;P&gt;I'm sorry if my question is not very descriptive. Let me attempt to elaborate. I have a datamodel named MyDataModel. This datamodel includes the fields _value, time, _key, location. I would like to create a search that allows me to see all the fields in that particular data model (fields, _value, _key, location) vs all the fields in a specific data set (index=logix_logs) to see if there are any matches. The goal is to see if there are any fields in the datamodel that do not exist in the index=log_logs data set so that they can be created if need be. Hope that helps.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 20:17:14 GMT</pubDate>
    <dc:creator>admins123</dc:creator>
    <dc:date>2020-09-29T20:17:14Z</dc:date>
    <item>
      <title>Compare Fields in Data Model vs all other Available fields</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Compare-Fields-in-Data-Model-vs-all-other-Available-fields/m-p/426720#M5945</link>
      <description>&lt;P&gt;Hello I'm new to Splunk and I've encountered an issue trying to figure out how to create a search query that will allow me to compare all the fields in a datamodel vs all other fields. Example :I have a datamodel named MyDataModel. This datamodel includes the fields _value, time, _key, location. I would like to create a search that allows me to see all the fields in that particular data model (fields, _value, _key, location) vs all the fields in a specific data set (index=logix_logs) to see if there are any matches. The goal is to see if there are any fields in the datamodel that do not exist in the index=logix_logs data set so that they can be created if need be. Hope that helps. but I'm unsure how to complete the query to give me the information I need. Any help will be greatly appreciated!&lt;/P&gt;

&lt;P&gt;Search that brings out all fields in a datamodel:&lt;BR /&gt;
|datamodel&lt;BR /&gt;
|spath output=modelName path=modelName&lt;BR /&gt;
|spath output=foo path=objects{}&lt;BR /&gt;
|mvexpand foo&lt;BR /&gt;
|spath input=foo output=objectName path=objectName&lt;BR /&gt;
|spath input=foo output=foo path=fields{}&lt;BR /&gt;
|mvexpand foo&lt;BR /&gt;
|spath input=foo output=fieldName path=fieldName&lt;BR /&gt;
|spath input=foo output=type path=type&lt;BR /&gt;
|table modelName,objectName,fieldName,type |search objectName="My DataModel"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:19:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Compare-Fields-in-Data-Model-vs-all-other-Available-fields/m-p/426720#M5945</guid>
      <dc:creator>admins123</dc:creator>
      <dc:date>2020-09-29T20:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Fields in Data Model vs all other Available fields</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Compare-Fields-in-Data-Model-vs-all-other-Available-fields/m-p/426721#M5946</link>
      <description>&lt;P&gt;Which fields are you trying to compare? Could you please elaborate?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 05:51:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Compare-Fields-in-Data-Model-vs-all-other-Available-fields/m-p/426721#M5946</guid>
      <dc:creator>manish_singh_77</dc:creator>
      <dc:date>2018-07-05T05:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Fields in Data Model vs all other Available fields</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Compare-Fields-in-Data-Model-vs-all-other-Available-fields/m-p/426722#M5947</link>
      <description>&lt;P&gt;I'm sorry if my question is not very descriptive. Let me attempt to elaborate. I have a datamodel named MyDataModel. This datamodel includes the fields _value, time, _key, location. I would like to create a search that allows me to see all the fields in that particular data model (fields, _value, _key, location) vs all the fields in a specific data set (index=logix_logs) to see if there are any matches. The goal is to see if there are any fields in the datamodel that do not exist in the index=log_logs data set so that they can be created if need be. Hope that helps.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:17:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Compare-Fields-in-Data-Model-vs-all-other-Available-fields/m-p/426722#M5947</guid>
      <dc:creator>admins123</dc:creator>
      <dc:date>2020-09-29T20:17:14Z</dc:date>
    </item>
  </channel>
</rss>

