<?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: Not getting EventCodes 4103 and 4104 even though logging is enabled (powershell). in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Not-getting-EventCodes-4103-and-4104-even-though-logging-is/m-p/537353#M90063</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227795"&gt;@weetabixsplunk&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a look here, and let me know if this helps : &lt;A href="https://docs.splunk.com/Documentation/UBA/5.0.4/GetDataIn/AddPowerShell" target="_blank"&gt;https://docs.splunk.com/Documentation/UBA/5.0.4/GetDataIn/AddPowerShell&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2021 06:36:49 GMT</pubDate>
    <dc:creator>DavidHourani</dc:creator>
    <dc:date>2021-01-27T06:36:49Z</dc:date>
    <item>
      <title>Not getting EventCodes 4103 and 4104 even though logging is enabled (powershell).</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-getting-EventCodes-4103-and-4104-even-though-logging-is/m-p/533376#M89592</link>
      <description>&lt;P&gt;I'm trying to get better visibility of our PowerShell activity in one of my boxes (cola182) so I enabled process Auditing (EventCode 4688) - Which is working perfectly fine.&lt;/P&gt;&lt;P&gt;However, when I attempted to enable Module Logging (4103)&amp;nbsp; and Script Block Logging (4104) it doesn't seem like I am receiving these logs.&lt;/P&gt;&lt;P&gt;I went to Policy Editor &amp;gt; Computer Configuration &amp;gt; Windows Components &amp;gt; Powershell logging and made sure that the following were enabled (literally the 3 of them are showing as enabled):&lt;BR /&gt;&lt;BR /&gt;Turn on Module Logging&lt;/P&gt;&lt;P&gt;Turn on PowerShell Script Block Logging&lt;/P&gt;&lt;P&gt;Turn on PowerShell transcription.&lt;/P&gt;&lt;P&gt;I ran a crappy little test.ps1 script in cola182 in hopes that this activity would be reflected in my splunk logs:&lt;BR /&gt;&lt;BR /&gt;$alert = { "I like chicken salad sandwiches" }&lt;BR /&gt;&amp;amp; $alert&lt;BR /&gt;&amp;amp; $alert&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;When I check splunk, I am able to see this activity,&amp;nbsp; but it doesn't come up under 4103&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;LogName=Windows&lt;/SPAN&gt; &lt;SPAN class="t"&gt;PowerShell&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="t"&gt;SourceName=PowerShell&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="t"&gt;EventCode=800&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="t"&gt;EventType=4&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Type=Information&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="t"&gt;ComputerName=Cola182&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN class="t"&gt;TaskCategory=Pipeline&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Execution&lt;/SPAN&gt; &lt;SPAN class="t h"&gt;Details&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="t"&gt;OpCode=Info&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="t"&gt;RecordNumber=6578&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="t"&gt;Keywords=Classic&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Message=Pipeline&lt;/SPAN&gt; &lt;SPAN class="t"&gt;execution&lt;/SPAN&gt; &lt;SPAN class="t"&gt;details&lt;/SPAN&gt; &lt;SPAN class="t"&gt;for&lt;/SPAN&gt; &lt;SPAN class="t"&gt;command&lt;/SPAN&gt; &lt;SPAN class="t"&gt;line:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN class="t h"&gt;ParameterBinding&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;Out-Default&lt;SPAN&gt;)&lt;/SPAN&gt;: name=&lt;SPAN&gt;"&lt;/SPAN&gt;InputObject&lt;SPAN&gt;"; &lt;/SPAN&gt;value=&lt;SPAN&gt;"I like chicken salad sandwiches&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;As simple as my initial script is, technically it's a script block. Howcome I'm not able to see this activity? What am I missing?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 22:07:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-getting-EventCodes-4103-and-4104-even-though-logging-is/m-p/533376#M89592</guid>
      <dc:creator>weetabixsplunk</dc:creator>
      <dc:date>2020-12-16T22:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting EventCodes 4103 and 4104 even though logging is enabled (powershell).</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Not-getting-EventCodes-4103-and-4104-even-though-logging-is/m-p/537353#M90063</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227795"&gt;@weetabixsplunk&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a look here, and let me know if this helps : &lt;A href="https://docs.splunk.com/Documentation/UBA/5.0.4/GetDataIn/AddPowerShell" target="_blank"&gt;https://docs.splunk.com/Documentation/UBA/5.0.4/GetDataIn/AddPowerShell&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 06:36:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Not-getting-EventCodes-4103-and-4104-even-though-logging-is/m-p/537353#M90063</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2021-01-27T06:36:49Z</dc:date>
    </item>
  </channel>
</rss>

