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!

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...