Getting Data In

Splunk automatically breaking log entries after 100 lines.

tmail037
Engager

I am trying out Splunk and facing an issue. I have some large log entries in my log file, say 250 lines and I have defined 'BREAK_ONLY_BEFORE = some regex'. Now in addition to breaking before the given regex, Splunk also breaks the log entry after every 100 lines. This resulting in multiple events (in above case 3 events) for single log entry. I have tried this using Splunk web's 'Data Preview' feature.

My props.conf setting for the sourcetype


[dummy_source]
BREAK_ONLY_BEFORE=^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}\s---\sERROR:\s
NO_BINARY_CHECK=1
SHOULD_LINEMERGE=true

Please help.

Edit- I tried setting


MAX_EVENTS = 1000

Now I am getting single event for each log entry but the problem now is, the event displayed is truncated. It does not seem to contain all the 250 lines from the log entry.

Tags (1)
1 Solution

tmail037
Engager

I am updating this so that someday someone will benefit from it.

Its just the data preview UI which shows truncated logs. Actually the logs are not
truncated. Each event contains complete log entry.

View solution in original post

tmail037
Engager

I am updating this so that someday someone will benefit from it.

Its just the data preview UI which shows truncated logs. Actually the logs are not
truncated. Each event contains complete log entry.

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!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

Data Management Digest – May 2026

Welcome to the May 2026 edition of Data Management Digest!   As your trusted partner in data innovation, the ...