Getting Data In

Split new line in logs to multivalue during ingestion

jinhaochan
New Member

I have a custom log with the following preview:

Message="An account was successfully logged on." Security_ID="NT AUTHORITY\SYSTEM\nNT AUTHORITY\SYSTEM" Account_Domain="xxxxx\nNT AUTHORITY" Logon_Type="5"

When it's ingested into splunk, the fields extracted are

Message: An account was successfully logged on.
Account_Domain: xxxxx nNT AUTHORITY
Security_ID: NT AUTHORITY\SYSTEM\nNT AUTHORITY\SYSTEM
Logon_Type: 5

As you can see, the \n is not being broken down into multivalues.
What should i modify, so that the output will be as such

Message: An account was successfully logged on.
Account_Domain: xxxxx
NT AUTHORITY

Security_ID: NT AUTHORITY\SYSTEM
NT AUTHORITY\SYSTEM

Logon_Type: 5

I've tried modifying and playing around with props.conf, transforms.conf but to no avail.

Appreciate any help!

Tags (1)
0 Karma

woodcock
Esteemed Legend

This should not be an issue and should happen correctly automatically. How are you getting these events forwarded into splunk?

0 Karma

FrankVl
Ultra Champion

If this is some custom log that really contains the string Security_ID="NT AUTHORITY\SYSTEM\nNT AUTHORITY\SYSTEM", there certainly won't be automatic multi value functionality.

But that field extraction anyway doesn't happen at "ingestion". So this sounds to me like something that can perfectly be resolved with some evals in props.conf to split fields by "\n", right?

@jinhaochan any chance you can share some screenshots, rather than your own textual interpretation of what the events look like, just to prevent any confusion?

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...

[Puzzles] Solve, Learn, Repeat: Dereferencing XML to Fixed-length events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...