Getting Data In

Space Delimeter Problem with Quotation Mark

zekiramhi
Path Finder

So IIS logs are usually delimited by a space between every other field, however I have recently realized that when a certain field value contains a quotation mark in this example it would be the "cs_uri_query"  field , the field value starting with a quotation mark grabs all the remaining rest of the log included as its value even though there would be spaces included in the value itself.

An example log of the problem from what I mean could be found bellow:

 

2021-05-15 14:02:58 11.11.11.11 GET /WebID/IISWebAgentIF.dll postdata="><script>foo</script> 55000 - 11.11.11.111 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0) - 404 0 64 0 11.11.11.111:60754

 

My Transforms with field delimeter set as " " is as follows:

 

date time s-sitename s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs-version cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken X-Forwarded-For

 

Thank you for reading,

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

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

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...