

Under the stanza, look for the max_mem_usage_mb setting.Open or create a local nf file at $SPLUNK_HOME/etc/system/local.

Make changes to the files in the local directory. The files in the default directory must remain intact and in their original location. Never change or copy the configuration files in the default directory. See Where you can place (or find) your modified configuration files in the Splunk Enterprise Admin Manual. There can be configuration files with the same name in your default, local, and app directories. Decide which directory to store configuration file changes in.
SPLUNK EVAL TO COUNT INSTANCES HOW TO
Review the steps in How to edit a configuration file in the Splunk Enterprise Admin Manual. Only users with file system access, such as system administrators, can increase the max_mem_usage_mb setting using configuration files. Have the permissions to change the max_mem_usage_mb setting.Splunk Enterprise To change the max_mem_usage_mb setting, follow these steps. Otherwise, contact Splunk Customer Support. If you have a support contract, file a new case using the Splunk Support Portal at Support and Services. Splunk Cloud Platform To change the max_mem_usage_mb setting, request help from Splunk Support.

When the limit is reached, the eventstats command processor stops adding the requested fields to the search results.ĭo not set max_mem_usage_mb=0 as this removes the bounds to the amount of memory the eventstats command processor can use.

The eventstats search processor uses a nf file setting named max_mem_usage_mb to limit how much memory the eventstats command can use to keep track of information. The eventstats command is a dataset processing command. For an overview about using functions with commands, see Statistical and charting functions. Use the links in the table to see descriptions and examples for each function. The following table lists the supported functions by type of function. Each time you invoke the eventstats command, you can use one or more functions. Description: Statistical and charting functions that you can use with the eventstats command. Stats function options stats-func Syntax: The syntax depends on the function that you use. Default: false Syntax: BY Description: The name of one or more fields to group by. If you have a BY clause, the allnum argument applies to each group independently. Optional arguments allnum Syntax: allnum= Description: If set to true, computes numerical statistics on each field, if and only if ,all of the values of that field are numerical. You can use wild card characters in field names. Use the AS clause to place the result into a new field with a name that you specify. The function can be applied to an eval expression, or to a field or set of fields. Required arguments Syntax: ( | ) Description: A statistical aggregation function. The generated summary statistics can be used for calculations in subsequent commands in your search. Only those events that have fields pertinent to the aggregation are used in generating the summary statistics. Generates summary statistics from fields in your events and saves those statistics in a new field.
