Security

Is there a max number for MAX_EVENTS?

Nicholas_Key
Splunk Employee
Splunk Employee

I didn't find it mentioned anywhere in the documentation. I might have overlooked it.

http://www.splunk.com/base/Documentation/latest/admin/Propsconf

Tags (1)
0 Karma

Stephen_Sorkin
Splunk Employee
Splunk Employee

If you find yourself setting MAX_EVENTS to be very large, you should probably consider changing the LINE_BREAKER to break the input stream into larger chunks (that aren't single lines).

At index time, data is broken into lines (usually by \r\n or \n). It then may be put back together using line merging. It's significantly more efficient to not have to reassemble the data with string concatenation. You then have to set the maximum "line" length using the TRUNCATE attribute. If you know that every event is demarcated by two newlines, you could set in props.conf:

[<sourcetype>]
LINE_BREAKER = ((\r?\n){2})
TRUNCATE = 1000000
SHOULD_LINEMERGE = false

gkanapathy
Splunk Employee
Splunk Employee
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...