<?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: tag as datamodel attribute in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/603750#M8880</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;when searching through accelerated data models with tstats you need to specify FROM.&lt;/P&gt;&lt;P&gt;This should work with your query:&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;| tstats summariesonly=t dc(Authentication.tag) as tag from datamodel=Authentication where nodename=Authentication.Failed_Authentication by Authentication.app Authentication.src&amp;nbsp;&lt;/PRE&gt;</description>
    <pubDate>Wed, 29 Jun 2022 12:31:52 GMT</pubDate>
    <dc:creator>smurf</dc:creator>
    <dc:date>2022-06-29T12:31:52Z</dc:date>
    <item>
      <title>How to tag as datamodel attribute?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/603737#M8879</link>
      <description>&lt;P&gt;I'm confused a bit. I use CIM datamodels.&lt;/P&gt;
&lt;P&gt;The "tag" field is both a filter for choosing events applicable to a particular datamodel and is an attribute within the datasets.&lt;/P&gt;
&lt;P&gt;My datamodel is accelerated.&lt;/P&gt;
&lt;P&gt;When I do a simple&lt;/P&gt;
&lt;PRE&gt;| from datamodel:Authentication.Failed_Authentication &lt;/PRE&gt;
&lt;P&gt;I get events with some fields selected (in fast mode) - I assume that those are fields correspoding to the dataset-defined fields.&lt;/P&gt;
&lt;P&gt;What's most important for me here is that the "tag" field is populated as with any normal search.&lt;/P&gt;
&lt;P&gt;But when I do&lt;/P&gt;
&lt;PRE&gt;&amp;nbsp;| tstats summariesonly=t dc(Authentication.tag) as tag where nodename=Authentication.Failed_Authentication by Authentication.app Authentication.src&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I get zero count for dc(Authentication.tag).&lt;/P&gt;
&lt;P&gt;It would suggest that the tags are not indexed . All other fields that I tried (like src, dest, user and so on) seem to be indexed OK and I'm able to tstats for them but the tag field is not. Is it treated somehow differently? Or is it because tag is multivalued?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 13:28:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/603737#M8879</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-06-30T13:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: tag as datamodel attribute</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/603750#M8880</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;when searching through accelerated data models with tstats you need to specify FROM.&lt;/P&gt;&lt;P&gt;This should work with your query:&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;| tstats summariesonly=t dc(Authentication.tag) as tag from datamodel=Authentication where nodename=Authentication.Failed_Authentication by Authentication.app Authentication.src&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jun 2022 12:31:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/603750#M8880</guid>
      <dc:creator>smurf</dc:creator>
      <dc:date>2022-06-29T12:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: tag as datamodel attribute</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/603756#M8881</link>
      <description>&lt;P&gt;Naaah. That was my mistake in copy-pasting (didn't want to paste the whole search since it had more fields which were not important at the time). My original SPL did include the "from datamodel=" clause.&lt;/P&gt;&lt;P&gt;But thanks for the heads-up.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 12:41:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/603756#M8881</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-06-29T12:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: tag as datamodel attribute</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/603771#M8882</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;the tag field is mandatory in the scheduled searches to populate Data Models and it's one of the most important fields to define a Data Model, but it isn't a field present by default in Data Models (don't ask me why!).&lt;/P&gt;&lt;P&gt;For this reason your search fails.&lt;/P&gt;&lt;P&gt;If you need tag as field of a data Model, you can customize your Data Model adding the tag field, then you can use it.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 14:07:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/603771#M8882</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-06-29T14:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: tag as datamodel attribute</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/603773#M8883</link>
      <description>&lt;P&gt;Ha!&lt;/P&gt;&lt;P&gt;The thing is that it is a field within the datamodel.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/CIM/5.0.1/User/Authentication" target="_blank"&gt;https://docs.splunk.com/Documentation/CIM/5.0.1/User/Authentication&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If it wasn't, I wouldn't be asking about it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 14:10:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/603773#M8883</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-06-29T14:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: tag as datamodel attribute</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/603775#M8884</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;probably is a new in CIM 5.x because I used ES in december and I had to manually add tag field to all Data Models!&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 14:12:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/603775#M8884</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-06-29T14:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: tag as datamodel attribute</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/603841#M8885</link>
      <description>&lt;P&gt;I tried it today with the latest CIM version and I had it populated. Just as OP had in the query dc(Authentication.tag) worked fine.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 17:58:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/603841#M8885</guid>
      <dc:creator>smurf</dc:creator>
      <dc:date>2022-06-29T17:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: tag as datamodel attribute</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/603864#M8886</link>
      <description>&lt;P&gt;Hmm... it's interesting. Might that mean that the fields are not getting populated if the app was updated while the acceleration was already on? (I don't know if it was so - it's customer's environment. Just guessing.)&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 20:39:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/603864#M8886</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-06-29T20:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: tag as datamodel attribute</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/603893#M8887</link>
      <description>&lt;P&gt;Replying to myself - no, it's not that. I enabled acceleration this morning on my lab system.&lt;/P&gt;&lt;P&gt;The Authentication datamodel does have the tag field (the CIM app version is 4.18.0.&lt;/P&gt;&lt;PRE&gt;| tstats summariesonly=t dc(Authentication.tag) as tag count from datamodel=Authentication where&lt;BR /&gt;nodename=Authentication.Failed_Authentication&lt;/PRE&gt;&lt;P&gt;Shows 0 tags and 318 count.&lt;/P&gt;&lt;P&gt;I'm lost.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 06:50:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/603893#M8887</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-06-30T06:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: tag as datamodel attribute</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/604132#M8896</link>
      <description>&lt;P&gt;Try checking datamodels.conf for tags_whitelist.&lt;/P&gt;&lt;P&gt;According to docs:&lt;/P&gt;&lt;PRE&gt;* Only the tag fields identified in this allow list (and the event types tagged
  by them) are loaded when you perform searches with this data model.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They are defined as default in CIM's DMs but maybe you are rewriting it in you local conf?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 13:57:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/604132#M8896</guid>
      <dc:creator>smurf</dc:creator>
      <dc:date>2022-07-01T13:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: tag as datamodel attribute</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/604151#M8897</link>
      <description>&lt;P&gt;Nice find! Thanks. That might be it.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 16:48:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-tag-as-datamodel-attribute/m-p/604151#M8897</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-07-01T16:48:47Z</dc:date>
    </item>
  </channel>
</rss>

