Getting Data In

Incomplete field value

swetar
New Member

Hi,
I am passing a log file . The field values for message field is incomplete. Also the Message field has many pattern.
Can any one suggest me. How can i handle this in prof.conf

Log file
Name=ABC
PLACE=XXX
MESSAGE=PQRS is a valid :CCCC is true
CATEGORY=ZEB
Output

NAME=ABC
PLACE=XXX
MESSAGE=PQRS
CATEGORY=ZEB

Thanks

0 Karma

woodcock
Esteemed Legend

Use a transform like this:

(?<_KEY_1>[^=\s]+)=(?<_VAL_1>[^=]+)(?=$|\s+[^=\s]+=)

See here:
https://regex101.com/r/4vV2LN/1

0 Karma

somesoni2
Revered Legend

YOu probably need to setup custom field extractions for this, specially for the fields which have multiple words, similar to this

https://regex101.com/r/ItDDD6/1

Also, if you've control over how the logging is done, then you could update your logger to log the field value within double quotes so that Splunk can automatically do the full field extraction.

0 Karma
Get Updates on the Splunk Community!

Wrapping Up Cybersecurity Awareness Month

October might be wrapping up, but for Splunk Education, cybersecurity awareness never goes out of season. ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

&#x1f5e3; You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...

What's New in Splunk Observability - October 2025

What’s New?    We’re excited to announce the latest enhancements to Splunk Observability Cloud and share ...