Getting Data In

How to line break this structured log?

afamoyib
Path Finder

I have a script generating an output, however all my output is being registered as one event. I am trying to break each line into an. I tried using the line breaker with regex for end of line. But that fails.

Example of the output.

Status                    Tag                    DisplayName
------                    ----                   -----------
Quit                      jflower                James
Terminated                wpunch                 William
Quit                      madams                 Mark
Terminated                jtota                  Jeff
Quit                      wbaker                 Baker
Quit                      sjohson                Shawn

I am trying to extract the header and

0 Karma

afamoyib
Path Finder

It was not breaking properly because of how powershell formats it output. I converted the output to csv and then ingested it into splunk. It worked like a charm

0 Karma

woodcock
Esteemed Legend
0 Karma

richgalloway
SplunkTrust
SplunkTrust

What sourcetype did you specify for this input?
The default LINE_BREAKER setting is [\r\n] which should break events after EOL.
Please share your props.conf settings.
Your posting was cut off. What are you trying to extract with the header?

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...