<?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: Data Model adding indexes in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Data-Model-adding-indexes/m-p/324305#M5852</link>
    <description>&lt;P&gt;Thanks hardikJsheth,&lt;BR /&gt;
but MYTAG search is &lt;CODE&gt;index=my_index sourcetype=my_sourcetype&lt;/CODE&gt; so the problem isn't the default indexes path.&lt;BR /&gt;
The problem that I don't understand is why Data Model adds the condition &lt;CODE&gt;(index=* OR index=_*)&lt;/CODE&gt; ?&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jun 2017 13:33:30 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2017-06-01T13:33:30Z</dc:date>
    <item>
      <title>Data Model adding indexes</title>
      <link>https://community.splunk.com/t5/Reporting/Data-Model-adding-indexes/m-p/324303#M5850</link>
      <description>&lt;P&gt;Hi at all,&lt;BR /&gt;
I have a search very simple (&lt;CODE&gt;tag=MYTAG&lt;/CODE&gt;) that gives to me results that I use in a timechart count by a field (my_field) and correctly runs giving time distribution for the two values of my_field (OK, KO).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;tag=MYTAG | timechart count by my_field
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I use it in a Data Model, I have as result of the related Pivot three values (OK, KO, NULL) instead the correct two values.&lt;/P&gt;

&lt;P&gt;Exploding results as search, I see that Data Model added to my search (&lt;CODE&gt;tag=MYTAG&lt;/CODE&gt;) the additional condition&lt;BR /&gt;
&lt;CODE&gt;(index=* OR index=_*)&lt;/CODE&gt; that gives the problem of the NULL values.&lt;/P&gt;

&lt;P&gt;Why this appens? I was wrong in Data Model Configuration?&lt;BR /&gt;
Is there a way to avoid this?&lt;/P&gt;

&lt;P&gt;Thank you in advance.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:17:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Data-Model-adding-indexes/m-p/324303#M5850</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-29T14:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model adding indexes</title>
      <link>https://community.splunk.com/t5/Reporting/Data-Model-adding-indexes/m-p/324304#M5851</link>
      <description>&lt;P&gt;When you run tag=MYTAG | timechart count by my_field this query from search window it hits only the default indexes as per your role.  By default it's main index.  &lt;/P&gt;

&lt;P&gt;When you use the same search as base  search for your data models the default index will be that of the admin user.   &lt;/P&gt;

&lt;P&gt;You will get same result if you add add macro in your base search for data model:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;get_index&lt;/CODE&gt; | search tag="MYTAG"&lt;/P&gt;

&lt;P&gt;In the macro define only the index that you want to search rather than index=*.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 10:32:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Data-Model-adding-indexes/m-p/324304#M5851</guid>
      <dc:creator>hardikJsheth</dc:creator>
      <dc:date>2017-06-01T10:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Data Model adding indexes</title>
      <link>https://community.splunk.com/t5/Reporting/Data-Model-adding-indexes/m-p/324305#M5852</link>
      <description>&lt;P&gt;Thanks hardikJsheth,&lt;BR /&gt;
but MYTAG search is &lt;CODE&gt;index=my_index sourcetype=my_sourcetype&lt;/CODE&gt; so the problem isn't the default indexes path.&lt;BR /&gt;
The problem that I don't understand is why Data Model adds the condition &lt;CODE&gt;(index=* OR index=_*)&lt;/CODE&gt; ?&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 13:33:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Data-Model-adding-indexes/m-p/324305#M5852</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-06-01T13:33:30Z</dc:date>
    </item>
  </channel>
</rss>

