Getting Data In

splunk universal forwarder consuming cpu

wecandoo
Engager

I want to know abount how much splunk universal forwarder consume cpu.
Have any materials about that? I found everywhere in google and splunk documentation page but I counldn't found any materials
I want version 7.x material.
I want material as soon as possible.

thanks

bpadmanbhachari
Splunk Employee
Splunk Employee

For monitoring the resource usage on Splunk universal forwarder, you need to enable an add-on like below.

The introspection generator add-on is disabled by default on a universal forwarder. To enable: in the forwarder's $SPLUNK_HOME/etc/apps/introspection_generator_addon/local/app.conf, set

[install]
state = enabled

To monitor UF resource usage in Monitoring console, please follow below doc:
https://docs.splunk.com/Documentation/Splunk/7.2.6/DMC/Configureforwardermonitoring

0 Karma

kmorris_splunk
Splunk Employee
Splunk Employee

This can be hard to quantify, because it will depend on a lot of factors. Here is the documentation on monitoring files and directories:

https://docs.splunk.com/Documentation/Splunk/7.2.6/Data/Monitorfilesanddirectorieswithinputs.conf

A few things I have run into that can help keep CPU usage lower:

  • Be as specific as possible with your inputs. Use of wildcards can be too greedy sometimes and you may be looking at files that aren't necessary.
  • Be careful with the use of recursive=true for similar reasons. Unless you know you need all of the subdirectories in a directory, use this carefully.
  • ignoreOlderThan can be helpful when first adding an input. Reading in a large file can initially cause high CPU usage until it catches up.

Hope this helps somewhat.

nabeel652
Builder

Check your inputs. You may be running some inputs (especially Windows Events) that may be consuming high CPU. Disable that and see if it gets any better

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...