<?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 Event break multiline PowerShell Transcript Log in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Event-break-multiline-PowerShell-Transcript-Log/m-p/754967#M119814</link>
    <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am ingesting PowerShell Transcript Logs through a data diode. I use the Diode Sender and receiver addons:&lt;BR /&gt;&lt;BR /&gt;Diode Sender Addon Splunk&lt;BR /&gt;&lt;A href="https://splunkbase.splunk.com/app/6357" target="_blank" rel="noopener"&gt;https://splunkbase.splunk.com/app/6357&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Diode Receiver Addon Splunk&lt;BR /&gt;&lt;A href="https://splunkbase.splunk.com/app/6358" target="_blank" rel="noopener"&gt;https://splunkbase.splunk.com/app/6358&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The reason of using these addons is to maintain the metadata after passing the diode. Metadata are encapsulated in the log sent and decapsulated before getting indexed.&lt;/P&gt;&lt;P&gt;Raw logs are received as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;42&amp;gt;Oct 29 11:34:30 host1.domain.local i=windows|t=1761737670|st=powershell:transcript|s=C:\Transcripts\20251029\PowerShell_transcript.host1.xlLj7Isz.20251029113430.txt|h=host1.domain.local|r=**********************
Windows PowerShell transcript start
Start time: 20251029113430
Username: DOMAIN\SYSTEM
RunAs User: DOMAIN\SYSTEM
Configuration Name: 
Machine: host1 (Microsoft Windows NT 6.2.9200.0)
Host Application: C:\Program Files\Veeam\Availability Console\CommunicationAgent\Veeam.MBP.Agent.exe
Process ID: 10696
PSVersion: 5.1.17763.7919
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.17763.7919
BuildVersion: 10.0.17763.7919
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
PS&amp;gt;$m = Get-Module -Name 'Veeam.Backup.PowerShell' -ListAvailable
if (!$m) { Add-PSSnapin VeeamPSSnapIn }
$m = $null
Connect-VBRServer -server localhost

PS&amp;gt;Get-VBRFailoverPlan

PS&amp;gt;Disconnect-VBRServer
Remove-Module -Name 'Veeam.Backup.PowerShell' -Force -ErrorAction SilentlyContinue&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Logs are sent to an Edge Processor.&lt;/P&gt;&lt;P&gt;There I see that the single sample log is broken into several ones using the newline as a line breaker.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="diode-syslog sourcetype" style="width: 793px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/40722i40D7E997C91D85AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="sourcetype_3.png" alt="diode-syslog sourcetype" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;diode-syslog sourcetype&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="diode-syslog sourcetype" style="width: 793px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/40720iF8549831498FC76C/image-size/large?v=v2&amp;amp;px=999" role="button" title="sourcetype_2.png" alt="diode-syslog sourcetype" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;diode-syslog sourcetype&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="diode-syslog sourcetype" style="width: 795px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/40721i1E8EA4B401A051D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="sourcetype_1.png" alt="diode-syslog sourcetype" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;diode-syslog sourcetype&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Edge Processor - Event Breaking" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/40719i8A2904CDE13FB2E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="edge_processor_event_breaking.png" alt="Edge Processor - Event Breaking" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Edge Processor - Event Breaking&lt;/span&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;What are the sourcetype settings in order to properly split my events. All events arrive with &amp;lt;42&amp;gt; header, but I don't see that in Edge Processor so I don't know if it is stripped of before event breaking function.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;End Goal:&lt;/STRONG&gt;&lt;BR /&gt;After event is properly parsed, I want to use&amp;nbsp;&lt;BR /&gt;Hurricane Labs Add-on for Windows PowerShell Transcript addon (&lt;A href="https://splunkbase.splunk.com/app/4984" target="_blank" rel="noopener"&gt;https://splunkbase.splunk.com/app/4984&lt;/A&gt;) and extract all the fields of the PS transcript log.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;With kind regards,&lt;/P&gt;&lt;P&gt;Christos&lt;/P&gt;</description>
    <pubDate>Thu, 30 Oct 2025 08:40:14 GMT</pubDate>
    <dc:creator>bibibo</dc:creator>
    <dc:date>2025-10-30T08:40:14Z</dc:date>
    <item>
      <title>Event break multiline PowerShell Transcript Log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-break-multiline-PowerShell-Transcript-Log/m-p/754967#M119814</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am ingesting PowerShell Transcript Logs through a data diode. I use the Diode Sender and receiver addons:&lt;BR /&gt;&lt;BR /&gt;Diode Sender Addon Splunk&lt;BR /&gt;&lt;A href="https://splunkbase.splunk.com/app/6357" target="_blank" rel="noopener"&gt;https://splunkbase.splunk.com/app/6357&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Diode Receiver Addon Splunk&lt;BR /&gt;&lt;A href="https://splunkbase.splunk.com/app/6358" target="_blank" rel="noopener"&gt;https://splunkbase.splunk.com/app/6358&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The reason of using these addons is to maintain the metadata after passing the diode. Metadata are encapsulated in the log sent and decapsulated before getting indexed.&lt;/P&gt;&lt;P&gt;Raw logs are received as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;42&amp;gt;Oct 29 11:34:30 host1.domain.local i=windows|t=1761737670|st=powershell:transcript|s=C:\Transcripts\20251029\PowerShell_transcript.host1.xlLj7Isz.20251029113430.txt|h=host1.domain.local|r=**********************
Windows PowerShell transcript start
Start time: 20251029113430
Username: DOMAIN\SYSTEM
RunAs User: DOMAIN\SYSTEM
Configuration Name: 
Machine: host1 (Microsoft Windows NT 6.2.9200.0)
Host Application: C:\Program Files\Veeam\Availability Console\CommunicationAgent\Veeam.MBP.Agent.exe
Process ID: 10696
PSVersion: 5.1.17763.7919
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.17763.7919
BuildVersion: 10.0.17763.7919
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
PS&amp;gt;$m = Get-Module -Name 'Veeam.Backup.PowerShell' -ListAvailable
if (!$m) { Add-PSSnapin VeeamPSSnapIn }
$m = $null
Connect-VBRServer -server localhost

PS&amp;gt;Get-VBRFailoverPlan

PS&amp;gt;Disconnect-VBRServer
Remove-Module -Name 'Veeam.Backup.PowerShell' -Force -ErrorAction SilentlyContinue&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Logs are sent to an Edge Processor.&lt;/P&gt;&lt;P&gt;There I see that the single sample log is broken into several ones using the newline as a line breaker.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="diode-syslog sourcetype" style="width: 793px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/40722i40D7E997C91D85AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="sourcetype_3.png" alt="diode-syslog sourcetype" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;diode-syslog sourcetype&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="diode-syslog sourcetype" style="width: 793px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/40720iF8549831498FC76C/image-size/large?v=v2&amp;amp;px=999" role="button" title="sourcetype_2.png" alt="diode-syslog sourcetype" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;diode-syslog sourcetype&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="diode-syslog sourcetype" style="width: 795px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/40721i1E8EA4B401A051D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="sourcetype_1.png" alt="diode-syslog sourcetype" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;diode-syslog sourcetype&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Edge Processor - Event Breaking" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/40719i8A2904CDE13FB2E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="edge_processor_event_breaking.png" alt="Edge Processor - Event Breaking" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Edge Processor - Event Breaking&lt;/span&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;What are the sourcetype settings in order to properly split my events. All events arrive with &amp;lt;42&amp;gt; header, but I don't see that in Edge Processor so I don't know if it is stripped of before event breaking function.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;End Goal:&lt;/STRONG&gt;&lt;BR /&gt;After event is properly parsed, I want to use&amp;nbsp;&lt;BR /&gt;Hurricane Labs Add-on for Windows PowerShell Transcript addon (&lt;A href="https://splunkbase.splunk.com/app/4984" target="_blank" rel="noopener"&gt;https://splunkbase.splunk.com/app/4984&lt;/A&gt;) and extract all the fields of the PS transcript log.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;With kind regards,&lt;/P&gt;&lt;P&gt;Christos&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 08:40:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-break-multiline-PowerShell-Transcript-Log/m-p/754967#M119814</guid>
      <dc:creator>bibibo</dc:creator>
      <dc:date>2025-10-30T08:40:14Z</dc:date>
    </item>
  </channel>
</rss>

