<?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: Datamodel Mandatory Index in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/When-did-having-an-index-become-mandatory-Is-it-possible-to-turn/m-p/609863#M13666</link>
    <description>&lt;P&gt;- Go to settings &amp;gt; all configuration &amp;gt; search for your datamodel constraint index e.g. cim_Malware_indexes&lt;BR /&gt;- edit the macro definition from "()" to "(index=*)" and save the macro&lt;BR /&gt;- go back to the datamodel constraint and remove any additional info not included in the original constraint "&lt;SPAN&gt;(`cim_Malware_indexes`) tag=malware tag=attack"&lt;/SPAN&gt; and save the datamodel&lt;BR /&gt;- go back to the macro and reverse "(index=*)" to "()"&lt;BR /&gt;&lt;BR /&gt;your datamodel should now have the (`cim_Malware_indexes`) tag=malware tag=attack as it's constraints&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Aug 2022 20:03:50 GMT</pubDate>
    <dc:creator>sylax</dc:creator>
    <dc:date>2022-08-17T20:03:50Z</dc:date>
    <item>
      <title>When did having an index become mandatory? Is it possible to turn off the mandatory feature?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/When-did-having-an-index-become-mandatory-Is-it-possible-to-turn/m-p/532538#M4398</link>
      <description>&lt;P&gt;I'm doing some testing and figured out I need to run this in a savedsearch to extract the JSON field values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=dam sourcetype="imperva:dam"
| eval dam_json=_raw
| rex field=dam_json mode=sed "s/^.* \{/{/g"
| eval dam_json=replace(dam_json, "\\\\", "-") 
| spath input=dam_json&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This removes the header "&lt;SPAN class="t"&gt;Dec&lt;/SPAN&gt; &lt;SPAN class="t"&gt;9&lt;/SPAN&gt; &lt;SPAN class="t"&gt;20:15:27&lt;/SPAN&gt; &lt;SPAN class="t"&gt;FQDN&lt;/SPAN&gt;" and leaves the JSON between the {}.&amp;nbsp; When I try to use the saved search in a datamodel I get this error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;In handler 'datamodeledit': Error in 'Imperva_DB_Audit': Dataset constraints must specify at least one index. &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="search-string"&gt;The Splunk version on my laptop is Splunk 8.1.0 (build f57c09e87251).&amp;nbsp; On the production system we are running Splunk 7.3.6 (build 47d8552a4d84) and an index isn't necessary since we have one datamodel with this as the constraints.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;dlp_rule_severity="HIGH"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="search-string"&gt;So two questions.&amp;nbsp; When did having an index become mandatory?&amp;nbsp; Is it possible to turn off the mandatory feature?&amp;nbsp; If not, we will have to go through our datamodels before we upgrade.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;TIA,&lt;/P&gt;
&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 20:07:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/When-did-having-an-index-become-mandatory-Is-it-possible-to-turn/m-p/532538#M4398</guid>
      <dc:creator>jwhughes58</dc:creator>
      <dc:date>2022-08-17T20:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Datamodel Mandatory Index</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/When-did-having-an-index-become-mandatory-Is-it-possible-to-turn/m-p/543913#M5284</link>
      <description>&lt;P&gt;Hi -&lt;/P&gt;&lt;P&gt;I can't offer any suggestions, but am also running into the same issue.&amp;nbsp; Using a DM on Splunk 7.2.1 with no problems.&amp;nbsp; The DM constraints use tags from eventtypes that include the index/sourcetype.&amp;nbsp; Have never seen the "Dataset constraints must specify at least one index" on 7.2.1&lt;/P&gt;&lt;P&gt;However migrating the DM over to an 8.0.6 splunk, this error appears for each root search:&amp;nbsp; "This object has no explicit index constraint. Consider adding one for better performance." and editing a constraint results in "In handler 'datamodeledit': Error in 'WT_CloudInfrastructure': Dataset constraints must specify at least one index."&amp;nbsp; &amp;nbsp;All relevant tags/eventytpes exist.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;As Joe asked, is it possible to disable or fix this problem?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 19:03:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/When-did-having-an-index-become-mandatory-Is-it-possible-to-turn/m-p/543913#M5284</guid>
      <dc:creator>krispyswitch</dc:creator>
      <dc:date>2021-03-15T19:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Datamodel Mandatory Index</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/When-did-having-an-index-become-mandatory-Is-it-possible-to-turn/m-p/609863#M13666</link>
      <description>&lt;P&gt;- Go to settings &amp;gt; all configuration &amp;gt; search for your datamodel constraint index e.g. cim_Malware_indexes&lt;BR /&gt;- edit the macro definition from "()" to "(index=*)" and save the macro&lt;BR /&gt;- go back to the datamodel constraint and remove any additional info not included in the original constraint "&lt;SPAN&gt;(`cim_Malware_indexes`) tag=malware tag=attack"&lt;/SPAN&gt; and save the datamodel&lt;BR /&gt;- go back to the macro and reverse "(index=*)" to "()"&lt;BR /&gt;&lt;BR /&gt;your datamodel should now have the (`cim_Malware_indexes`) tag=malware tag=attack as it's constraints&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 20:03:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/When-did-having-an-index-become-mandatory-Is-it-possible-to-turn/m-p/609863#M13666</guid>
      <dc:creator>sylax</dc:creator>
      <dc:date>2022-08-17T20:03:50Z</dc:date>
    </item>
  </channel>
</rss>

