<?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: Searching from a data model using tstats, why am I getting &amp;quot;Error in 'TsidxStats': Invalid root event object for datamodel&amp;quot;? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Searching-from-a-data-model-using-tstats-why-am-I-getting-quot/m-p/127224#M34486</link>
    <description>&lt;P&gt;@MuS &lt;BR /&gt;
I was able to run the query | tstats values(server.licenser.quota.gb) AS gb from datamodel=internal_server by _time it gave me the Gb info against the time. Thanks &lt;/P&gt;</description>
    <pubDate>Fri, 17 Jul 2015 14:52:59 GMT</pubDate>
    <dc:creator>sushmitha_mj</dc:creator>
    <dc:date>2015-07-17T14:52:59Z</dc:date>
    <item>
      <title>Searching from a data model using tstats, why am I getting "Error in 'TsidxStats': Invalid root event object for datamodel"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-from-a-data-model-using-tstats-why-am-I-getting-quot/m-p/127218#M34480</link>
      <description>&lt;P&gt;I created a data model "Aggregate". I added an object which is a root search object named "usage". There is a search that is written for this object which I can view when I go into the data model. I am having trouble searching from this data model. &lt;BR /&gt;
The search I wrote: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats max(Usage.field_value) from datamodel="Aggregate"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where Usage is the root search object and Aggregate is data model name. I get the error &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Error in 'TsidxStats': Invalid root event object for datamodel "
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How should I edit my search?  Thanks in advance. &lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2015 19:16:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-from-a-data-model-using-tstats-why-am-I-getting-quot/m-p/127218#M34480</guid>
      <dc:creator>sushmitha_mj</dc:creator>
      <dc:date>2015-07-16T19:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Searching from a data model using tstats, why am I getting "Error in 'TsidxStats': Invalid root event object for datamodel"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-from-a-data-model-using-tstats-why-am-I-getting-quot/m-p/127219#M34481</link>
      <description>&lt;P&gt;Hi sushmitha_mj,&lt;/P&gt;

&lt;P&gt;did you create a root event for your data model? Data models are composed chiefly of object hierarchies built on root event objects, see the docs for more details &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.4/Knowledge/Designdatamodelobjects#Add_a_root_event_object_to_a_data_model"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.4/Knowledge/Designdatamodelobjects#Add_a_root_event_object_to_a_data_model&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2015 19:55:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-from-a-data-model-using-tstats-why-am-I-getting-quot/m-p/127219#M34481</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-07-16T19:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Searching from a data model using tstats, why am I getting "Error in 'TsidxStats': Invalid root event object for datamodel"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-from-a-data-model-using-tstats-why-am-I-getting-quot/m-p/127220#M34482</link>
      <description>&lt;P&gt;Thank @MuS&lt;/P&gt;

&lt;P&gt;I added a root object with a constrain and the query now works. But I get no results and no error. How do I query to access my root search output? &lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2015 20:10:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-from-a-data-model-using-tstats-why-am-I-getting-quot/m-p/127220#M34482</guid>
      <dc:creator>sushmitha_mj</dc:creator>
      <dc:date>2015-07-16T20:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Searching from a data model using tstats, why am I getting "Error in 'TsidxStats': Invalid root event object for datamodel"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-from-a-data-model-using-tstats-why-am-I-getting-quot/m-p/127221#M34483</link>
      <description>&lt;P&gt;try this run everywhere search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats values(server.licenser.quota.gb) AS gb from datamodel=internal_server by _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will get you the license quota from the Splunk build in internal data model. Adopt it to your needs&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2015 20:26:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-from-a-data-model-using-tstats-why-am-I-getting-quot/m-p/127221#M34483</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-07-16T20:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Searching from a data model using tstats, why am I getting "Error in 'TsidxStats': Invalid root event object for datamodel"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-from-a-data-model-using-tstats-why-am-I-getting-quot/m-p/127222#M34484</link>
      <description>&lt;P&gt;@MuS&lt;BR /&gt;
I am getting the following error&lt;BR /&gt;
Error in 'TsidxStats': Could not find datamodel: internal_server &lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2015 20:52:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-from-a-data-model-using-tstats-why-am-I-getting-quot/m-p/127222#M34484</guid>
      <dc:creator>sushmitha_mj</dc:creator>
      <dc:date>2015-07-16T20:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Searching from a data model using tstats, why am I getting "Error in 'TsidxStats': Invalid root event object for datamodel"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-from-a-data-model-using-tstats-why-am-I-getting-quot/m-p/127223#M34485</link>
      <description>&lt;P&gt;Make sure, you're in the search app and have admin rights.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2015 21:02:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-from-a-data-model-using-tstats-why-am-I-getting-quot/m-p/127223#M34485</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-07-16T21:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Searching from a data model using tstats, why am I getting "Error in 'TsidxStats': Invalid root event object for datamodel"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Searching-from-a-data-model-using-tstats-why-am-I-getting-quot/m-p/127224#M34486</link>
      <description>&lt;P&gt;@MuS &lt;BR /&gt;
I was able to run the query | tstats values(server.licenser.quota.gb) AS gb from datamodel=internal_server by _time it gave me the Gb info against the time. Thanks &lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2015 14:52:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Searching-from-a-data-model-using-tstats-why-am-I-getting-quot/m-p/127224#M34486</guid>
      <dc:creator>sushmitha_mj</dc:creator>
      <dc:date>2015-07-17T14:52:59Z</dc:date>
    </item>
  </channel>
</rss>

