Getting Data In

Key Value Pairs with Spaces

ezajac
Path Finder

A developer made a change to the logging that they were managing. They added a new Key Value Pair and the results now have spaces ie Operation=Web Service Call: callABCService. Splunk Search is classifying this as Operation=Web. Is there a quick fix that I can make in Transforms or Props to work around this?

Thank you

Tags (1)
0 Karma

n8
Splunk Employee
Splunk Employee

Is each KV pair on a line by itself? If so you can just do something like the following:

props.conf

REPORT-bad_dev_format = kv-spaces

transforms.conf

[kv-spaces]
DELIMS = "\n","="

Otherwise paste a copy of an event and maybe we can suggest a transforms solution.

0 Karma

michaelbrunetto
New Member

Easiest way is to get the developer to quote their output. So Operation="Web Service Call: callABCService".

I have a similar problem, but with a product I can't change the logging on, so any other advice would be wonderfully helpful.

0 Karma

jonuwz
Influencer

Whats the rest of the raw event look like ?

0 Karma
Get Updates on the Splunk Community!

What’s New & Next in Splunk SOAR

Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us on ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...