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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...