Getting Data In

Limit the memory used by Universal Forwarder

Path Finder

We are currently evaluating the splunk universal forwarder as a means to collect system logs from our PC's but have run into an issue. The universal forwarder consumes between 40 and 50 MB of memory on our machines whereas, the existing Snare agent uses only around 3 MB. Is there anyway to limit this memory footprint?

Tags (1)

Splunk Employee
Splunk Employee

Unfortunately, it's not going to be much smaller than that. The way to limit memory consumption is to make sure that your inputs are as limited as possible, e.g., point at single files or small directories with a few files and no subdirectories. You can reduce some memory by: shrinking maxQueueSize in outputs.conf to maybe 100 KB (vs a default of 500 KB), which should reduce memory usage by maybe 1-1.5 MB; and shrinking the queueSize setting in inputs.conf to maybe 100 KB (also from a default of 500 KB), which will only help if you're using the AD, registry, or PerfMon collectors, and will save maybe another 1 to 1.5 MB depending how many of those you're using.

Get Updates on the Splunk Community!

Splunk Forwarders and Forced Time Based Load Balancing

Splunk customers use universal forwarders to collect and send data to Splunk. A universal forwarder can send ...

NEW! Log Views in Splunk Observability Dashboards Gives Context From a Single Page

Today, Splunk Observability releases log views, a new feature for users to add their logs data from Splunk Log ...

Last Chance to Submit Your Paper For BSides Splunk - Deadline is August 12th!

Hello everyone! Don't wait to submit - The deadline is August 12th! We have truly missed the community so ...