Getting Data In

Does splunk allow spaces in key values?

marcus314
Engager

Splunk is not extracting the key-value pairs to the logs, and I'm wondering if this is because there are spaces in the keys and they're in quotes, or if it is because there isn't a space after the comma?

Example log:

Jul 25 11:24:31 banana-server 11:24:31,582 [b-thread-01] WARN BananaServiceWorker - Service Error: "Service Error Type"="SERVICE","Service Name"="The Banana Service","Error Code"="41","Error Message"="We are out of bananas."

0 Karma
1 Solution

alacercogitatus
SplunkTrust
SplunkTrust

While Splunk Doesn't allow spaces in the fields (see url below) it might replace the spaces with an underscore. So your field to search on would be "Service_Error_Type", etc for each of those fields.

http://docs.splunk.com/Documentation/Splunk/5.0.3/Knowledge/Aboutfields

View solution in original post

alacercogitatus
SplunkTrust
SplunkTrust

While Splunk Doesn't allow spaces in the fields (see url below) it might replace the spaces with an underscore. So your field to search on would be "Service_Error_Type", etc for each of those fields.

http://docs.splunk.com/Documentation/Splunk/5.0.3/Knowledge/Aboutfields

marcus314
Engager

After playing around with it, I've learned that it does not allow spaces, and it doesn't allow quotes either to escape the spaces, without using special commands in the search field. In order to get it to properly use the auto extract, I had to get rid of the quotes and replace the spaces with underscores. Thanks.

0 Karma
Get Updates on the Splunk Community!

ATTENTION!! We’re MOVING (not really)

Hey, all! In an effort to keep this Slack workspace secure and also to make our new members' experience easy, ...

Splunk Admins: Build a Smarter Stack with These Must-See .conf25 Sessions

  Whether you're running a complex Splunk deployment or just getting your bearings as a new admin, .conf25 ...

AppDynamics Summer Webinars

This summer, our mighty AppDynamics team is cooking up some delicious content on YouTube Live to satiate your ...