<?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: Comparing results to identify values that have a certain value in previous records in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Comparing-results-to-identify-values-that-have-a-certain-value/m-p/742942#M240984</link>
    <description>&lt;P&gt;Very kewl &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Will give it a shot for sure !&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Mar 2025 13:56:02 GMT</pubDate>
    <dc:creator>Blueochotona</dc:creator>
    <dc:date>2025-03-28T13:56:02Z</dc:date>
    <item>
      <title>Comparing results to identify values that have a certain value in previous records</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-results-to-identify-values-that-have-a-certain-value/m-p/742925#M240981</link>
      <description>&lt;P&gt;The two raw results are as follows :&amp;nbsp;&lt;/P&gt;&lt;P&gt;(1)&lt;/P&gt;&lt;PRE&gt;EventType="Device" Event="InstallProfileConfirmed" User="sysadmin" EnrollmentUser="hasubram" DeviceFriendlyName="blabla MacBook Air macOS 15.3.2 Q6LW" EventSource="Device" EventModule="Devices" EventCategory="Command" EventData="Profile=Apple macOS Apple Intelligence Restrictions" Event Timestamp: Mar 28 09:29:40&lt;/PRE&gt;&lt;P&gt;(2)&lt;/P&gt;&lt;PRE&gt;EventType="Device" Event="DeviceOperatingSystemChanged" User="sysadmin" EnrollmentUser="hasubram" DeviceFriendlyName="blabla MacBook Air macOS 15.3.2 Q6LW" EventSource="Device" EventModule="Devices" EventCategory="Assignment" EventData="Device=75639" Event Timestamp: Mar 28 09:29:29&lt;/PRE&gt;&lt;P&gt;Hoping to combine a search to identify (1)‘s&amp;nbsp;DeviceFriendlyName="blabla MacBook Air macOS 15.3.2 Q6LW" which is a shared key between two results , as long (2) happens before (1) from a chronological experience.&lt;/P&gt;&lt;P&gt;I am already using the following to try and exclude certain results too :&amp;nbsp;&lt;/P&gt;&lt;P&gt;Index=*** &amp;lt;&amp;lt;Search Parameters&amp;gt;&amp;gt; NOT&amp;nbsp;&amp;nbsp;DeviceFriendlyName IN (*15.3.0*,*15.3.1*)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 12:24:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-results-to-identify-values-that-have-a-certain-value/m-p/742925#M240981</guid>
      <dc:creator>Blueochotona</dc:creator>
      <dc:date>2025-03-28T12:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing results to identify values that have a certain value in previous records</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-results-to-identify-values-that-have-a-certain-value/m-p/742935#M240982</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/308919"&gt;@Blueochotona&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a look at the following, does this achieve what you're looking for?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=*** &amp;lt;&amp;lt;Search Parameters&amp;gt;&amp;gt; NOT DeviceFriendlyName IN (*15.3.0*,*15.3.1*)
(
    (EventType="Device" Event="DeviceOperatingSystemChanged")
    OR
    (EventType="Device" Event="InstallProfileConfirmed")
)
| eval {Event}_time=_time
| stats
    latest(*_time) as *_time
    values(Event) as events by DeviceFriendlyName
    
| where MATCH(events, "DeviceOperatingSystemChanged") AND MATCH(events, "InstallProfileConfirmed") AND DeviceOperatingSystemChanged_time &amp;lt; InstallProfileConfirmed_time&lt;/LI-CODE&gt;&lt;P&gt;Please let me know how you get on and consider adding karma to this or any other answer if it has helped.&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Will&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 13:20:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-results-to-identify-values-that-have-a-certain-value/m-p/742935#M240982</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-03-28T13:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing results to identify values that have a certain value in previous records</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-results-to-identify-values-that-have-a-certain-value/m-p/742937#M240983</link>
      <description>&lt;P&gt;Here is a working example using makeresults too&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="EventType=\"Device\" Event=\"InstallProfileConfirmed\" User=\"sysadmin\" EnrollmentUser=\"hasubram\" DeviceFriendlyName=\"blabla MacBook Air macOS 15.3.2 Q6LW\" EventSource=\"Device\" EventModule=\"Devices\" EventCategory=\"Command\" EventData=\"Profile=Apple macOS Apple Intelligence Restrictions\" Event Timestamp: Mar 28 09:29:40" 
| append 
    [| makeresults 
    | eval _raw="EventType=\"Device\" Event=\"DeviceOperatingSystemChanged\" User=\"sysadmin\" EnrollmentUser=\"hasubram\" DeviceFriendlyName=\"blabla MacBook Air macOS 15.3.2 Q6LW\" EventSource=\"Device\" EventModule=\"Devices\" EventCategory=\"Assignment\" EventData=\"Device=75639\" Event Timestamp: Mar 28 09:29:29"] 
    | kv
| rex field=_raw "Event Timestamp: (?&amp;lt;EventTime&amp;gt;.+)$"    
| eval _time=strptime(EventTime, "%b %d %H:%M:%S")
| search DeviceFriendlyName="blabla MacBook Air macOS 15.3.2 Q6LW"
| eval {Event}_time=_time
| stats
    latest(*_time) as *_time
    values(Event) as events by DeviceFriendlyName
    
| where MATCH(events, "DeviceOperatingSystemChanged") AND MATCH(events, "InstallProfileConfirmed") AND DeviceOperatingSystemChanged_time &amp;lt; InstallProfileConfirmed_time&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="livehybrid_0-1743168301777.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38375iE79F144D1194022A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="livehybrid_0-1743168301777.png" alt="livehybrid_0-1743168301777.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know how you get on and consider adding karma to this or any other answer if it has helped.&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Will&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 13:25:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-results-to-identify-values-that-have-a-certain-value/m-p/742937#M240983</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-03-28T13:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing results to identify values that have a certain value in previous records</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-results-to-identify-values-that-have-a-certain-value/m-p/742942#M240984</link>
      <description>&lt;P&gt;Very kewl &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Will give it a shot for sure !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 13:56:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-results-to-identify-values-that-have-a-certain-value/m-p/742942#M240984</guid>
      <dc:creator>Blueochotona</dc:creator>
      <dc:date>2025-03-28T13:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing results to identify values that have a certain value in previous records</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-results-to-identify-values-that-have-a-certain-value/m-p/742956#M240985</link>
      <description>&lt;P&gt;Excellent, let us know how you get on &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 15:22:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-results-to-identify-values-that-have-a-certain-value/m-p/742956#M240985</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-03-28T15:22:59Z</dc:date>
    </item>
  </channel>
</rss>

