<?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: Tracking software install/removal in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Tracking-software-install-removal/m-p/416245#M73550</link>
    <description>&lt;P&gt;How to track software install/removal? If from the registry, how do I back-search? Given my OP, how do I make my existing search work to tell me when new software is installed?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Aug 2018 20:13:07 GMT</pubDate>
    <dc:creator>tmontney</dc:creator>
    <dc:date>2018-08-21T20:13:07Z</dc:date>
    <item>
      <title>Tracking software install/removal</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tracking-software-install-removal/m-p/416243#M73548</link>
      <description>&lt;P&gt;For Windows, I've been trying to track installs/removals. &lt;STRONG&gt;MSI was a breeze. I'm attempting now anything that isn't MSI.&lt;/STRONG&gt; I'm tracking changes in the following paths:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall&lt;/LI&gt;
&lt;LI&gt;HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Two issues arose:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Uninstalled items just delete the whole key. I'd need to do a back-reference to determine what that was.&lt;/LI&gt;
&lt;LI&gt;Programs that upgrade tend to do another CreateKey. It's difficult to differentiate between Installs and Upgrades.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Here's an example of my search for detecting installs.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="winregmon" process_image!=*msiexec* registry_type="SetValue" *displayname*
| join type=left max=0 host data [
search index="winregmon" process_image!=*msiexec* (registry_type="CreateKey" OR registry_type="DeleteKey") latest=-16m
| dedup host
| rename registry_type as last_registry_type
| rename data AS deleted_data]
| dedup host data
| eval Date=strftime(_time, "%m-%d-%Y")
| eval Time=strftime(_time, "%H:%M:%S")
| table host data Date Time last_registry_type
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In my various modifications of this search, either I detect installs + upgrades (i just want installs) or I miss data all together. I'm aware the search above isn't right, just for reference. My idea:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Find the most recent registry change, per host&lt;/LI&gt;
&lt;LI&gt;Back-reference to the last Key modification event, Create/Delete&lt;/LI&gt;
&lt;LI&gt;If Create, it's an upgrade. If Delete, it's an install.&lt;/LI&gt;
&lt;LI&gt;Only show Installs (DeleteKey being the last event, for that host)&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:57:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tracking-software-install-removal/m-p/416243#M73548</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2020-09-29T20:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking software install/removal</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tracking-software-install-removal/m-p/416244#M73549</link>
      <description>&lt;P&gt;what is your question?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 20:10:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tracking-software-install-removal/m-p/416244#M73549</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-08-21T20:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking software install/removal</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tracking-software-install-removal/m-p/416245#M73550</link>
      <description>&lt;P&gt;How to track software install/removal? If from the registry, how do I back-search? Given my OP, how do I make my existing search work to tell me when new software is installed?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 20:13:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tracking-software-install-removal/m-p/416245#M73550</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2018-08-21T20:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking software install/removal</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tracking-software-install-removal/m-p/416246#M73551</link>
      <description>&lt;P&gt;Do you think may be monitoring WIndows event logs to this would be better?&lt;BR /&gt;
&lt;A href="https://support.solarwinds.com/Success_Center/Log_Event_Manager_(LEM)/Knowledgebase_Articles/Monitor_software_installation_and_uninstallation_events"&gt;https://support.solarwinds.com/Success_Center/Log_Event_Manager_(LEM)/Knowledgebase_Articles/Monitor_software_installation_and_uninstallation_events&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 20:31:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tracking-software-install-removal/m-p/416246#M73551</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-08-21T20:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking software install/removal</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tracking-software-install-removal/m-p/416247#M73552</link>
      <description>&lt;P&gt;That's MSI. As mentioned in my OP, I've already covered MSI (note I exclude msiexec in my search, too). Granted, I've encouraged everyone when installing to install by MSI (so it can be tracked). But I still want to catch non-MSI installs.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 14:49:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tracking-software-install-removal/m-p/416247#M73552</guid>
      <dc:creator>tmontney</dc:creator>
      <dc:date>2018-08-22T14:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking software install/removal</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Tracking-software-install-removal/m-p/552233#M91639</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/159131"&gt;@tmontney&lt;/a&gt;&amp;nbsp; how did you catch MSI installs? I am trying to create alerts to track MSI Installations and MSI Removals.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 15:38:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Tracking-software-install-removal/m-p/552233#M91639</guid>
      <dc:creator>radparik</dc:creator>
      <dc:date>2021-05-19T15:38:49Z</dc:date>
    </item>
  </channel>
</rss>

