Getting Data In

Line Breaking Not Working for some IIS logs

daniel333
Builder

All,

My IIS logs keep getting merged together into one event and maybe i am just exhausted, but I can't seem to figure out where i am going wrong.

Example logs that were merged -

2019-06-12 04:06:56 10.1.1.1 GET SOMEURL=1234512244 443 - 10.2.2.2 - - 200 0 0 15
2019-06-12 04:06:56 10.11.11.1 GET SOMEURL 1 443 - 10.2.2.2 - - 200 0 0 31
2019-06-12 04:06:56 10.1.11.1 GET SOMEURL 443 - 10.2.2.2 - - 200 0 0 46

props.conf

[ms:iis:default]
MAX_TIMESTAMP_LOOKAHEAD = 20
SHOULD_LINEMERGE = false
TIME_PREFIX = ^ 
TIME_FORMAT = %Y-%m-%d %H:%M:%S 
SHOULD_LINEMERGE = False 
LINE_BREAKER = ([\n\r]+)\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2} 
TRUNCATE = 4000
TZ=UTC
MAX_DAYS_AGO = 1
MAX_DAYS_HENCE = 2
EVENT_BREAKER_ENABLE = true 
EVENT_BREAKER = ([\n\r]+)\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}

Hoping a second set of eyes will see where I went wrong?

0 Karma

amitm05
Builder

Are you not using the Splunk Add-on for Microsoft IIS to parse your IIS events ? https://splunkbase.splunk.com/app/3185/
I would assume that you are.
I've been using this in the past and I never had to make any customizations to make things working.

From the Addon, I see the props.conf have the following stanza:

[ms:iis:default]
MAX_TIMESTAMP_LOOKAHEAD = 23
SHOULD_LINEMERGE = false
REPORT-auto_kv_for_iis_default = auto_kv_for_iis_default

But in your settings, I see you have additionally defined LINE_BREAKER, EVENT_BREAKER etc. rules.
I'd suggest to use the default settings that come out of the box with Add On and it should work smooth.

Please accept as answer if this post responds your query
Thanks

gcusello
SplunkTrust
SplunkTrust

Hi daniel333,
why did you used LINE_BREAKER and EVENT_BREAKER if you have SHOULD_LINEMERGE=false?
As you can see at https://docs.splunk.com/Documentation/Splunk/7.3.0/Admin/Propsconf

When using LINE_BREAKER to delimit events, SHOULD_LINEMERGE should be set to false, to ensure no further combination of delimited events occurs.

SHOULD_LINEMERGE=false is repeated two times.

Anyway I don't see any other problem, maybe in the wrong logs there's some problem in Line Feed, try to see this.
In addition check if the timestamp format is the same in both the logs.

Bye.
Giuseppe

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2026-2027 SplunkTrust is officially open. If ...