<?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: Different Search Results From Two Macros With Same Contents in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Different-Search-Results-From-Two-Macros-With-Same-Contents/m-p/583189#M10594</link>
    <description>&lt;P&gt;Thanks for the reply. Sadly I'm using AWS Workspaces Linux and&amp;nbsp;&lt;SPAN&gt;&amp;lt;ctrl&amp;gt;&amp;lt;shift&amp;gt;E doesn't work for some reason. Just prints the e character.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Feb 2022 10:16:59 GMT</pubDate>
    <dc:creator>securitypaul</dc:creator>
    <dc:date>2022-02-01T10:16:59Z</dc:date>
    <item>
      <title>Different Search Results From Two Macros With Same Contents</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Different-Search-Results-From-Two-Macros-With-Same-Contents/m-p/583178#M10591</link>
      <description>&lt;P&gt;Hello everyone. I'm looking for some assistance with a problem where I get differing search results from what should be the same search.&lt;/P&gt;&lt;P&gt;Backstory&lt;/P&gt;&lt;P&gt;I’m testing changes to the “ESCU - Malicious PowerShell Process - Execution Policy Bypass – Rule” so that I can filter out known PowerShell events.&lt;/P&gt;&lt;P&gt;Using the same search head, user,&amp;nbsp; date and time range, and what should be two identical macros, I get different search results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original search uses this macro: “malicious_powershell_process___execution_policy_bypass_filter”&lt;/P&gt;&lt;P&gt;The original search is:&lt;/P&gt;&lt;P&gt;| tstats `security_content_summariesonly` values(Processes.process_id) as process_id, values(Processes.parent_process_id) as parent_process_id values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=powershell.exe (Processes.process="* -ex*" OR Processes.process="* bypass *") by Processes.process_id, Processes.user, Processes.dest&lt;BR /&gt;| `drop_dm_object_name(Processes)`&lt;BR /&gt;| `security_content_ctime(firstTime)`&lt;BR /&gt;| `security_content_ctime(lastTime)`&lt;BR /&gt;| `malicious_powershell_process___execution_policy_bypass_filter`&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Search results original macro.PNG" style="width: 711px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17766i75CB6E59A0A01A38/image-dimensions/711x176?v=v2" width="711" height="176" role="button" title="Search results original macro.PNG" alt="Search results original macro.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The test search uses this macro: “malicious_powershell_process___execution_policy_bypass_filter-test”&lt;/P&gt;&lt;P&gt;The test search is:&lt;/P&gt;&lt;P&gt;| tstats `security_content_summariesonly` values(Processes.process_id) as process_id, values(Processes.parent_process_id) as parent_process_id values(Processes.process) as process min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where Processes.process_name=powershell.exe (Processes.process="* -ex*" OR Processes.process="* bypass *") by Processes.process_id, Processes.user, Processes.dest&lt;BR /&gt;| `drop_dm_object_name(Processes)`&lt;BR /&gt;| `security_content_ctime(firstTime)`&lt;BR /&gt;| `security_content_ctime(lastTime)`&lt;BR /&gt;| `malicious_powershell_process___execution_policy_bypass_filter-test`&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Search results test macro.PNG" style="width: 705px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17767iDBA7A27579C0961E/image-dimensions/705x164?v=v2" width="705" height="164" role="button" title="Search results test macro.PNG" alt="Search results test macro.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Both macros contain the same content to exclude Splunk Universal Forwarder PowerShell scripts:&lt;/P&gt;&lt;P&gt;search (process!="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -executionPolicy RemoteSigned -command \". 'C:\\Program Files\\SplunkUniversalForwarder\\etc\\apps\\Splunk_TA_windows\\bin\\powershell\\nt6-health.ps1'\"" AND process!="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -executionPolicy RemoteSigned -command \". 'c:\\Program Files\\SplunkUniversalForwarder\\etc\\apps\\Splunk_TA_windows\\bin\\powershell\\nt6-repl-stat.ps1'\"" AND process!="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -executionPolicy RemoteSigned -command \". 'c:\\Program Files\\SplunkUniversalForwarder\\etc\\apps\\Splunk_TA_windows\\bin\\powershell\\nt6-siteinfo.ps1'\"" AND process!="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -executionPolicy RemoteSigned -command \". 'C:\\Program Files\\SplunkUniversalForwarder\\etc\\apps\\Splunk_TA_windows\\bin\\powershell\\dns-zoneinfo.ps1'\"" AND process!="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -executionPolicy RemoteSigned -command \". 'C:\\Program Files\\SplunkUniversalForwarder\\etc\\apps\\Splunk_TA_windows\\bin\\powershell\\dns-health.ps1'\"")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Macros.PNG" style="width: 596px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17768iC748F86EE675F60A/image-dimensions/596x233?v=v2" width="596" height="233" role="button" title="Macros.PNG" alt="Macros.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When I run both searches I get different results and I’m unsure why. The macro appended -test works fine. When I copy its contents to the original macro, that search does not seem to use the new contents.&lt;/P&gt;&lt;P&gt;I made these changes last week and today get the same results.&lt;/P&gt;&lt;P&gt;Any ideas as to what might be causing this?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 09:11:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Different-Search-Results-From-Two-Macros-With-Same-Contents/m-p/583178#M10591</guid>
      <dc:creator>securitypaul</dc:creator>
      <dc:date>2022-02-01T09:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Different Search Results From Two Macros With Same Contents</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Different-Search-Results-From-Two-Macros-With-Same-Contents/m-p/583186#M10593</link>
      <description>&lt;P&gt;If you expand the macros (&amp;lt;ctrl&amp;gt;&amp;lt;shift&amp;gt;E) do they expand as you would expect?&lt;/P&gt;&lt;P&gt;I have noticed that sometimes "updated" macros are not always updated in a timely manner, but I haven't figured out when and why this is - usually I keep retrying the update until it works. Sorry, that that is not much help.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 09:56:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Different-Search-Results-From-Two-Macros-With-Same-Contents/m-p/583186#M10593</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-01T09:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Different Search Results From Two Macros With Same Contents</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Different-Search-Results-From-Two-Macros-With-Same-Contents/m-p/583189#M10594</link>
      <description>&lt;P&gt;Thanks for the reply. Sadly I'm using AWS Workspaces Linux and&amp;nbsp;&lt;SPAN&gt;&amp;lt;ctrl&amp;gt;&amp;lt;shift&amp;gt;E doesn't work for some reason. Just prints the e character.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 10:16:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Different-Search-Results-From-Two-Macros-With-Same-Contents/m-p/583189#M10594</guid>
      <dc:creator>securitypaul</dc:creator>
      <dc:date>2022-02-01T10:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Different Search Results From Two Macros With Same Contents</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Different-Search-Results-From-Two-Macros-With-Same-Contents/m-p/583349#M10598</link>
      <description>&lt;P&gt;Seems like it was a copy / paste oddity. I edited the macro again and copied / pasted the text back in. It works as expected now.&lt;/P&gt;&lt;P&gt;Perhaps there was some extra hidden characters that were causing an issue.&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 09:21:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Different-Search-Results-From-Two-Macros-With-Same-Contents/m-p/583349#M10598</guid>
      <dc:creator>securitypaul</dc:creator>
      <dc:date>2022-02-02T09:21:40Z</dc:date>
    </item>
  </channel>
</rss>

