<?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: Calculated Field using Tags in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Calculated-Field-using-Tags/m-p/486792#M8038</link>
    <description>&lt;P&gt;Hello @harishbenne2,&lt;/P&gt;

&lt;P&gt;which data model are you using? If you speaking about Splunk CIM ( &lt;A href="https://docs.splunk.com/Documentation/CIM/latest/User/Overview"&gt;https://docs.splunk.com/Documentation/CIM/latest/User/Overview&lt;/A&gt; ) then you can use only predefined tags. If you want to use some custom tags like critical, then you need to extend (i.e. modify) the data model - this can be easy done by cloning a suitable data model: &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.3/Knowledge/Managedatamodels#Clone_a_data_model"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.3/Knowledge/Managedatamodels#Clone_a_data_model&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you use custom data model already then you have to check your data model if such tag and this field (content_priority) are included.&lt;/P&gt;</description>
    <pubDate>Tue, 05 May 2020 19:47:25 GMT</pubDate>
    <dc:creator>PavelP</dc:creator>
    <dc:date>2020-05-05T19:47:25Z</dc:date>
    <item>
      <title>Calculated Field using Tags</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Calculated-Field-using-Tags/m-p/486791#M8037</link>
      <description>&lt;P&gt;I have a list of URLs in my website that is critical. So, I have marked all those URLs with a &lt;CODE&gt;tag::critical&lt;/CODE&gt; using eventtype. However, I am unable to use &lt;CODE&gt;tag&lt;/CODE&gt; field to filter data within the datamodel. So, I want to setup a field called &lt;CODE&gt;content_priority&lt;/CODE&gt; that should have value of &lt;CODE&gt;"critical"&lt;/CODE&gt; if the event has a &lt;CODE&gt;critical&lt;/CODE&gt; tag , else set the field value to &lt;CODE&gt;"normal"&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;I have configured a calculated field with following eval expression: &lt;CODE&gt;if(tag=critical,"critical","normal")&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;However it does not seem to work at all. So, I am stuck with it now.&lt;/P&gt;
&lt;P&gt;Any guidance would be much helpful and appreciated.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 16:31:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Calculated-Field-using-Tags/m-p/486791#M8037</guid>
      <dc:creator>harishbenne2</dc:creator>
      <dc:date>2020-06-07T16:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Field using Tags</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Calculated-Field-using-Tags/m-p/486792#M8038</link>
      <description>&lt;P&gt;Hello @harishbenne2,&lt;/P&gt;

&lt;P&gt;which data model are you using? If you speaking about Splunk CIM ( &lt;A href="https://docs.splunk.com/Documentation/CIM/latest/User/Overview"&gt;https://docs.splunk.com/Documentation/CIM/latest/User/Overview&lt;/A&gt; ) then you can use only predefined tags. If you want to use some custom tags like critical, then you need to extend (i.e. modify) the data model - this can be easy done by cloning a suitable data model: &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.3/Knowledge/Managedatamodels#Clone_a_data_model"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.3/Knowledge/Managedatamodels#Clone_a_data_model&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you use custom data model already then you have to check your data model if such tag and this field (content_priority) are included.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 19:47:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Calculated-Field-using-Tags/m-p/486792#M8038</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-05-05T19:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Field using Tags</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Calculated-Field-using-Tags/m-p/486793#M8039</link>
      <description>&lt;P&gt;Hi @PavelP,&lt;/P&gt;

&lt;P&gt;I am using Web data model as of now. I didn’t know that we can’t use external tags within the data model queries. &lt;/P&gt;

&lt;P&gt;However, my main concern is “could I setup a calculated field in &lt;CODE&gt;index=DMZ&lt;/CODE&gt; based on tag values?” &lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 04:47:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Calculated-Field-using-Tags/m-p/486793#M8039</guid>
      <dc:creator>harishbenne2</dc:creator>
      <dc:date>2020-05-06T04:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Field using Tags</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Calculated-Field-using-Tags/m-p/486794#M8040</link>
      <description>&lt;P&gt;Hallo @harishbenne2 &lt;/P&gt;

&lt;P&gt;EVAL is done before tagging, so you cannot use tags in eval&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Searchtimeoperationssequence"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Searchtimeoperationssequence&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 06:41:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Calculated-Field-using-Tags/m-p/486794#M8040</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-05-06T06:41:33Z</dc:date>
    </item>
  </channel>
</rss>

