<?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 How to split up a search in a data model in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-split-up-a-search-in-a-data-model/m-p/256002#M391</link>
    <description>&lt;P&gt;I'm trying to take a search and put it into a data model. I really don't understand the documentation online about using root events and transaction events and the other stuff. I've done simple constraints with just one root event and that has been fine. I'm pretty sure I need to start with a root event but, since you can't put pipes in the constraints, I'm having a difficult time getting this search into the model. Here is the search:&lt;/P&gt;

&lt;P&gt;(EventCode=4624 OR EventCode=4625) AND Logon_Type=3 Authentication_Package=NTLM NOT Account_Name="ANONYMOUS LOGON" AND Account_Domain="CHI" [ search EventCode=8001 NOT Domain_name_of_user="CHI" | where _time &amp;gt; relative_time(_time,"-5s") | eval Workstation_Name = host | fields + Workstation_Name ]&lt;/P&gt;

&lt;P&gt;Any help with this is greatly appreciated!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 12:33:45 GMT</pubDate>
    <dc:creator>pitassi17</dc:creator>
    <dc:date>2020-09-29T12:33:45Z</dc:date>
    <item>
      <title>How to split up a search in a data model</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-split-up-a-search-in-a-data-model/m-p/256002#M391</link>
      <description>&lt;P&gt;I'm trying to take a search and put it into a data model. I really don't understand the documentation online about using root events and transaction events and the other stuff. I've done simple constraints with just one root event and that has been fine. I'm pretty sure I need to start with a root event but, since you can't put pipes in the constraints, I'm having a difficult time getting this search into the model. Here is the search:&lt;/P&gt;

&lt;P&gt;(EventCode=4624 OR EventCode=4625) AND Logon_Type=3 Authentication_Package=NTLM NOT Account_Name="ANONYMOUS LOGON" AND Account_Domain="CHI" [ search EventCode=8001 NOT Domain_name_of_user="CHI" | where _time &amp;gt; relative_time(_time,"-5s") | eval Workstation_Name = host | fields + Workstation_Name ]&lt;/P&gt;

&lt;P&gt;Any help with this is greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:33:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-split-up-a-search-in-a-data-model/m-p/256002#M391</guid>
      <dc:creator>pitassi17</dc:creator>
      <dc:date>2020-09-29T12:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to split up a search in a data model</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-split-up-a-search-in-a-data-model/m-p/256003#M392</link>
      <description>&lt;P&gt;You cannot have sub-searches in the constraint of a search in a datamodel.&lt;/P&gt;

&lt;P&gt;You can only put in the first part&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;(EventCode=4624 OR EventCode=4625) AND Logon_Type=3 Authentication_Package=NTLM NOT Account_Name="ANONYMOUS LOGON" AND Account_Domain="CHI"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;You should also restrict your search to specific index(es) or sourcetype(s) of some kind.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 15:02:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-split-up-a-search-in-a-data-model/m-p/256003#M392</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-01-27T15:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to split up a search in a data model</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-split-up-a-search-in-a-data-model/m-p/256004#M393</link>
      <description>&lt;P&gt;So there is no way for me to add a field from a subsearch into my main search in data models? So I can only use a child to narrow down my results more?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 15:06:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-split-up-a-search-in-a-data-model/m-p/256004#M393</guid>
      <dc:creator>pitassi17</dc:creator>
      <dc:date>2017-01-27T15:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to split up a search in a data model</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-split-up-a-search-in-a-data-model/m-p/256005#M394</link>
      <description>&lt;P&gt;Not in the search constraint. You can try adding it via a lookup field, but that would require you populating a lookup table with the Workstation_Name field via a savedsearch. That may be potentially risky if the Workstation_Name field value is very time sensitive relative to your first search. Risky being that your datamodel may not be accurate if the savedsearch to populate the lookup does not run reliably.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:37:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-split-up-a-search-in-a-data-model/m-p/256005#M394</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2020-09-29T12:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to split up a search in a data model</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-split-up-a-search-in-a-data-model/m-p/256006#M395</link>
      <description>&lt;P&gt;Didn't get your subsearch-where clause. Won't &lt;CODE&gt;_time &amp;gt; relative_time(_time,"-5s")&lt;/CODE&gt; always be true?? Or you want to check the _time of base search with subsearch, and that's not possible.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 15:55:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-split-up-a-search-in-a-data-model/m-p/256006#M395</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-27T15:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to split up a search in a data model</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-split-up-a-search-in-a-data-model/m-p/256007#M396</link>
      <description>&lt;P&gt;I'm new to this so I wouldn't be surprised if that doesn't do what I think. I'm more interested in the data model aspect of the question. If it helps, pretend the where clause isn't there.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 15:59:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-split-up-a-search-in-a-data-model/m-p/256007#M396</guid>
      <dc:creator>pitassi17</dc:creator>
      <dc:date>2017-01-27T15:59:54Z</dc:date>
    </item>
  </channel>
</rss>

