<?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 SPL query help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/SPL-query-help/m-p/691081#M235356</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Need some help with SPL query to compare the data from same host on 2 different dates and give me a status as "found" or "not found" . Status = Found if it finds the notepad is still installed on same Path on the same machine else not found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so far I have created a kvstore lookup to store the data but cannot come up with logic to compare the data&lt;/P&gt;&lt;P&gt;I have added sample data below. All help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HostNameExeVersion Path ProductName RunDate sourcetype&lt;BR /&gt;xxxxx null C:\Windows\WinSxS\amd64_microsoft-windows-notepad_31bf3856ad364e35_10.0.19041.3996_none_e397b63725671b86\f\notepad.exe null 2024-06-13 07:41:37 feed&lt;BR /&gt;xxxxx null C:\Windows\WinSxS\amd64_microsoft-windows-notepad_31bf3856ad364e35_10.0.19041.3996_none_e397b63725671b86\r\notepad.exe null 2024-06-14 07:41:37 feed&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2024 11:12:55 GMT</pubDate>
    <dc:creator>KulvinderSingh</dc:creator>
    <dc:date>2024-06-19T11:12:55Z</dc:date>
    <item>
      <title>SPL query help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-query-help/m-p/691081#M235356</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Need some help with SPL query to compare the data from same host on 2 different dates and give me a status as "found" or "not found" . Status = Found if it finds the notepad is still installed on same Path on the same machine else not found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so far I have created a kvstore lookup to store the data but cannot come up with logic to compare the data&lt;/P&gt;&lt;P&gt;I have added sample data below. All help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HostNameExeVersion Path ProductName RunDate sourcetype&lt;BR /&gt;xxxxx null C:\Windows\WinSxS\amd64_microsoft-windows-notepad_31bf3856ad364e35_10.0.19041.3996_none_e397b63725671b86\f\notepad.exe null 2024-06-13 07:41:37 feed&lt;BR /&gt;xxxxx null C:\Windows\WinSxS\amd64_microsoft-windows-notepad_31bf3856ad364e35_10.0.19041.3996_none_e397b63725671b86\r\notepad.exe null 2024-06-14 07:41:37 feed&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 11:12:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-query-help/m-p/691081#M235356</guid>
      <dc:creator>KulvinderSingh</dc:creator>
      <dc:date>2024-06-19T11:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: SPL query help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-query-help/m-p/691087#M235357</link>
      <description>&lt;P&gt;Assuming you have a way to uniquely identify your events, you could try something like this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Read current data&lt;/LI&gt;&lt;LI&gt;Set a field to 1&lt;/LI&gt;&lt;LI&gt;Append previous data (setting field to 2)&lt;/LI&gt;&lt;LI&gt;Sum the field by unique id&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Where sum is 3, the id exists in both data sets; where it is 2, it exists previous data set, where is 1 it only exists in current data set.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 11:44:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-query-help/m-p/691087#M235357</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-06-19T11:44:15Z</dc:date>
    </item>
  </channel>
</rss>

