Splunk Search

maxKBps option and limiting a Forwarder's rate of thruput

maverick
Splunk Employee
Splunk Employee

Within the doc page on limits.conf,
http://docs.splunk.com/Documentation/Splunk/latest/Admin/Limitsconf

I found this entry regarding thruput:

[thruput]
maxKBps = <integer>
* If specified and not zero, this limits the speed through the thruput processor to the specified 
rate in kilobytes per second.
* To control the CPU load while indexing, use this to throttle the number of events this indexer 
processes to the rate (in KBps) you specify. 

This description leads me to believe that this specific option will limit the indexer thruput and might not work on the Forwarder to regulate it's thruput rate up to the indexer.

Can someone please confirm this is the case, or (assuming this is not the setting to use) tell me how to regulate the Forwarder's rate of thruput up to the Indexer?

1 Solution

MuS
Legend

Hi maverick

I used this stanza to limit the thruput of Universal Forwarders and Heavy Forwarders towards the indexer. So I can confirm this is the setting you are looking for to regulate the Forwarder's rate of thruput.

cheers

View solution in original post

ChadLangUAB
Path Finder

limits.conf doesn't exist in local. maxKBps = 0 is in limits.conf in default.

4 Indexers

1,322 KB/s
Total Indexing Rate - 331KB/s
Average Indexing Rate - 264 KB/s

jmeager_splunk
Splunk Employee
Splunk Employee

You should never edit the default configurations. It is not found as you need to create one. You should create a new limits.conf within local which will supersede the default folder limits.conf values as required.

yannK
Splunk Employee
Splunk Employee

If in the other hand want to speed your forwarders,
By example because the volume is high, or because the historical logs are large to tail the first time.

You can edit your own local setting to remove all limits.

by example in $SPLUNK_HOME/etc/apps/SplunkUniversalForwarder/local/limits.conf
or on the lightweight forwarder in $SPLUNK_HOME/etc/apps/SplunkLightForwarder/local/limits.conf

[thruput]
# means unlimited
maxKBps = 0

MuS
Legend

Hi maverick

I used this stanza to limit the thruput of Universal Forwarders and Heavy Forwarders towards the indexer. So I can confirm this is the setting you are looking for to regulate the Forwarder's rate of thruput.

cheers

jak3d84
Loves-to-Learn Lots

Hi - can you please paste the solution? The link is not resolving to the stanza.

0 Karma

Jason
Motivator

You'll likely find the setting in etc/apps/SplunkUniversalForwarder/default/limits.conf

kristian_kolb
Ultra Champion

Hi, on a 4.3 UF the .../default/limits.conf states that maxKBps=0 . Does this mean that the throughput is unlimited? I think I remember reading that Light/universal forwarders were capped att 256 KBps transmission rates. Have I missed something?

/k

0 Karma

jbsplunk
Splunk Employee
Splunk Employee

We tested this behavior on a Linux and OSX UF and found that it did work to limit the bandwidth of the UF.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...