Quantcast
Channel: Questions in topic: "props.conf"
Viewing all articles
Browse latest Browse all 1485

How do you edit props.conf to correctly parse data from a PowerShell script?

$
0
0
I have a powershell script which feeds data into Splunk via a UDP port. The output of the script is as follows: 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 When the data is ingested into Splunk, it treats that input as two separate events splitting on the line where `AbatStartTime` and `AbatEndTime` are located due to there being two different date/time stamps. I am having trouble nailing down the correct regex syntax for parsing `AbatStartTime` as the official timestamp for the event. I have the powershell script output a double carriage return to separate the event. My `sourcetype` config is as follows 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 Any assistance would be appreciated.

Viewing all articles
Browse latest Browse all 1485

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>