Getting Data In

Does splunk allow spaces in key values?

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

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

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

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
State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!