Getting Data In

Quote delimited fields containing spaces

kmattern
Builder

In the past our iis logs were space delimited with the user agent field using the plus sign as an internal delimiter, such as

KRFU+(VER+5.0/5.0.2.v20130730-3038;+Win7+6.1;+52.4/2215/-1;Server+Atlanta;00222003D1C5;3238LB934)

But with the change in the log file format the user agent field now looks like this

"KRFU (VER 5.0/5.0.2.v20130920-3090; WinServer 2008 R2 6.1; 18.6/62/-1;Server Atlanta Metro;005056AA6ED5;sta001)"

"KRFU (VER 5.0/5.0.2.v20130920-3090; WinServer 2008 R2 6.1; 15.8/0/-1;New York All-Purpose Server;005056A4000B;ws120)"

One server is named "Server Atlanta Metro" which contains 3 spaces. The other server is named "New York All-Purpose Server" which contains 4 spaces. Sometimes the server will have only one name with no spaces. This causes problems with space delimited fields.

So how do I tell Splunk to consume everything between the quotes as one field?

0 Karma

jtrucks
Splunk Employee
Splunk Employee

Try this:

\"(?<useragent>.*)\"
--
Jesse Trucks
Minister of Magic
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...