<?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: How do you edit props.conf to correctly parse data from a PowerShell script? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-edit-props-conf-to-correctly-parse-data-from-a/m-p/438978#M124917</link>
    <description>&lt;P&gt;Thank you both for you advise, I did a little tweaking and the final setting that got it working were&lt;/P&gt;

&lt;P&gt;[activebatch]&lt;BR /&gt;
BREAK_ONLY_BEFORE = AbatInstanceID&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
CHARSET = ASCII&lt;BR /&gt;
DATETIME_CONFIG = &lt;BR /&gt;
LINE_BREAKER = AbatInstanceID&lt;BR /&gt;
NO_BINARY_CHECK = true&lt;BR /&gt;
TIME_FORMAT = %m/%d/%Y %H:%M:%S&lt;BR /&gt;
TIME_PREFIX = AbatStartTime=&lt;BR /&gt;
TZ = America/New_York&lt;BR /&gt;
category = Custom&lt;BR /&gt;
pulldown_type = true&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 23:04:00 GMT</pubDate>
    <dc:creator>ckeller2791</dc:creator>
    <dc:date>2020-09-29T23:04:00Z</dc:date>
    <item>
      <title>How do you edit props.conf to correctly parse data from a PowerShell script?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-edit-props-conf-to-correctly-parse-data-from-a/m-p/438975#M124914</link>
      <description>&lt;P&gt;I have a powershell script which feeds data into Splunk via a UDP port. The output of the script is as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;AbatInstanceID=32107862
AbatBatchID=32107825
AbatPlanName=ABM - Partner Remittance Loader -ASOBilling
AbatJobName=Execute Java partnerRemittanceLoader
AbatJobPath=/HXSPRD01/Promotable Objects/Plans/Business Processes/ABM/ABM - Partner Remittance Loader -ASOBilling
AbatStatus=Successful
AbatQueue=ExecutionQ1 HXSPRD01
AbatStartTime=01/31/2019 11:00:10
AbatEndTime=01/31/2019 11:00:36
AbatElapsedTime=0:0:0:23
AbatLogFile=\\CO1-BAXPRD01\ASCI_ABATLOG\CO1BASPRD01\ExecutionQ1 HXSPRD01\Execute Java partnerRemittanceLoader_0032107862-31Jan2019-160001_001.log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When the data is ingested into Splunk, it treats that input as two separate events splitting on the line where  &lt;CODE&gt;AbatStartTime&lt;/CODE&gt; and &lt;CODE&gt;AbatEndTime&lt;/CODE&gt; are located due to there being two different date/time stamps.  I am having trouble nailing down the correct regex syntax for parsing &lt;CODE&gt;AbatStartTime&lt;/CODE&gt; as the official timestamp for the event.   I have the powershell script output a double carriage return to separate the event. My &lt;CODE&gt;sourcetype&lt;/CODE&gt; config is as follows&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;CHARSET = ASCII
BREAK_ONLY_BERFORE = ([\r\n\r\n]+)
LINE_BREAK = ([\r\n]+)
MAX_TIMESTAMP_LOOKAHEAD = 150
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = false
TIME_PREFIX = ^AbatStartTime=\s
TZ = America/New_York
category = Custom
pulldown_type = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any assistance would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 16:35:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-edit-props-conf-to-correctly-parse-data-from-a/m-p/438975#M124914</guid>
      <dc:creator>ckeller2791</dc:creator>
      <dc:date>2019-01-31T16:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do you edit props.conf to correctly parse data from a PowerShell script?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-edit-props-conf-to-correctly-parse-data-from-a/m-p/438976#M124915</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6471iB2B812E2680582FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I think your sourcetype should be like this : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ sourcetypename]
SHOULD_LINEMERGE=true
CHARSET=ASCII
BREAK_ONLY_BEFORE=AbatInstanceID
TIME_PREFIX=AbatStartTime=
TIME_FORMAT=%m/%d/%Y %H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD=150
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Jan 2019 18:03:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-edit-props-conf-to-correctly-parse-data-from-a/m-p/438976#M124915</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-01-31T18:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do you edit props.conf to correctly parse data from a PowerShell script?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-edit-props-conf-to-correctly-parse-data-from-a/m-p/438977#M124916</link>
      <description>&lt;P&gt;You almost certainly have too many settings that are likely to cause problems.   Try this ONLY:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n\r\n]+)
NO_BINARY_CHECK = true
TIME_PREFIX = [\r\n]+AbatStartTime\s*=\s*
TIME_FORMAT = %m/%d/%Y %H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD = 19
TZ = America/New_York
category = Custom
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Feb 2019 00:11:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-edit-props-conf-to-correctly-parse-data-from-a/m-p/438977#M124916</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-01T00:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do you edit props.conf to correctly parse data from a PowerShell script?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-edit-props-conf-to-correctly-parse-data-from-a/m-p/438978#M124917</link>
      <description>&lt;P&gt;Thank you both for you advise, I did a little tweaking and the final setting that got it working were&lt;/P&gt;

&lt;P&gt;[activebatch]&lt;BR /&gt;
BREAK_ONLY_BEFORE = AbatInstanceID&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
CHARSET = ASCII&lt;BR /&gt;
DATETIME_CONFIG = &lt;BR /&gt;
LINE_BREAKER = AbatInstanceID&lt;BR /&gt;
NO_BINARY_CHECK = true&lt;BR /&gt;
TIME_FORMAT = %m/%d/%Y %H:%M:%S&lt;BR /&gt;
TIME_PREFIX = AbatStartTime=&lt;BR /&gt;
TZ = America/New_York&lt;BR /&gt;
category = Custom&lt;BR /&gt;
pulldown_type = true&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:04:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-edit-props-conf-to-correctly-parse-data-from-a/m-p/438978#M124917</guid>
      <dc:creator>ckeller2791</dc:creator>
      <dc:date>2020-09-29T23:04:00Z</dc:date>
    </item>
  </channel>
</rss>

