<?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 Is this search just counting the number of events in this datamodel? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-this-search-just-counting-the-number-of-events-in-this/m-p/270742#M81491</link>
    <description>&lt;P&gt;This is the search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count from datamodel=Authentication where nodename=Authentication.Privileged_Authentication by _time span=1h | timechart span=1h count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is this search counting the number of events in the "Priviliged_Aunthentication" node from the datamodel "Authentication" grouped into 1 hour periods?&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2016 17:32:24 GMT</pubDate>
    <dc:creator>Justin1224</dc:creator>
    <dc:date>2016-10-24T17:32:24Z</dc:date>
    <item>
      <title>Is this search just counting the number of events in this datamodel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-this-search-just-counting-the-number-of-events-in-this/m-p/270742#M81491</link>
      <description>&lt;P&gt;This is the search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count from datamodel=Authentication where nodename=Authentication.Privileged_Authentication by _time span=1h | timechart span=1h count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is this search counting the number of events in the "Priviliged_Aunthentication" node from the datamodel "Authentication" grouped into 1 hour periods?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 17:32:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-this-search-just-counting-the-number-of-events-in-this/m-p/270742#M81491</guid>
      <dc:creator>Justin1224</dc:creator>
      <dc:date>2016-10-24T17:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is this search just counting the number of events in this datamodel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-this-search-just-counting-the-number-of-events-in-this/m-p/270743#M81492</link>
      <description>&lt;P&gt;"Authentication" is the object name. The "nodename" on tstats is not hostname. It is to specify the node-name of the object hierarchy on CIM model.&lt;BR /&gt;
More info about nodename.&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/Tstats" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/Tstats&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;An accelerated data model object&lt;/STRONG&gt;&lt;BR /&gt;
When you select data within an accelerated data model, you can further constrain your search by indicating an object within that data model that you want to select data from. You do this by using a where clause to indicate the nodename of the data model object. The nodename value indicates where the object is in a data model hierarchy.&lt;/P&gt;

&lt;P&gt;When you use nodename in a search, you always use the following construction: FROM datamodel= where nodename=..&amp;lt;...&amp;gt;..&lt;/P&gt;

&lt;P&gt;For example, say you want to search on an object named scheduled_reports in your internal_server data model. In that data model, the scheduled_reports object is a child of the scheduler object, which in turn is a child of the server root event object. This means that you should represent the scheduled_report object in your search as &lt;CODE&gt;nodename=server.scheduler.scheduled_reports&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;If you run that search and decide you want to search on the contents of the scheduler data model object instead, you would use &lt;CODE&gt;nodename=server.scheduler&lt;/CODE&gt; in your new search.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:32:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-this-search-just-counting-the-number-of-events-in-this/m-p/270743#M81492</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2020-09-29T11:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is this search just counting the number of events in this datamodel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-this-search-just-counting-the-number-of-events-in-this/m-p/270744#M81493</link>
      <description>&lt;P&gt;Right, so the search is doing what I described then?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 21:20:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-this-search-just-counting-the-number-of-events-in-this/m-p/270744#M81493</guid>
      <dc:creator>Justin1224</dc:creator>
      <dc:date>2016-10-24T21:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is this search just counting the number of events in this datamodel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-this-search-just-counting-the-number-of-events-in-this/m-p/270745#M81494</link>
      <description>&lt;P&gt;You're right. However, the last &lt;CODE&gt;timechart&lt;/CODE&gt; is not needed&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 21:56:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-this-search-just-counting-the-number-of-events-in-this/m-p/270745#M81494</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-24T21:56:51Z</dc:date>
    </item>
  </channel>
</rss>

