<?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 Data model in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Data-model/m-p/686811#M234240</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can I rewrite the following search using tstats and datamodel Network_Traffic?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=*pan* sourcetype="pan:threat" severity IN ("high", "critical")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;so far I have tested the following:&lt;/P&gt;&lt;P&gt;| tstats count from datamodel=Network_Traffic by All_Traffic.src_ip&lt;/P&gt;&lt;P&gt;but given the fact that “severity” is not a field included in the datamodel but just in the index, how can I add the condition severity IN&amp;nbsp;&lt;SPAN&gt;("high", "critical")?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2024 22:01:22 GMT</pubDate>
    <dc:creator>Hamza08</dc:creator>
    <dc:date>2024-05-07T22:01:22Z</dc:date>
    <item>
      <title>Data model</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-model/m-p/686811#M234240</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can I rewrite the following search using tstats and datamodel Network_Traffic?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=*pan* sourcetype="pan:threat" severity IN ("high", "critical")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;so far I have tested the following:&lt;/P&gt;&lt;P&gt;| tstats count from datamodel=Network_Traffic by All_Traffic.src_ip&lt;/P&gt;&lt;P&gt;but given the fact that “severity” is not a field included in the datamodel but just in the index, how can I add the condition severity IN&amp;nbsp;&lt;SPAN&gt;("high", "critical")?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 22:01:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-model/m-p/686811#M234240</guid>
      <dc:creator>Hamza08</dc:creator>
      <dc:date>2024-05-07T22:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Data model</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-model/m-p/686814#M234242</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt; command only works with indexed fields.&amp;nbsp; If the field is not indexed and is not in a data model (same thing, really), then it can't be used with &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 23:54:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-model/m-p/686814#M234242</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-05-07T23:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Data model</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-model/m-p/686825#M234248</link>
      <description>&lt;P&gt;So if a field is not “Cim compliant” doest that mean that it cannot be used in tstats?&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 03:33:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-model/m-p/686825#M234248</guid>
      <dc:creator>Hamza08</dc:creator>
      <dc:date>2024-05-08T03:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Data model</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-model/m-p/686879#M234269</link>
      <description>&lt;P&gt;CIM-compliance is different and has nothing to do with whether a field can be used in the &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt; command.&amp;nbsp; CIM-compliance means a field has a name and value described in the CIM manual (&lt;A href="https://docs.splunk.com/Documentation/CIM/5.3.2/User/Howtousethesereferencetables" target="_blank"&gt;https://docs.splunk.com/Documentation/CIM/5.3.2/User/Howtousethesereferencetables&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;The only fields the can be used in &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt; are those created at index-time or those in an accelerated datamodel.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 12:07:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-model/m-p/686879#M234269</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-05-08T12:07:23Z</dc:date>
    </item>
  </channel>
</rss>

